binutils-gdb/gas/config
Clément Chigot cd026728f3 gas: improve C_BSTAT and C_STSYM symbols handling on XCOFF
A C_BSTAT debug symbol specifies the beginning of a static block.
Its n_value is the index of the csect containing static symbols.
A C_STSYM debug symbol represents the stabstring of a statically
allocated symbol. Its n_value is the offset in the csect pointed
by the containing C_BSTAT.

These two special n_value were not correctly handled both when
generating object files with gas or when reading them with objdump.
This patch tries to improve that and, above all, to allow gas-generated
object files with such symbols to be accepted by AIX ld.

bfd/
	* 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/
	* 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.
2021-07-29 10:55:22 +02:00
..
atof-ieee.c Use bool in gas 2021-03-31 10:49:23 +10:30
atof-vax.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
bfin-aux.h Use bool in gas 2021-03-31 10:49:23 +10:30
bfin-defs.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
bfin-lex-wrapper.c Don't include bfd/sysdep.h for gas files 2021-03-31 23:07:51 +10:30
bfin-lex.l Don't include bfd/sysdep.h for gas files 2021-03-31 23:07:51 +10:30
bfin-parse.y Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
e-crisaout.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
e-criself.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
e-i386aout.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
e-i386coff.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
e-i386elf.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
e-mipself.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
itbl-mips.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
m68k-parse.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
m68k-parse.y Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
obj-aout.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
obj-aout.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
obj-coff-seh.c Allow .seh_pushframe to take an optional [code] parameter 2021-04-23 16:33:47 +01:00
obj-coff-seh.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
obj-coff.c Fix .dwsect generation for XCOFF. Handle .function generated with DWARF on XCOFF. 2021-05-07 15:29:49 +01:00
obj-coff.h Fix .dwsect generation for XCOFF. Handle .function generated with DWARF on XCOFF. 2021-05-07 15:29:49 +01:00
obj-ecoff.c Use bool in gas 2021-03-31 10:49:23 +10:30
obj-ecoff.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
obj-elf.c Add the SEC_ELF_OCTETS flag to debug sections created by the assembler. 2021-07-12 17:12:13 +01:00
obj-elf.h Add a generic .bss directive for ELF based targets. 2021-05-07 17:08:48 +01:00
obj-evax.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
obj-evax.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
obj-fdpicelf.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
obj-fdpicelf.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
obj-macho.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
obj-macho.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
obj-multi.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
obj-multi.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
obj-som.c Use bool in gas 2021-03-31 10:49:23 +10:30
obj-som.h TRUE/FALSE simplification 2021-03-29 11:22:22 +10:30
rl78-defs.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
rl78-parse.y Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
rx-defs.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
rx-parse.y Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-aarch64.c opcodes: constify aarch64_opcode_tables 2021-07-01 17:51:00 -04:00
tc-aarch64.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-alpha.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-alpha.h gas: default TC_VALIDATE_FIX_SUB to 0 2021-07-14 21:52:20 +09:30
tc-arc.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-arc.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-arm.c PATCH [10/10] arm: Alias 'ra_auth_code' to r12 for pacbti. 2021-07-26 14:18:24 +02:00
tc-arm.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-avr.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-avr.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-bfin.c Use bool in gas 2021-03-31 10:49:23 +10:30
tc-bfin.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-bpf.c Use bool in gas 2021-03-31 10:49:23 +10:30
tc-bpf.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-cr16.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-cr16.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-cris.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-cris.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-crx.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-crx.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-csky.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-csky.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-d10v.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-d10v.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-d30v.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-d30v.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-dlx.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-dlx.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-epiphany.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-epiphany.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-fr30.c Use bool in gas 2021-03-31 10:49:23 +10:30
tc-fr30.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-frv.c Use bool in gas 2021-03-31 10:49:23 +10:30
tc-frv.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-ft32.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-ft32.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-generic.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-generic.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-h8300.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-h8300.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-hppa.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-hppa.h gas: default TC_VALIDATE_FIX_SUB to 0 2021-07-14 21:52:20 +09:30
tc-i386-intel.c x86: remove pointless 2nd parameter from check_VecOperations() 2021-06-07 12:01:14 +02:00
tc-i386.c x86: Simplify check for distinct TMM register operands 2021-07-28 10:42:47 -07:00
tc-i386.h x86: Always define TC_PARSE_CONS_EXPRESSION 2021-06-11 06:31:59 -07:00
tc-ia64.c Re: Fix offset for ia64 PCREL60B relocation on HP-UX 2021-05-22 17:23:24 +09:30
tc-ia64.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-ip2k.c Use bool in gas 2021-03-31 10:49:23 +10:30
tc-ip2k.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-iq2000.c Use bool in gas 2021-03-31 10:49:23 +10:30
tc-iq2000.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-lm32.c Use bool in gas 2021-03-31 10:49:23 +10:30
tc-lm32.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-m32c.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-m32c.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-m32r.c Use bool in gas 2021-03-31 10:49:23 +10:30
tc-m32r.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-m68hc11.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-m68hc11.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-m68k.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-m68k.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-m68851.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-mcore.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-mcore.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-mep.c Use bool in gas 2021-03-31 10:49:23 +10:30
tc-mep.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-metag.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-metag.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-microblaze.c opcodes: constify & scope microblaze opcodes 2021-07-01 17:55:26 -04:00
tc-microblaze.h gas: default TC_VALIDATE_FIX_SUB to 0 2021-07-14 21:52:20 +09:30
tc-mips.c MIPS/opcodes: Do not use CP0 register names for control registers 2021-05-29 03:26:32 +02:00
tc-mips.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-mmix.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-mmix.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-mn10200.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-mn10200.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-mn10300.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-mn10300.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-moxie.c Use bool in gas 2021-03-31 10:49:23 +10:30
tc-moxie.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-msp430.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-msp430.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-mt.c Use bool in gas 2021-03-31 10:49:23 +10:30
tc-mt.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-nds32.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-nds32.h Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-nios2.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-nios2.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-ns32k.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-ns32k.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-or1k.c Use bool in gas 2021-03-31 10:49:23 +10:30
tc-or1k.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-pdp11.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-pdp11.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-pj.c picojava assembler and disassembler fixes 2021-06-22 17:44:45 +09:30
tc-pj.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-ppc.c gas: improve C_BSTAT and C_STSYM symbols handling on XCOFF 2021-07-29 10:55:22 +02:00
tc-ppc.h gas: improve C_BSTAT and C_STSYM symbols handling on XCOFF 2021-07-29 10:55:22 +02:00
tc-pru.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-pru.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-riscv.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-riscv.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-rl78.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-rl78.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-rx.c Use bool in gas 2021-03-31 10:49:23 +10:30
tc-rx.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-s12z.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-s12z.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-s390.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-s390.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-score7.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-score.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-score.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-sh.c Use bool in gas 2021-03-31 10:49:23 +10:30
tc-sh.h Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-sparc.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-sparc.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-spu.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-spu.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-tic4x.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-tic4x.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-tic6x.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-tic6x.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-tic30.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-tic30.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-tic54x.c C99 gas configury 2021-04-05 15:31:25 +09:30
tc-tic54x.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-tilegx.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-tilegx.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-tilepro.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-tilepro.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-v850.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-v850.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-vax.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-vax.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-visium.c Use bool in gas 2021-03-31 10:49:23 +10:30
tc-visium.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-wasm32.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
tc-wasm32.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-xc16x.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-xc16x.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-xgate.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-xgate.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-xstormy16.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-xstormy16.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-xtensa.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-xtensa.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-z8k.c Use bool in gas 2021-03-31 10:49:23 +10:30
tc-z8k.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
tc-z80.c as_bad_subtract 2021-07-21 19:35:34 +09:30
tc-z80.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-386bsd.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-aix5.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-aix.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-armeabi.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-armfbsdeabi.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-armfbsdvfp.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-armlinuxeabi.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-cloudabi.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-csky_abiv1_linux.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-csky_abiv1.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-csky_abiv2_linux.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-csky_abiv2.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-dragonfly.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-freebsd.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-generic.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-gnu.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-go32.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-hppa64.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-hppa.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-hppalinux64.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-hpux.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-ia64aix.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-interix.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-irix.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-linux.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-lynx.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-macos.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-nacl.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-nbsd532.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-nbsd.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-pc532mach.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-pe.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-pep.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-solaris.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-svr4.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-tmips.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-uclinux.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-vms.c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-vms.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-vxworks.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
te-wince-pe.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
vax-inst.h Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
xtensa-istack.h Use bool in gas 2021-03-31 10:49:23 +10:30
xtensa-relax.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
xtensa-relax.h Use bool in gas 2021-03-31 10:49:23 +10:30