[PATCH] gas: improve C_BSTAT and C_STSYM symbols handling on XCOFF

Alan Modra amodra@gmail.com
Wed Jul 28 12:43:44 GMT 2021


On Wed, Jul 28, 2021 at 06:51:06AM +0000, CHIGOT, CLEMENT via Binutils wrote:
> bfd/ChangeLog:
> 2021-07-27  Clément Chigot  <clement.chigot@atos.net>
> 
> 	* coff-bfd.c (bfd_coff_get_syment): Adjust n_value of symbols
> 	having fix_value = 1 in order to be an index and not a memory
> 	offset.
> 	* coffgen.c (coff_get_symbol_info): Likewize.
> 	(coff_print_symbol): Likewize.
> 
> gas/ChangeLog:
> 2021-07-27  Clément Chigot  <clement.chigot@atos.net>
> 
> 	* config/tc-ppc.c (ppc_frob_label): Don't change within if
> 	already set.
> 	(ppc_stabx): Remove workaround changing exp.X_add_symbol's
> 	within.
> 	* config/tc-ppc.h (struct ppc_tc_sy): Update comments.
> 	* symbols.c (resolve_symbol_value): Remove symbol update
> 	when final_val is 0 and it's an AIX debug symbol.
> 	* testsuite/gas/ppc/aix.exp: Add new tests.
> 	* testsuite/gas/ppc/xcoff-stsym-32.d: New test.
> 	* testsuite/gas/ppc/xcoff-stsym-64.d: New test.
> 	* testsuite/gas/ppc/xcoff-stsym.s: New test.

OK.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list