binutils-gdb/gas/config
Alan Modra 8d1015a887 Move struc-symbol.h to symbols.c
This file was never supposed to be widely used.  The fact that it has
found its way into many gas files led to bugs, typically when code
expecting a symbolS* to point at a struct symbol is presented with a
struct local_symbol.  Also, commit 158184ac9e changed these structs in
2012 but didn't catch all places where symbol bsym was being used to
test for a local_symbol.

	* Makefile.am (HFILES): Delete struc-symbol.h.
	* doc/internals.texi: Delete struc-symbol.h reference and out
	of date local symbol description.
	* struc-symbol.h: Delete.  Move contents to..
	* symbols.c: ..here.
	(symbol_on_chain, symbol_symbolS): New functions.
	* symbols.h (symbol_on_chain, symbol_symbolS): Declare.
	* cgen.c: Don't #include struc-symbol.h.
	(gas_cgen_parse_operand): Don't test for local_symbol using
	bsym, instead call symbol_symbolS.  Use symbol_get_bfdsym.
	(weak_operand_overflow_check, make_right_shifted_expr): Use
	symbol accessors.
	* config/obj-coff.c: Don't #include struc-symbol.h.
	(GET_FILENAME_STRING): Delete.
	* config/obj-elf.c: Don't #include struc-symbol.h.
	(elf_file_symbol): Use symbol accessors.
	(elf_adjust_symtab): Call symbol_on_chain.
	* config/obj-evax.c: Don't #include struc-symbol.h.
	* config/tc-nds32.c: Likewise.
	* config/tc-rl78.c: Likewise.
	* config/tc-rx.c: Likewise.
	* config/tc-alpha.c: Likewise.
	(add_to_link_pool, s_alpha_comm): Use symbol accessors.
	* config/tc-arc.c: Don't #include struc-symbol.h.
	(arc_check_relocs): Use symbol accessors, testing gas symbol
	section rather than bfd symbol section.
	* config/tc-avr.c: Don't #include struc-symbol.h.
	(avr_patch_gccisr_frag): Use symbol accessors.
	* config/tc-bfin.c: Don't #include struc-symbol.h.
	(bfin_loop_beginend): Use symbol accessors.
	* config/tc-csky.c: Don't #include struc-symbol.h.
	(v2_work_movih, v2_work_ori): Use symbol accessors.  Check for
	absolute symbol as well as O_constant.
	* config/tc-riscv.c: Don't #include struc-symbol.h.
	(riscv_pre_output_hook): Use symbol accessors.
	* config/tc-s390.c: Don't #include struc-symbol.h.
	(s390_literals): Use symbol accessors.
	* config/tc-score.c (s3_build_la_pic, s3_build_lwst_pic): Use
	symbol accessors.
	(s3_relax_branch_inst16, s3_relax_cmpbranch_inst32): Don't
	test symbol bsym.
	* config/tc-score7.c: Don't #include struc-symbol.h.
	(s7_build_la_pic, s7_build_lwst_pic): Use symbol accessors.
	(s7_b32_relax_to_b16): Don't test symbol bsym.
	* config/tc-sh.c: Don't #include struc-symbol.h.
	(insert_loop_bounds): Use symbol accessors.
	(sh_frob_section): Remove bogus symbol canonicalization.
	* config/tc-tic54x.c: Don't #include struc-symbol.h.
	(tic54x_bss): Use symbol accessors.
	* config/tc-tilegx.c: Don't #include struc-symbol.h.
	(emit_tilegx_instruction, tilegx_parse_name): Use symbol accessors.
	* config/tc-tilepro.c: Don't #include struc-symbol.h.
	(emit_tilepro_instruction, tilepro_parse_name): Use accessors.
	* config/tc-xtensa.c: Don't #include struc-symbol.h.
	(xg_assemble_vliw_tokens): Use symbol accessors.
	(xg_order_trampoline_chain): Likewise.
	* ehopt.c: Don't #include struc-symbol.h.
	(check_eh_frame): Correct local symbol test.  Use symbol accessors.
	* write.c: Don't #include struc-symbol.h.
	(create_note_reloc, maybe_generate_build_notes): Use symbol accessors.
	* Makefile.in: Regenerate.
	* po/POTFILES.in: Regenerate.
2018-10-29 18:20:48 +10:30
..
atof-ieee.c
atof-vax.c
bfin-aux.h
bfin-defs.h
bfin-lex-wrapper.c
bfin-lex.l
bfin-parse.y
e-crisaout.c
e-criself.c
e-i386aout.c
e-i386coff.c
e-i386elf.c
e-mipself.c
itbl-mips.h
m68k-parse.h
m68k-parse.y
obj-aout.c
obj-aout.h
obj-coff-seh.c
obj-coff-seh.h
obj-coff.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
obj-coff.h Remove sparc-aout and sparc-coff support 2018-04-16 15:33:26 +09:30
obj-ecoff.c
obj-ecoff.h
obj-elf.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
obj-elf.h
obj-evax.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
obj-evax.h
obj-fdpicelf.c
obj-fdpicelf.h
obj-macho.c -Wstringop-truncation warnings 2018-05-04 18:58:23 +09:30
obj-macho.h
obj-multi.c
obj-multi.h
obj-som.c
obj-som.h
rl78-defs.h
rl78-parse.y
rx-defs.h
rx-parse.y
tc-aarch64.c [PATCH, BINUTULS, AARCH64, 9/9] Add SSBS to MSR/MRS 2018-10-09 15:39:29 +01:00
tc-aarch64.h AArch64: Close sequences at the end of sections 2018-10-03 18:50:40 +01:00
tc-alpha.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
tc-alpha.h
tc-arc.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
tc-arc.h
tc-arm.c [Arm, 3/3] Add Execution and Data Prediction instructions for AArch32 2018-10-05 11:31:21 +01:00
tc-arm.h Remove arm-aout and arm-coff support 2018-04-25 09:38:17 +09:30
tc-avr.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
tc-avr.h
tc-bfin.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
tc-bfin.h
tc-cr16.c Silence gcc-8 warnings 2018-04-23 18:10:41 +09:30
tc-cr16.h
tc-cris.c
tc-cris.h
tc-crx.c Silence gcc-8 warnings 2018-04-23 18:10:41 +09:30
tc-crx.h
tc-csky.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
tc-csky.h csky: Support PC relative diff relocation 2018-09-14 21:04:47 +08:00
tc-d10v.c
tc-d10v.h
tc-d30v.c
tc-d30v.h
tc-dlx.c
tc-dlx.h
tc-epiphany.c
tc-epiphany.h
tc-fr30.c
tc-fr30.h
tc-frv.c
tc-frv.h
tc-ft32.c
tc-ft32.h
tc-generic.c
tc-generic.h
tc-h8300.c Remove h8300-coff support 2018-04-16 15:17:57 +09:30
tc-h8300.h Remove h8300-coff support 2018-04-16 15:17:57 +09:30
tc-hppa.c PR23837, Segmentation fault in resolve_symbol_value 2018-10-28 16:05:51 +10:30
tc-hppa.h
tc-i386-intel.c x86: fold RegEip/RegRip and RegEiz/RegRiz 2018-08-06 08:34:36 +02:00
tc-i386.c x86: fold Size{16,32,64} template attributes 2018-10-10 08:41:52 +02:00
tc-i386.h x86: Extend assembler to generate GNU property notes 2018-08-31 04:31:20 -07:00
tc-ia64.c
tc-ia64.h
tc-ip2k.c
tc-ip2k.h
tc-iq2000.c
tc-iq2000.h
tc-lm32.c
tc-lm32.h
tc-m32c.c
tc-m32c.h
tc-m32r.c
tc-m32r.h
tc-m68hc11.c
tc-m68hc11.h
tc-m68k.c Remove m68k-aout and m68k-coff support 2018-04-16 15:31:36 +09:30
tc-m68k.h Remove m68k-aout and m68k-coff support 2018-04-16 15:31:36 +09:30
tc-m68851.h
tc-mcore.c
tc-mcore.h
tc-mep.c
tc-mep.h
tc-metag.c
tc-metag.h
tc-microblaze.c [MicroBlaze] PIC data text relative 2018-04-17 14:47:13 -07:00
tc-microblaze.h
tc-mips.c This set of changes clarifies the conditions for the R5900 short loop fix and extends its test with the border cases of six and seven instructions. 2018-10-19 09:47:55 +01:00
tc-mips.h
tc-mmix.c
tc-mmix.h
tc-mn10200.c
tc-mn10200.h
tc-mn10300.c
tc-mn10300.h
tc-moxie.c
tc-moxie.h
tc-msp430.c Fix the MSP430 assembler's parsing of register names. 2018-06-26 13:40:13 +01:00
tc-msp430.h
tc-mt.c
tc-mt.h
tc-nds32.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
tc-nds32.h Andes Technology has good news for you, we plan to update the nds32 port of binutils on upstream! 2018-09-20 13:32:58 +01:00
tc-nios2.c
tc-nios2.h
tc-ns32k.c Fix compile time warning problem with gcc 8 and the NS32K assembler sources. 2018-08-01 14:36:50 +01:00
tc-ns32k.h
tc-or1k.c or1k: Add the l.adrp insn and supporting relocations 2018-10-05 11:41:41 +09:00
tc-or1k.h
tc-pdp11.c Correct the parsing of derferred register addressing in the PDP11 assembler. 2018-08-07 08:34:08 +01:00
tc-pdp11.h
tc-pj.c
tc-pj.h
tc-ppc.c PPC/GAS: Correct a signed vs unsigned comparison error with GCC 4.1 2018-09-20 15:49:01 +01:00
tc-ppc.h PowerPC64 higher REL16 relocations 2018-08-31 22:15:05 +09:30
tc-pru.c Update PRU assembler to corect hardware register numbering for DWARF. 2018-08-03 10:02:39 +01:00
tc-pru.h Update PRU assembler to corect hardware register numbering for DWARF. 2018-08-03 10:02:39 +01:00
tc-riscv.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
tc-riscv.h RISC-V: Fix .align handling when .option norelax. 2018-05-24 10:35:59 -07:00
tc-rl78.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
tc-rl78.h
tc-rx.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
tc-rx.h
tc-s12z.c S12Z: Handle 16 bit fixups which are constant. 2018-10-23 16:09:29 +02:00
tc-s12z.h Add support for the Freescale s12z processor. 2018-05-18 15:26:18 +01:00
tc-s390.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
tc-s390.h
tc-score7.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
tc-score.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
tc-score.h
tc-sh.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
tc-sh.h Remove sh-symbianelf support 2018-04-16 15:27:45 +09:30
tc-sparc.c gas, sparc: Allow non-fpop2 instructions before floating point branches 2018-09-04 06:25:52 -07:00
tc-sparc.h Remove sparc-aout and sparc-coff support 2018-04-16 15:33:26 +09:30
tc-spu.c PR23800, .eqv doesn't always defer expression evaluation 2018-10-20 19:46:43 +10:30
tc-spu.h
tc-tic4x.c
tc-tic4x.h
tc-tic6x.c
tc-tic6x.h
tc-tic30.c
tc-tic30.h
tc-tic54x.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
tc-tic54x.h
tc-tilegx.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
tc-tilegx.h
tc-tilepro.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
tc-tilepro.h
tc-v850.c
tc-v850.h
tc-vax.c
tc-vax.h
tc-visium.c
tc-visium.h
tc-wasm32.c
tc-wasm32.h
tc-xc16x.c
tc-xc16x.h
tc-xgate.c
tc-xgate.h
tc-xstormy16.c
tc-xstormy16.h
tc-xtensa.c Move struc-symbol.h to symbols.c 2018-10-29 18:20:48 +10:30
tc-xtensa.h
tc-z8k.c
tc-z8k.h
tc-z80.c Fix handling of undocumented SLL instruction for the Z80 target. 2018-08-21 15:50:49 +01:00
tc-z80.h
te-386bsd.h
te-aix5.h
te-aix.h
te-armeabi.h
te-armfbsdeabi.h
te-armfbsdvfp.h
te-armlinuxeabi.h
te-csky_abiv1_linux.h Add support for the C_SKY series of processors. 2018-07-30 12:24:14 +01:00
te-csky_abiv1.h Add support for the C_SKY series of processors. 2018-07-30 12:24:14 +01:00
te-csky_abiv2_linux.h Add support for the C_SKY series of processors. 2018-07-30 12:24:14 +01:00
te-csky_abiv2.h Add support for the C_SKY series of processors. 2018-07-30 12:24:14 +01:00
te-dragonfly.h
te-freebsd.h
te-generic.h
te-gnu.h
te-go32.h
te-hppa64.h
te-hppa.h
te-hppalinux64.h
te-hpux.h
te-ia64aix.h
te-interix.h
te-irix.h
te-linux.h
te-lynx.h
te-macos.h
te-nacl.h
te-nbsd532.h
te-nbsd.h
te-pc532mach.h
te-pe.h
te-pep.h
te-solaris.h
te-svr4.h
te-symbian.h
te-tmips.h
te-uclinux.h
te-vms.c
te-vms.h
te-vxworks.h
te-wince-pe.h
vax-inst.h
xtensa-istack.h
xtensa-relax.c
xtensa-relax.h