binutils-gdb/ld/testsuite
Max Filippov 30ce8e47fa xtensa: fix PR ld/25861
Introduce new relaxations XTENSA_PDIFF{8,16,32} for positive differences
(subtracted symbol precedes diminished symbol) and XTENSA_NDIFF{8,16,32}
for negative differences (subtracted symbol follows diminished symbol).
Don't generate XTENSA_DIFF relocations in the assembler, generate
XTENSA_PDIFF or XTENSA_NDIFF based on relative symbol position.

Handle XTENSA_DIFF in BFD for compatibility with old object files.
Handle XTENSA_PDIFF and XTENSA_NDIFF in BFD, treating difference value
as unsigned.

2020-04-22  Max Filippov  <jcmvbkbc@gmail.com>
bfd/
	* bfd-in2.h: Regenerated.
	* elf32-xtensa.c (elf_howto_table): New entries for
	R_XTENSA_PDIFF{8,16,32} and R_XTENSA_NDIFF{8,16,32}.
	(elf_xtensa_reloc_type_lookup, elf_xtensa_do_reloc)
	(relax_section): Add cases for R_XTENSA_PDIFF{8,16,32} and
	R_XTENSA_NDIFF{8,16,32}.
	* libbfd.h (bfd_reloc_code_real_names): Add names for
	BFD_RELOC_XTENSA_PDIFF{8,16,32} and
	BFD_RELOC_XTENSA_NDIFF{8,16,32}.
	* reloc.c: Add documentation for BFD_RELOC_XTENSA_PDIFF{8,16,32}
	and BFD_RELOC_XTENSA_NDIFF{8,16,32}.

binutils/
	* readelf.c (is_none_reloc): Recognize
	BFD_RELOC_XTENSA_PDIFF{8,16,32} and
	BFD_RELOC_XTENSA_NDIFF{8,16,32}.

gas/
	* config/tc-xtensa.c (md_apply_fix): Replace
	BFD_RELOC_XTENSA_DIFF{8,16,32} generation with
	BFD_RELOC_XTENSA_PDIFF{8,16,32} and
	BFD_RELOC_XTENSA_NDIFF{8,16,32} generation.
	* testsuite/gas/xtensa/loc.d: Replace BFD_RELOC_XTENSA_DIFF16
	with BFD_RELOC_XTENSA_PDIFF16 in the expected output.

include/
	* elf/xtensa.h (elf_xtensa_reloc_type): New entries for
	R_XTENSA_PDIFF{8,16,32} and R_XTENSA_NDIFF{8,16,32}.

ld/
	* testsuite/ld-xtensa/relax-loc.d: New test definition.
	* testsuite/ld-xtensa/relax-loc.s: New test source.
	* testsuite/ld-xtensa/xtensa.exp (relax-loc): New test.
2020-04-22 18:46:45 -07:00
..
config Commit: Running the linker testsuite with clang 2020-04-17 13:03:53 +01:00
ld-aarch64 AArch64: Set the correct ELF class for AArch64 stubs (PR/25210) 2020-01-02 14:08:27 +00:00
ld-alpha elf: Strip zero-sized dynamic sections 2020-04-21 05:24:03 -07:00
ld-arc [ARC][committed] Update test matching pattern. 2020-01-13 11:16:47 +02:00
ld-arm readelf: Consolidate --syms --use-dynamic with --dyn-syms 2020-04-14 05:00:34 -07:00
ld-auto-import Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-avr Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-bootstrap Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-bpf Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-cdtest Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-checks Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-cris PR25593, --as-needed breaks DT_NEEDED order with linker plugin 2020-02-26 10:37:25 +10:30
ld-crx Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-csky
ld-cygwin Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-d10v Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-discard Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-elf ld: Don't xfail ld-elf/warn[12] on 64-bit Solaris/SPARC 2020-04-18 22:17:24 +02:00
ld-elfcomm Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-elfvers Commit: Running the linker testsuite with clang 2020-04-17 13:03:53 +01:00
ld-elfvsb readelf: Consolidate --syms --use-dynamic with --dyn-syms 2020-04-14 05:00:34 -07:00
ld-elfweak Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-fastcall Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-frv Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-gc Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-h8300 h8300-linux ld testsuite 2020-03-25 14:51:41 +10:30
ld-i386 ELF: Add support for unique section ID to assembler 2020-02-02 17:08:01 -08:00
ld-ia64 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-ifunc ld: Disable ifunc tests on Solaris 2020-04-02 10:52:57 +02:00
ld-libs Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-linkonce Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-m68hc11 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-m68k Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-mep Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-metag Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-mips-elf readelf: Consolidate --syms --use-dynamic with --dyn-syms 2020-04-14 05:00:34 -07:00
ld-misc Fix linker tests to work with 16-bit targets. 2020-04-21 15:10:52 +01:00
ld-mmix mmix-mmo set SEC_DATA for .data section 2020-02-28 08:19:42 +10:30
ld-mn10300 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-msp430-elf MSP430: Add input section rules for .upper sections to default linker script 2020-01-16 13:22:31 +00:00
ld-nds32 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-nios2
ld-or1k Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-pdp11 Fixes for the magic number used in PDP11 AOUT binaries. 2020-04-14 14:41:27 +01:00
ld-pe Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-pie Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-plugin plugin: Don't invoke LTO-wrapper 2020-03-20 03:55:30 -07:00
ld-powerpc PowerPC64: remove empty .rela.dyn (.rela.branch_lt) 2020-04-20 08:14:42 +09:30
ld-pru
ld-riscv-elf Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-s12z Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-s390 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-scripts Correct mingw target select 2020-04-22 21:14:36 +09:30
ld-selective Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-sh Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-shared ld: xfail several shared (non PIC) tests on Solaris 2020-04-10 11:18:10 +02:00
ld-size Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-sparc Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-spu Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-srec ld: Add NOCF_PROTECTION_CFLAGS to turn off -fcf-protection 2020-04-02 07:12:45 -07:00
ld-tic6x Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-tilegx Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-tilepro Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-undefined h8300-linux ld testsuite 2020-03-25 14:51:41 +10:30
ld-unique unique.exp: Update contains_unique_symbol 2020-02-07 12:03:40 -08:00
ld-v850 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-vax-elf Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-visium Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-vxworks Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-x86-64 ld: Add NOCF_PROTECTION_CFLAGS to turn off -fcf-protection 2020-04-02 07:12:45 -07:00
ld-xc16x Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-xstormy16 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-xtensa xtensa: fix PR ld/25861 2020-04-22 18:46:45 -07:00
ld-z8k Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-z80 Various fixes for the Z80 support. 2020-02-19 17:46:10 +00:00
lib Use GCC LTO wrapper to get real symbols from LTO IR objects 2020-02-10 19:01:53 -08:00
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