This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


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: Undefined libgcc symbols and i386-linux-newlib


Shaun Jackman wrote:
Hello,

The i386-linux-newlib toolchain I've been attempting to build is
nearing completion. I'm working on shared libraries at the moment.
When I build libc.so, for whatever reason the resulting binary has
undefined references to symbols in libgcc.

i386-linux-newlib/newlib$ nm .libs/libc.so | grep ' U '
         U __divdi3
         U __moddi3
         U __udivdi3
         U __umoddi3

libgcc appeared to build and install correctly though:

$ nm /usr/local/i386-linux-newlib/lib/libgcc_s.so.1 | grep divdi3
00004aec T __divdi3
00004e54 T __udivdi3
$ nm /usr/local/lib/gcc/i386-linux-newlib/4.1.0/libgcc.a | grep divdi3
_divdi3.o:
00000000 T __divdi3
_udivdi3.o:
00000000 T __udivdi3


Normally, those functions are built as part of the gcc build, put into libgcc2, and then merged into libgcc.



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