* Paul Jakma wrote on Thu, Dec 01, 2005 at 01:19:38PM CET: > On Thu, 1 Dec 2005, Ralf Wildenhues wrote: > > >Try 'gcc -v' in all cases to see what's happening. Try 'gld > >--verbose' and 'gcc -v -Wl,--verbose' to see what the linker > >thinks. > > Hmm, ok. It's using the solaris linker. How do I get gcc to use a > different linker? (I've already looked in the gcc docs, i dont see > how, LD=... doesnt work it seems).
I believe that is a configure time option for GCC: you can ../gcc/configure --with-gnu-ld --with-ld=/path/to/ld (don't use the former and point the latter to a non-GNU ld though). > >Erm. Stupid question: how can you recognize this way for certain, > >whether this is PIE or not? I only know of 'file a.out' reporting > >a shared object. > > Good question. I've been using file. Testing on Linux, the most > immediately obvious difference between PIE and normal executables is > that the PIE exe has an ELF type of "DYN", also 'main' is registered > as symbol in the symbol table. Ah, yes. I knew that. ;-) Cheers, Ralf _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool