binutils-gdb/gas/config
H.J. Lu eb09df162b as: Replace the removed symbol with the versioned symbol
When a symbol removed by .symver is used in relocation and there is one
and only one versioned symbol, don't remove the symbol.  Instead, mark
it to be removed and replace the removed symbol used in relocation with
the versioned symbol before generating relocation.

	PR gas/28157
	* symbols.c (symbol_flags): Add removed.
	(symbol_entry_find): Updated.
	(symbol_mark_removed): New function.
	(symbol_removed_p): Likewise.
	* symbols.h (symbol_mark_removed): New prototype.
	(symbol_removed_p): Likewise.
	* write.c (write_relocs): Call obj_fixup_removed_symbol on
	removed fixp->fx_addsy and fixp->fx_subsy if defined.
	(set_symtab): Don't add a symbol if symbol_removed_p returns true.
	* config/obj-elf.c (elf_frob_symbol):  Don't remove the symbol
	if it is used on relocation.  Instead, mark it as to be removed
	and issue an error if the symbol has more than one versioned name.
	(elf_fixup_removed_symbol): New function.
	* config/obj-elf.h (elf_fixup_removed_symbol): New prototype.
	(obj_fixup_removed_symbol): New.
	* testsuite/gas/symver/symver11.d: Updated expected error
	message.
	* testsuite/gas/symver/symver16.d: New file.
	* testsuite/gas/symver/symver16.s: Likewise.
2021-08-16 06:46:44 -07:00
..
atof-ieee.c gas: fold IEEE encoding of -Inf with that of +Inf 2021-08-11 08:36:53 +02:00
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 as: Replace the removed symbol with the versioned symbol 2021-08-16 06:46:44 -07:00
obj-elf.h as: Replace the removed symbol with the versioned symbol 2021-08-16 06:46:44 -07: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 Fix a typo in the RX asse,bler. The Double-precision floating-point exception handling control register name is DECNT not DCENT. 2021-08-11 14:01:55 +01:00
tc-aarch64.c Arm64: leave .bfloat16 processing to common code 2021-08-11 08:35:42 +02: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 Arm32: leave more .bfloat16 processing to common code 2021-08-11 08:35:18 +02:00
tc-arm.h Use bool in gas 2021-03-31 10:49:23 +10:30
tc-avr.c Add a -mno-dollar-line-separator command line option to the AVR assembler. 2021-08-11 10:03:19 +01:00
tc-avr.h Add a -mno-dollar-line-separator command line option to the AVR assembler. 2021-08-11 10:03:19 +01:00
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 Fix an internal error in the CSKY assembler when asked to resolve an overlarge constant. 2021-08-11 13:49:30 +01: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: introduce .bfloat16 directive 2021-08-11 08:33:49 +02:00
tc-i386.h x86/ELF: fix .ds.x output 2021-08-11 08:31:03 +02: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: correctly output XCOFF tbss symbols with XTY_CM type. 2021-08-04 08:54:59 +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-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-score7.c Use startswith in gas subfolder. 2021-04-01 15:00:08 +02:00
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 Fix typo in previous delta 2021-08-11 08:44:40 +01:00
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-aix.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-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.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_abiv2.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-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-hppa.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-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-nbsd.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-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