This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hi there, I'm wondering if anyone could provide me a couple of pointers with a problem I'm having getting dynamic linking to work with a powerpc-linux cross compiler and the latest binutils snapshot, linking against cross-compiled glibc-2.1.3. I've got things to the stage where the compiler front end (powerpc-linux-gcc) can build a working Hello World, statically linked against glibc: % powerpc-linux-gcc -static hello.c Dynamic linking is causing me grief however, as follows: % greyham@brixi% powerpc-linux-gcc hello.c /opt/gcc-2.95.2/powerpc-linux/bin/ld: warning: ld.so.1, needed by /opt/ppc.linux/glibc-2.1.3-8xx/lib/libc.so.6, not found (try using --rpath) /opt/ppc.linux/glibc-2.1.3-8xx/lib/libc.so.6: undefined reference to `_dl_init_next@GLIBC_2.0' As the warning points out, libc.so.6 can't find ld.so.1. But it's right there alongside libc.so.6 in /opt/ppc.linux/glibc-2.1.3-8xx/lib/ld.so.1, where the glibc install put it! Setting LD_LIBRARY_PATH helps powerpc-linux-gcc to work, but breaks a bunch of other things because I'm cross compiling from i686-linux, and don't want native dynamically linked programs to try to use the powerpc-linux ld.so.1. Using --rpath also helps, but again this should be unnecessary since the compiler frontend is supposed to tell the linker this kind of stuff. Can anyone give me a pointer please? Thanks, Graham -- Graham Stoney Principal Hardware/Software Engineer Canon Information Systems Research Australia Ph: +61 2 9805 2909 Fax: +61 2 9805 2929 ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |