This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Make .eh_frame and .gcc_except_table read-only if possible (take 3)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 11 Dec 2002 16:52:16 -0500
- Subject: Re: [PATCH] Make .eh_frame and .gcc_except_table read-only if possible (take 3)
- References: <jakub@redhat.com> <200212112124.QAA23636@makai.watson.ibm.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Dec 11, 2002 at 04:24:40PM -0500, David Edelsohn wrote:
> >>>>> Jakub Jelinek writes:
>
> Jakub> Is there any other obj format which wants to move to read-only .eh_frame section?
> Jakub> If not, the test will on non-ELF just result in HAVE_LD_RO_RW_SECTION_MIXING
> Jakub> not being defined and thus keeping status quo.
>
> The test creates assembler syntax errors which are not intercepted
> by configure. I guess it ends up with the same result as before, but it's
> unfortunate that syntax errors are splashed across the screen instead of
> just the "unknown" result.
Is the following enough?
2002-12-11 Jakub Jelinek <jakub@redhat.com>
* configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect output to
/dev/null.
* configure: Rebuilt.
--- gcc/configure.in.jj 2002-12-04 18:12:01.000000000 +0100
+++ gcc/configure.in 2002-12-12 00:14:28.000000000 +0100
@@ -2221,11 +2221,11 @@ elif test x$gcc_cv_as != x -a x$gcc_cv_l
echo '.byte 1' >> conftest2.s
echo '.section "myfoosect", "a"' > conftest3.s
echo '.byte 0' >> conftest3.s
- if $gcc_cv_as -o conftest1.o conftest1.s \
- && $gcc_cv_as -o conftest2.o conftest2.s \
- && $gcc_cv_as -o conftest3.o conftest3.s \
+ if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
+ && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
+ && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
&& $gcc_cv_ld -shared -o conftest1.so conftest1.o \
- conftest2.o conftest3.o; then
+ conftest2.o conftest3.o > /dev/null 2>&1; then
gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
| grep -A1 myfoosect`
if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
Jakub