[PATCH 1/2] bfd: remove wrong relocations in .loader section for XCOFF

Nick Clifton nickc@redhat.com
Mon Apr 19 16:33:05 GMT 2021


Hi Clement,

> The AIX loader doesn't allow R_POS or R_NEG relocations in a read-only
> csect.

Approved - please apply.


Note: With this patch and the 2/2 patch applied, I encountered a new 
assembler testsuite failure for a toolchain configured as 
--target=rs6000-aix4.3.3:

   FAIL: difference of two undefined symbols

Upon investigation however it appears that this is actually a deficiency 
in the gas test itself.  There is code in gas/testsuite/gas/all/gas.exp 
which decides if the undefined symbols test should be run.  Currently it 
skips the test for powerpc*-*-aix* targets, but not for rs6000*-*-aix* 
targets.

So I will be checking in a patch to fix this shortly.

Cheers
   Nick




More information about the Binutils mailing list