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


On Sun, Mar 24, 2002 at 06:32:27PM +0100, Andreas Jaeger wrote:
> Andreas Jaeger <aj@suse.de> writes:
> 
> > Jakub Jelinek <jakub@redhat.com> writes:
> >
> >> So the unwind info check should be extended to something like
> >> (untested):
> >
> > I've tested this now extensivly and I'm happy with the appended
> > version of this patch.
> 
> I missed one point in my testing: Building of static programs in
> glibc:
> 
> /opt/gcc/3.1-devel/bin/gcc -nostdlib -nostartfiles -static -o /builds/glibc/gcc-3.1/elf/sln   /builds/glibc/gcc-3.1/csu/crt1.o /builds/glibc/gcc-3.1/csu/crti.o `/opt/gcc/3.1-devel/bin/gcc --print-file-name=crtbegin.o` /builds/glibc/gcc-3.1/elf/sln.o  /builds/glibc/gcc-3.1/libc.a -lgcc /builds/glibc/gcc-3.1/libc.a `/opt/gcc/3.1-devel/bin/gcc --print-file-name=crtend.o` /builds/glibc/gcc-3.1/csu/crtn.o
> /opt/gcc/3.1-devel/lib/gcc-lib/i686-pc-linux-gnu/3.1/crtbegin.o: In function `__do_global_dtors_aux':
> /opt/gcc/3.1-devel/lib/gcc-lib/i686-pc-linux-gnu/3.1/crtbegin.o(.text+0x36): undefined reference to `__deregister_frame_info_bases'
> ...
> 
> We use -static but since we use -nostdlib, -lgcc_eh is not added
> here:-(

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.

	Jakub


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