dwarf2 unwind info check broken
Andreas Jaeger
aj@suse.de
Mon Mar 25 22:30:00 GMT 2002
Jakub Jelinek <jakub@redhat.com> writes:
> On Sun, Mar 24, 2002 at 08:48:48PM +0100, Andreas Jaeger wrote:
>> > Configure should detect if -lgcc_eh exist and add it in in addition to
>> > -lgcc (well, for gcc-3.1+ configured with binutils 2.12 it doesn't matter),
>> > but for gcc-3.1+ configured with older binutils it matters.
>>
>> This is with gcc 3.1 and current binutils from CVS. But -lgcc_eh is
>> not added and I don't think there's code to do so,
>
> But if gcc 3.1 is configured with binutils >= 2.12, then crtbegin*.o don't
> ever call __register_* or __deregister_*, so you don't actually need
> -lgcc_eh.
With the patch applied, I get:
checking for DWARF2 unwind info support... static
checking for __builtin_expect... yes
I guess that I configured GCC 3.1 wrong. gcc/auto-host.h has:
/* Define if your linker supports --eh-frame-hdr option. */
/* #undef HAVE_LD_EH_FRAME_HDR */
But I think I got it - GCC used the wrong assembler, I configured GCC
with --with-gnu-as and it used for detection /usr/bin/as - but for
building it used the newer binutils that were in /opt/binutils/bin.
Replacing my binutils in /usr/bin fixed the problems I had.
So, I'm happy for now - but I'll play a bit more around,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-hacker
mailing list