binutils-gdb/ld/testsuite
H.J. Lu ded035f913 lto: Don't add indirect symbols for versioned aliases in IR
Linker adds indirect symbols for versioned symbol aliases, which are
created by ".symver foo, foo@FOO", by checking symbol type, value and
section so that references to foo will be replaced by references to
foo@FOO if foo and foo@FOO have the same symbol type, value and section.
But in IR, since all symbols of the same type have the same value and
section, we can't tell if a symbol is an alias of another symbol by
their types, values and sections.  We shouldn't add indirect symbols
for versioned symbol aliases in IR.

bfd/

	PR ld/30281
	* elflink.c (elf_link_add_object_symbols): Don't add indirect
	symbols for ".symver foo, foo@FOO" aliases in IR.

ld/

	PR ld/30281
	* testsuite/ld-plugin/lto.exp: Add PR ld/30281 test.
	* testsuite/ld-plugin/pr30281.t: New file.
	* testsuite/ld-plugin/pr30281.c: Likewise.

(cherry picked from commit 79cfb928f5)
2023-04-11 09:25:09 -07:00
..
config Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-aarch64 Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-alpha Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-arc Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-arm ld/testsuite: Adjust for ELF_MAXPAGESIZE 0x1000 2023-01-12 17:41:08 +01:00
ld-auto-import Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-avr Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-bootstrap Pass $JANSSON_LIBS and $ZSTD_LIBS to ld-bootstrap/bootrap.exp 2023-02-06 10:39:18 +10:30
ld-bpf Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-cdtest Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-checks Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-cris Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-crx Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-csky
ld-ctf Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-cygwin Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-d10v Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-discard Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-dynamic Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-elf ppc32 and "LOAD segment with RWX permissions" 2023-03-02 11:34:57 +10:30
ld-elfcomm Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-elfvers Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-elfweak Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-fastcall Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-frv Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-gc Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-h8300 Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-i386 Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-ia64 Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-ifunc Skip ld/pr23169 test on arm. 2023-01-09 16:52:42 +01:00
ld-libs Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-linkonce Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-loongarch-elf Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-m68hc11 Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-m68k Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-mep Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-metag Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-mips-elf Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-misc Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-mmix Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-mn10300 Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-msp430-elf Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-nds32 Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-nios2
ld-or1k Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-pdp11 Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-pe Avoid unaligned pointer reads in PEP idata section 2023-01-05 11:57:00 +00:00
ld-pie Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-plugin lto: Don't add indirect symbols for versioned aliases in IR 2023-04-11 09:25:09 -07:00
ld-powerpc Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-pru
ld-riscv-elf Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-s12z Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-s390 IBM zSystems: Fix offset relative to static TLS 2023-01-10 14:51:47 +01:00
ld-scripts Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-selective Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-sframe Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-sh Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-shared Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-size Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-sparc Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-spu Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-srec Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-tic6x Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-tilegx Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-tilepro Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-undefined Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-unique Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-v850 Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-vax-elf Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-visium Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-vsb Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-vxworks Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-x86-64 Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-xstormy16 Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-xtensa Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-z8k Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ld-z80 Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
lib Update year range in copyright notice of binutils files 2023-01-04 22:14:02 +10:30
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-9303