mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
8d1015a887
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.
264 lines
4.2 KiB
Plaintext
264 lines
4.2 KiB
Plaintext
app.c
|
|
as.c
|
|
as.h
|
|
asintl.h
|
|
atof-generic.c
|
|
bignum.h
|
|
bit_fix.h
|
|
cgen.c
|
|
cgen.h
|
|
compress-debug.c
|
|
compress-debug.h
|
|
cond.c
|
|
config/atof-ieee.c
|
|
config/atof-vax.c
|
|
config/e-crisaout.c
|
|
config/e-criself.c
|
|
config/e-i386aout.c
|
|
config/e-i386coff.c
|
|
config/e-i386elf.c
|
|
config/e-mipself.c
|
|
config/obj-aout.c
|
|
config/obj-aout.h
|
|
config/obj-coff.c
|
|
config/obj-coff.h
|
|
config/obj-ecoff.c
|
|
config/obj-ecoff.h
|
|
config/obj-elf.c
|
|
config/obj-elf.h
|
|
config/obj-evax.c
|
|
config/obj-evax.h
|
|
config/obj-fdpicelf.c
|
|
config/obj-fdpicelf.h
|
|
config/obj-macho.c
|
|
config/obj-macho.h
|
|
config/obj-multi.c
|
|
config/obj-multi.h
|
|
config/obj-som.c
|
|
config/obj-som.h
|
|
config/tc-aarch64.c
|
|
config/tc-aarch64.h
|
|
config/tc-alpha.c
|
|
config/tc-alpha.h
|
|
config/tc-arc.c
|
|
config/tc-arc.h
|
|
config/tc-arm.c
|
|
config/tc-arm.h
|
|
config/tc-avr.c
|
|
config/tc-avr.h
|
|
config/tc-bfin.c
|
|
config/tc-bfin.h
|
|
config/tc-cr16.c
|
|
config/tc-cr16.h
|
|
config/tc-cris.c
|
|
config/tc-cris.h
|
|
config/tc-crx.c
|
|
config/tc-crx.h
|
|
config/tc-csky.c
|
|
config/tc-csky.h
|
|
config/tc-d10v.c
|
|
config/tc-d10v.h
|
|
config/tc-d30v.c
|
|
config/tc-d30v.h
|
|
config/tc-dlx.c
|
|
config/tc-dlx.h
|
|
config/tc-epiphany.c
|
|
config/tc-epiphany.h
|
|
config/tc-fr30.c
|
|
config/tc-fr30.h
|
|
config/tc-frv.c
|
|
config/tc-frv.h
|
|
config/tc-ft32.c
|
|
config/tc-ft32.h
|
|
config/tc-h8300.c
|
|
config/tc-h8300.h
|
|
config/tc-hppa.c
|
|
config/tc-hppa.h
|
|
config/tc-i386.c
|
|
config/tc-i386.h
|
|
config/tc-ia64.c
|
|
config/tc-ia64.h
|
|
config/tc-ip2k.c
|
|
config/tc-ip2k.h
|
|
config/tc-iq2000.c
|
|
config/tc-iq2000.h
|
|
config/tc-lm32.c
|
|
config/tc-lm32.h
|
|
config/tc-m32c.c
|
|
config/tc-m32c.h
|
|
config/tc-m32r.c
|
|
config/tc-m32r.h
|
|
config/tc-m68hc11.c
|
|
config/tc-m68hc11.h
|
|
config/tc-m68k.c
|
|
config/tc-m68k.h
|
|
config/tc-mcore.c
|
|
config/tc-mcore.h
|
|
config/tc-mep.c
|
|
config/tc-mep.h
|
|
config/tc-metag.c
|
|
config/tc-metag.h
|
|
config/tc-microblaze.c
|
|
config/tc-microblaze.h
|
|
config/tc-mips.c
|
|
config/tc-mips.h
|
|
config/tc-mmix.c
|
|
config/tc-mmix.h
|
|
config/tc-mn10200.c
|
|
config/tc-mn10200.h
|
|
config/tc-mn10300.c
|
|
config/tc-mn10300.h
|
|
config/tc-moxie.c
|
|
config/tc-msp430.c
|
|
config/tc-msp430.h
|
|
config/tc-mt.c
|
|
config/tc-mt.h
|
|
config/tc-nds32.c
|
|
config/tc-nds32.h
|
|
config/tc-nios2.c
|
|
config/tc-nios2.h
|
|
config/tc-ns32k.c
|
|
config/tc-ns32k.h
|
|
config/tc-or1k.c
|
|
config/tc-or1k.h
|
|
config/tc-pdp11.c
|
|
config/tc-pdp11.h
|
|
config/tc-pj.c
|
|
config/tc-pj.h
|
|
config/tc-ppc.c
|
|
config/tc-ppc.h
|
|
config/tc-pru.c
|
|
config/tc-pru.h
|
|
config/tc-riscv.c
|
|
config/tc-riscv.h
|
|
config/tc-rl78.c
|
|
config/tc-rl78.h
|
|
config/tc-rx.c
|
|
config/tc-rx.h
|
|
config/tc-s12z.c
|
|
config/tc-s12z.h
|
|
config/tc-s390.c
|
|
config/tc-s390.h
|
|
config/tc-score.c
|
|
config/tc-score.h
|
|
config/tc-sh.c
|
|
config/tc-sh.h
|
|
config/tc-sparc.c
|
|
config/tc-sparc.h
|
|
config/tc-spu.c
|
|
config/tc-spu.h
|
|
config/tc-tic30.c
|
|
config/tc-tic30.h
|
|
config/tc-tic4x.c
|
|
config/tc-tic4x.h
|
|
config/tc-tic54x.c
|
|
config/tc-tic54x.h
|
|
config/tc-tic6x.c
|
|
config/tc-tic6x.h
|
|
config/tc-tilegx.c
|
|
config/tc-tilegx.h
|
|
config/tc-tilepro.c
|
|
config/tc-tilepro.h
|
|
config/tc-v850.c
|
|
config/tc-v850.h
|
|
config/tc-vax.c
|
|
config/tc-vax.h
|
|
config/tc-visium.c
|
|
config/tc-visium.h
|
|
config/tc-wasm32.c
|
|
config/tc-wasm32.h
|
|
config/tc-xc16x.c
|
|
config/tc-xc16x.h
|
|
config/tc-xgate.c
|
|
config/tc-xgate.h
|
|
config/tc-xstormy16.c
|
|
config/tc-xstormy16.h
|
|
config/tc-xtensa.c
|
|
config/tc-xtensa.h
|
|
config/tc-z80.c
|
|
config/tc-z80.h
|
|
config/tc-z8k.c
|
|
config/tc-z8k.h
|
|
config/te-386bsd.h
|
|
config/te-aix5.h
|
|
config/te-armeabi.h
|
|
config/te-armfbsdeabi.h
|
|
config/te-armfbsdvfp.h
|
|
config/te-armlinuxeabi.h
|
|
config/te-csky_abiv1.h
|
|
config/te-csky_abiv1_linux.h
|
|
config/te-csky_abiv2.h
|
|
config/te-csky_abiv2_linux.h
|
|
config/te-freebsd.h
|
|
config/te-generic.h
|
|
config/te-gnu.h
|
|
config/te-go32.h
|
|
config/te-hppa.h
|
|
config/te-hppa64.h
|
|
config/te-hppalinux64.h
|
|
config/te-ia64aix.h
|
|
config/te-interix.h
|
|
config/te-lynx.h
|
|
config/te-macos.h
|
|
config/te-nbsd.h
|
|
config/te-nbsd532.h
|
|
config/te-pc532mach.h
|
|
config/te-pe.h
|
|
config/te-solaris.h
|
|
config/te-svr4.h
|
|
config/te-symbian.h
|
|
config/te-tmips.h
|
|
config/te-vms.c
|
|
config/te-vxworks.h
|
|
config/te-wince-pe.h
|
|
config/xtensa-relax.c
|
|
config/xtensa-relax.h
|
|
depend.c
|
|
dw2gencfi.c
|
|
dw2gencfi.h
|
|
dwarf2dbg.c
|
|
dwarf2dbg.h
|
|
ecoff.c
|
|
ecoff.h
|
|
ehopt.c
|
|
emul-target.h
|
|
emul.h
|
|
expr.c
|
|
expr.h
|
|
flonum-copy.c
|
|
flonum-konst.c
|
|
flonum-mult.c
|
|
flonum.h
|
|
frags.c
|
|
frags.h
|
|
hash.c
|
|
hash.h
|
|
input-file.c
|
|
input-file.h
|
|
input-scrub.c
|
|
itbl-lex.h
|
|
itbl-ops.c
|
|
itbl-ops.h
|
|
listing.c
|
|
listing.h
|
|
literal.c
|
|
macro.c
|
|
macro.h
|
|
messages.c
|
|
obj.h
|
|
output-file.c
|
|
output-file.h
|
|
read.c
|
|
read.h
|
|
remap.c
|
|
sb.c
|
|
sb.h
|
|
stabs.c
|
|
subsegs.c
|
|
subsegs.h
|
|
symbols.c
|
|
symbols.h
|
|
tc.h
|
|
write.c
|
|
write.h
|