This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Re: dwarf2 unwind info check broken


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


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