This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


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

LIB_PATH problem on powerpc


[Please CC: me, I'm not on this list]

LIB_PATH has gotten broken on powerpc, and I think the elf32ppclinux
changes are to blame.  After compiling a new binutils, elf32ppclinux is
now the default emulation for ld, and thus has LIB_PATH set normally. 
elf32ppc, still the default for already-built compilers, is now an
extra emulation.  Thus, it has no LIB_PATH, which strikes me as a
rather useless default.  Thus the dynamic linker is not found during
attempts to link, yielding results like this: 

drow:/usr/src/binutils$ /usr/bin/ld -v -L/lib -m elf32ppc \
 -dynamic-linker /lib/ld.so.1 /usr/lib/crt1.o /usr/lib/crti.o
 /usr/lib/gcc-lib/powerpc-linux/egcs-2.91.63/crtbegin.o \
 -L/usr/lib/gcc-lib/powerpc-linux/egcs-2.91.63 test.o \
 /usr/lib/gcc-lib/powerpc-linux/egcs-2.91.63/libgcc.a -lc \
 /usr/lib/gcc-lib/powerpc-linux/egcs-2.91.63/libgcc.a \
 /usr/lib/gcc-lib/powerpc-linux/egcs-2.91.63/crtend.o /usr/lib/crtn.o

GNU ld version 2.9.4 (with BFD 2.9.4.0.2)

/usr/bin/ld: warning: ld.so.1, needed by /lib/libc.so.6, not found (try
using --rpath)
/lib/libc.so.6: undefined reference to `_r_debug@@GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_unload_cache@@GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_init_next@@GLIBC_2.0'
...
and more of the same - all symbols from ld.so.1.


Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         dan@debian.org         |  |       dmj+@andrew.cmu.edu      |
\--------------------------------/  \--------------------------------/

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