unresolvable R_PPC_REL16_{HA,LO} relocation against symbol

Alan Modra amodra@bigpond.net.au
Mon Nov 13 10:41:00 GMT 2006


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



More information about the Binutils mailing list