binutils-gdb/ld/testsuite
mengqinggang be1ebb6710 LoongArch: Add R_LARCH_64_PCREL relocation support
Gas defaults to emit R_LARCH_ADD64/R_LARCH_SUB64 unless explcitly declared
  to emit R_LARCH_64_PCREL.

  The LoongArch ABI at here:
    https://github.com/loongson/la-abi-specs/blob/release/la-abi.adoc

bfd/ChangeLog:

	* bfd-in2.h (not): Add R_LARCH_64_PCREL
	* elfnn-loongarch.c (perform_relocation): Likewise.
	* elfxx-loongarch.c: Likewise.
	* libbfd.h: Likewise.
	* reloc.c: Likewise.

gas/ChangeLog:

	* config/tc-loongarch.c (loongarch_args_parser_can_match_arg_helper):
	(md_apply_fix): Add R_LARCH_64_PCREL.
	* testsuite/gas/loongarch/64_pcrel.d: New test.
	* testsuite/gas/loongarch/64_pcrel.s: New test.

include/ChangeLog:

	* elf/loongarch.h (RELOC_NUMBER): Add R_LARCH_64_PCREL.

ld/ChangeLog:

	* testsuite/ld-loongarch-elf/ld-loongarch-elf.exp: Add test.
	* testsuite/ld-loongarch-elf/64_pcrel.d: New test.
	* testsuite/ld-loongarch-elf/64_pcrel.s: New test.
2023-06-28 16:14:35 +08:00
..
config Revert "MIPS: fix some ld testcases with compiler" 2023-06-15 04:45:03 +01:00
ld-aarch64 PR30437 aarch64: make RELA relocs idempotent 2023-05-23 16:43:14 +02:00
ld-alpha Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-arc arc: Update ARC specific linker tests. 2023-04-13 11:21:01 +03:00
ld-arm arm32: Fix rodata-merge-map 2023-01-20 14:58:04 +01:00
ld-auto-import Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-avr Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-bootstrap [PR 30082] Pass $JANSSON_LIBS and $ZSTD_LIBS to ld-bootstrap/bootrap.exp 2023-02-06 10:31:26 +10:30
ld-bpf Changed ld and gas BPF tests 2023-03-20 15:35:21 +00:00
ld-cdtest Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-checks Both FAIL and PASS "check sections 2"? 2023-02-21 16:21:42 +10:30
ld-cris Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-crx Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-csky Trailing spaces in objdump -r header 2022-05-31 11:25:09 +09:30
ld-ctf Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-cygwin Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-d10v Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-discard Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-dynamic Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-elf For test for PR 29072 when the linker is configured with --enable-default-execstack=no. 2023-06-21 11:47:19 +01:00
ld-elfcomm Add extra linker warning message about discrepancies between normal and common symbols. 2023-06-07 14:30:13 +01:00
ld-elfvers Revert "MIPS: fix some ld testcases with compiler" 2023-06-15 04:45:03 +01:00
ld-elfweak obsolete target tidy 2023-01-02 14:03:22 +10:30
ld-fastcall Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-frv Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-gc Revert "MIPS: fix some ld testcases with compiler" 2023-06-15 04:45:03 +01:00
ld-h8300 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-i386 i386: Pass -Wl,--no-as-needed to compiler as needed 2023-01-25 08:57:57 -08:00
ld-ia64 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-ifunc Skip ld/pr23169 test on arm. 2023-01-09 16:51:57 +01:00
ld-libs ld-libs test on alpha-vms 2023-02-21 16:21:25 +10:30
ld-linkonce Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-loongarch-elf LoongArch: Add R_LARCH_64_PCREL relocation support 2023-06-28 16:14:35 +08:00
ld-m68hc11 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-m68k Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-mep Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-metag Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-mips-elf Revert "MIPS: fix r6 testsuites" 2023-06-15 04:45:03 +01:00
ld-misc Re: Add some expected failures for bfin linker tests 2023-06-15 11:45:03 +09:30
ld-mmix Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-mn10300 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-msp430-elf objdump -D of bss sections and -s with -j 2023-02-11 16:43:54 +10:30
ld-nds32 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-nios2 Trailing spaces in objdump -r header 2022-05-31 11:25:09 +09:30
ld-or1k Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-pdp11 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-pe ld: Sort section contributions in PDB files 2023-02-28 00:28:26 +00:00
ld-pie Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-plugin lto test fails with -fno-inline in CFLAGS 2023-06-23 21:02:48 +09:30
ld-powerpc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-pru Trailing spaces in objdump -r header 2022-05-31 11:25:09 +09:30
ld-riscv-elf RISC-V: Support subtraction of .uleb128. 2023-05-19 16:24:10 +08:00
ld-s12z Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-s390 IBM zSystems: Fix offset relative to static TLS 2023-01-10 14:34:16 +01:00
ld-scripts Revert "MIPS: fix -gnuabi64 testsuite" 2023-06-15 04:45:03 +01:00
ld-selective Revert "MIPS: fix some ld testcases with compiler" 2023-06-15 04:45:03 +01:00
ld-sframe Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-sh Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-shared Revert "MIPS: fix some ld testcases with compiler" 2023-06-15 04:45:03 +01:00
ld-size Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-sparc Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-spu objdump -D of bss sections and -s with -j 2023-02-11 16:43:54 +10:30
ld-srec Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-tic6x Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-tilegx Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-tilepro Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-undefined Revert "MIPS: fix -gnuabi64 testsuite" 2023-06-15 04:45:03 +01:00
ld-unique Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-v850 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-vax-elf Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-visium Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-vsb Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-vxworks Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-x86-64 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-xstormy16 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-xtensa bfd: xtensa: fix __stop_SECTION literal drop 2023-02-23 10:48:16 +00:00
ld-z8k Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
ld-z80 Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
lib ld testsuite CFLAGS_FOR_TARGET 2023-03-29 12:56:46 +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