dwarf2 unwind info check broken
Andreas Jaeger
aj@suse.de
Tue Mar 19 13:25:00 GMT 2002
Jakub Jelinek <jakub@redhat.com> writes:
> On Tue, Mar 19, 2002 at 09:12:07PM +0100, Andreas Jaeger wrote:
>> > So the unwind info check should be extended to something like
>> > (untested):
>> >
>> > if AC_TRY_COMMAND([${CC-cc} $CFLAGS -DCHECK__register_frame_info
>> > -nostdlib -nostartfiles
>> > -o conftest conftest.c -lgcc >&AC_FD_CC]); then
>> > libc_cv_gcc_dwarf2_unwind_info=static
>> > else
>> > libc_cv_gcc_dwarf2_unwind_info=no
>> > fi
>> > +if AC_TRY_COMMAND([${CC-cc} $CFLAGS -DCHECK__register_frame_info
>> > + -nostdlib -nostartfiles
>> > + -o conftest conftest.c -lgcc -lgcc_eh >&AC_FD_CC]); then
>> > + if ${CC-cc} $CFLAGS -DCHECK__register_frame_info -nostdlib -nostartfiles \
>> > + -o conftest conftest.c -lgcc -lgcc_eh 2>&1 >/dev/null \
>> > + | grep -q -- --eh-frame-hdr; then
>>
>> This does not look right. I suppose you want to grep through ld
>> --help? In that case let's use ${LD-ld} or gcc -Wl,--help,
>
> Um, why? I want to grep in the ld command line gcc driver creates.
But you do not display the ld command line at all.
> If ld --help shows --eh-frame-hdr, it doesn't mean gcc uses it and only if
> gcc uses it, we can skip the __register_* call.
That means, you want to add -v to that command line.
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