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: Binutils 2.28 on PowerPC: dangerous relocation: generic linker can't handle R_PPC_SECTOFF_HA


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


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