This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Binutils 2.28 on PowerPC: dangerous relocation: generic linker can't handle R_PPC_SECTOFF_HA
- From: Alan Modra <amodra at gmail dot com>
- To: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Cc: binutils at sourceware dot org
- Date: Thu, 1 Jun 2017 20:12:38 +0930
- Subject: Re: Binutils 2.28 on PowerPC: dangerous relocation: generic linker can't handle R_PPC_SECTOFF_HA
- Authentication-results: sourceware.org; auth=none
- References: <118142359.142184.1496311674176.JavaMail.zimbra@embedded-brains.de>
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