public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Jaeger <aj@suse.de>
To: GNU libc hacker <libc-hacker@sources.redhat.com>
Subject: Re: dwarf2 unwind info check broken
Date: Sun, 17 Mar 2002 04:25:00 -0000	[thread overview]
Message-ID: <u8pu23fkk3.fsf@gromit.moeb> (raw)
In-Reply-To: <u8d6y3h4y7.fsf@gromit.moeb> (Andreas Jaeger's message of "Sun, 17 Mar 2002 11:19:28 +0100")

Andreas Jaeger <aj@suse.de> writes:

> Andreas Jaeger <aj@suse.de> writes:
>
>> With current binutils and both gcc 2.95.3 and GCC 3.2 CVS on
>> i686-linux-gnu I now get:
>>
>> checking for DWARF2 unwind info support... (cached) no
>>
>> The test program from configure:
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> static char __EH_FRAME_BEGIN__[];
>
> I figured out the problem: the []; gets removed by autoconf - but my
> autoconf version didn't remove it. :-(

But that's not the whole story, something is still broken for me:

arthur:~/tmp:[1]$ /opt/gcc/3.2-devel/bin/gcc -DCHECK__register_frame_info -nostdlib -nostartfiles dwarf-test.c -o conftest -lgcc
dwarf-test.c: In function `abort':
dwarf-test.c:22: warning: `noreturn' function does return
/tmp/ccomS4ZM.o: In function `_start':
/tmp/ccomS4ZM.o(.text+0x11): undefined reference to `__register_frame_info'
/tmp/ccomS4ZM.o(.text+0x20): undefined reference to `__deregister_frame_info'
collect2: ld returned 1 exit status
arthur:~/tmp:[1]$ /opt/gcc/3.2-devel/bin/gcc -DCHECK__register_frame -nostdlib -nostartfiles dwarf-test.c -o conftest -lgcc
dwarf-test.c: In function `abort':
dwarf-test.c:22: warning: `noreturn' function does return
/tmp/ccQkgVW6.o: In function `_start':
/tmp/ccQkgVW6.o(.text+0x11): undefined reference to `__register_frame'
/tmp/ccQkgVW6.o(.text+0x20): undefined reference to `__deregister_frame'
collect2: ld returned 1 exit status

But adding -lgcc_s fixes the problem:

arthur:~/tmp:[1]$ /opt/gcc/3.2-devel/bin/gcc -DCHECK__register_frame -nostdlib -nostartfiles dwarf-test.c -o conftest -lgcc -lgcc_s
dwarf-test.c: In function `abort':
dwarf-test.c:22: warning: `noreturn' function does return
arthur:~/tmp:[0]$ /opt/gcc/3.2-devel/bin/gcc -DCHECK__register_frame_info -nostdlib -nostartfiles dwarf-test.c -o conftest -lgcc -lgcc_s
dwarf-test.c: In function `abort':
dwarf-test.c:22: warning: `noreturn' function does return

So, how can we fix that configure test - and do we need to add -lgcc_s
for sln?

Sorry, I'm a bit confused about this stuff...

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

  reply	other threads:[~2002-03-17 12:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-17  2:14 Andreas Jaeger
2002-03-17  2:19 ` Andreas Jaeger
2002-03-17  4:25   ` Andreas Jaeger [this message]
2002-03-17  4:54     ` Andreas Jaeger
2002-03-17 12:14     ` Jakub Jelinek
2002-03-19  8:32       ` Andreas Jaeger
2002-03-19 12:19       ` Andreas Jaeger
     [not found]         ` <20020319160357.J1213@devserv.devel.redhat.com>
2002-03-19 13:25           ` Andreas Jaeger
2002-03-24  8:32       ` Andreas Jaeger
2002-03-24  9:34         ` Andreas Jaeger
2002-03-24 11:02           ` Jakub Jelinek
2002-03-24 11:48             ` Andreas Jaeger
2002-03-24 12:38               ` Jakub Jelinek
2002-03-25 22:30                 ` Andreas Jaeger
2002-03-17  7:02   ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=u8pu23fkk3.fsf@gromit.moeb \
    --to=aj@suse.de \
    --cc=libc-hacker@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).