This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ld segfaults in gcc-3.1's configuration


Hi,

I am observing a segfault in ld/binutils-2.12 during gcc31's
configuration (gcc-3-1-branch from a couple of minutes ago):

../gcc-3.1-branch/configure  --target=sparc-rtems --with-gnu-as
--with-gnu-ld --with-newlib '--enable-languages=c,c++'
--prefix=/opt/rtems
[..]
checking assembler --gstabs support... yes
checking linker PT_GNU_EH_FRAME support... yes
checking whether linker eh_frame optimizations work properly...
../../gcc-3.1-branch/gcc/configure: line 7880: 13803 Segmentation
fault      $gcc_cv_ld --eh-frame-hdr -shared -o conftest.so conftest.o
1>&5 2>&1
no
Using ggc-page for garbage collection.
checking whether to enable maintainer-specific portions of Makefiles...
no
[..]

>From gcc/config.log:

configure:7790: checking linker PT_GNU_EH_FRAME support
configure:7805: checking whether linker eh_frame optimizations work
properly
conftest.s: Assembler messages:
conftest.s:54: Internal error, aborting at
../../binutils-2.12/gas/write.c line 2927 in number_to_chars_bigendian
Please report this bug.


This bug is deterministically reproduceable for i386-rtems and
sparc-rtems (I haven't tried other targets yet), both using vanilla
binutils-2.12.

As previous versions of gcc-3.1 did not expose this segfault, I would
suspect this patch to have triggered this issue:

2002-04-29  Jakub Jelinek  <jakub@redhat.com>

	PR target/6476
	* configure.in: Check whether linker eh_frame optimizations work
	properly.

Ralf



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]