libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: static lib with libtool 1.5


From: Patrick Welche
Subject: Re: static lib with libtool 1.5
Date: Thu, 11 Aug 2005 15:58:58 +0100
User-agent: Mutt/1.5.9i

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]