This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: unresolvable R_PPC_REL16_{HA,LO} relocation against symbol


On Mon, Nov 13, 2006 at 04:32:41PM +0900, Hiroki Kaminaga wrote:
> Anybody kindly point me where I can find info about R_PPC_REL16_{LO,HI,HA}?
> What I knew from src was it is only that it is GNU extention...

There is as yet no official documentation.  (IBM does have a project
in progress to write a powerpc32 ABI that describes the current gcc
extensions, but it is only just starting.)  Using the terminology in
"SYSTEM V APPLICATION BINARY INTERFACE PowerPC Processor Supplement"
(google for it if you don't have it), extend table 4-8 with the
following.

Name		Value Field	Calculation
R_PPC_REL16	249   half16	S + A - P
R_PPC_REL16_LO	250   half16	#lo(S + A - P)
R_PPC_REL16_HI	251   half16	#hi(S + A - P)
R_PPC_REL16_HA	252   half16	#ha(S + A - P)

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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