On Thu, Aug 11, 2005 at 04:41:46PM +0200, Ralf Wildenhues wrote: > They also have position-independent relocations. > Try 'objdump -x' on my above example.
Ah yes: .libs/foo.o: RELOCATION RECORDS FOR [.text]: OFFSET TYPE VALUE 00000019 R_386_GOTPC _GLOBAL_OFFSET_TABLE_ 0000001e R_386_PLT32 foo foo.o: RELOCATION RECORDS FOR [.text]: OFFSET TYPE VALUE 00000011 R_386_PC32 foo So with -fPIC, R_386_PC32 becomes R_386_PLT32, and quoting from solaris doc R_386_PC32 = S+A-P R_386_PLT32 = L+A-P where S is the value of the symbol whose index resides in the relocation entry as opposed to L which is the section offset or address of the procedure linkage table entry for a symbol. Hmm Maybe I understand that.. Cheers, Patrick _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool