Don't relax undefined symbols on ppc.

Douglas B Rupp rupp@adacore.com
Tue Jul 10 13:32:00 GMT 2018



On 07/09/2018 06:27 PM, Alan Modra wrote:
> On Mon, Jul 09, 2018 at 01:58:33PM -0700, Douglas B Rupp wrote:
>> There is a problem with --relax in the partial link trying to relax the
>> undefined symbols, leading to the RTP failing at startup with signal 11.
> 
> Please describe the problem in detail.  ld -r --relax non-pic is
> supposed to work for ppc32, with a branch to an undefined symbol being
> resolved to a trampoline which has relocations to the symbol.  Are the
> emitted relocations wrong?

Apparently, since our test programs work fine sans relax. Thank you for 
explaining how it's supposed to work. I'll investigate further and 
report back.

--Doug



More information about the Binutils mailing list