[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 'ld' reporting unexpected failures



I think Mark Kettenis saw that before.  It is a bug (or need for porting)
in the binutils/ld test suite.  All those "undefined reference" errors are
due to using /lib/crt0.o with the shared libc.  You must use /lib/crt0.o
only for static linking, and always /lib/crt1.o for dynamic linking.

The one case that looks different is when it does use static linking,
and then it fails to list libgcc a second time after libc, as it should.

If you report this description of the problem to the binutils folks,
they can help you figure out what needs to be done in the testsuite
to make it match the systme.



Reply to: