This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: RFH: libgcc_s.so being unnecessarily linked for mipsel-linuxcross compiler...
- From: James E Wilson <wilson at specifix dot com>
- To: David Daney <ddaney at avtrex dot com>
- Cc: gcc at gcc dot gnu dot org, binutils at sources dot redhat dot com
- Date: Thu, 28 Jul 2005 14:26:16 -0700
- Subject: Re: RFH: libgcc_s.so being unnecessarily linked for mipsel-linuxcross compiler...
- References: <42E9368F.7000506@avtrex.com>
On Thu, 2005-07-28 at 12:48, David Daney wrote:
> Also you can see that neither hello-world.o nor my libc-2.3.3.so have
> any undefined symbols that would be satisfied by libgcc_s.so.
It looks like you forgot to check the crt*.o files for undefined
references.
If the gcc/glibc toolchain wasn't built the optimal way, it is possible
for crtbegin.o to have register_frame_info and deregister_frame_info
calls for C++ EH unwinding which would require libgcc always.
If built the optimal way, then the gcc/glibc toolchain will use an
alternate method for C++ EH unwinding that does not require crtbegin.o
support and hence does not require libgcc. This is why the x86 FC3 is
OK.
See the USE_PT_GNU_EH_FRAME stuff in gcc/crtstuff.c.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com