Patch(?): binutils-2.11.90.0.6/ld/ldlang.c fix to resolve undefined DT_NEEDED symbols
H . J . Lu
hjl@lucon.org
Mon Apr 30 15:30:00 GMT 2001
On Sun, Apr 29, 2001 at 08:25:57PM -0700, Adam J. Richter wrote:
>
> This is a follow-up to my message earlier today reporting the
Please CC all binutils bug reports to binutils@sourceware.cygnus.com.
If it can be duplicated in my Linux bintuils, also CC to hjl@lucon.org.
> ld bug where if a .so file pulled in another .so file not given on
> the command line (via DT_NEEDED the ELF feature), the undefined symbols
> in that additional .so file would fail to cause a file that defined those
> symbols to be included in the link. For example, libncurses.so can
> require libgpm.so, and libgpm.so refers to the atexit() function, which
> requires a static chunk of C library code to be included, even when
> the shared C library is linked in (atexit trigger this is new under
> glibc-2.2.3).
I don't think ld should check those DSOes brought in by DT_NEEDED. FYI,
glibc 2.2.3 requires a gcc with the patch
http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01164.html
installed. gcc 2.96-81 in RedHat 7.1 is ok. gcc 2.95.3 is NOT ok. The
gcc in CVS has that patch.
H.J.
More information about the Libc-alpha
mailing list