Binutils 2.28 on PowerPC: dangerous relocation: generic linker can't handle R_PPC_SECTOFF_HA

Alan Modra amodra@gmail.com
Thu Jun 1 10:42:00 GMT 2017


On Thu, Jun 01, 2017 at 12:07:54PM +0200, Sebastian Huber wrote:
> Hello,
> 
> I get the following errors using Binutils 2.28 on PowerPC for a bootloader program that is supposed to load an application image:
> 
> powerpc-rtems4.12-ld -o capture.ralf bootloader.o --just-symbols=capture.exe -b binary rtems.gz -T ppcboot.lds
> bootloader.o: In function `start':
> head.S:140:(.text+0x8a): dangerous relocation: generic linker can't handle R_PPC_SECTOFF_HA

Did you build the linker for the correct target?  "generic linker"
errors usually mean you're attempting to produce different output to
the input objects.

> This error is not present on the Git master of Binutils.

You'll probably get the same if you misconfigure master.  ;-)

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list