binutils-gdb/ld/testsuite
H.J. Lu 279d901e5a x86-64: Add Intel LAM property support
Add Intel Linear Address Masking (LAM) property support.  LAM modifies
the checking that is applied to 64-bit linear addresses, allowing
software to use of the untranslated address bits for metadata.

bfd/

	* elf-linker-x86.h (elf_x86_cet_report): Renamed to ...
	(elf_x86_prop_report): This.
	(elf_linker_x86_params): Add lam_u48, lam_u57, lam_u48_report
	and lam_u57_report.
	* elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Support
	GNU_PROPERTY_X86_FEATURE_1_LAM_U48 and
	GNU_PROPERTY_X86_FEATURE_1_LAM_U57.
	(_bfd_x86_elf_link_fixup_gnu_properties): Keep LAM features only
	for 64-bit output.

binutils/

	* NEWS: Mention LAM_U48 and LAM_U57 support.
	* elfedit.c (elf_x86_feature): Support lam_u48 and lam_u57.
	(usage): Add lam_u48 and lam_u57.
	* readelf.c (decode_x86_feature_1): Support LAM_U48 and LAM_U57.
	* doc/binutils.texi: Update elfedit with lam_u48 and lam_u57
	support.
	* testsuite/binutils-all/x86-64/lam-u48.d: New file.
	* testsuite/binutils-all/x86-64/lam-u48.s: Likewise.
	* testsuite/binutils-all/x86-64/lam-u57.d: Likewise.
	* testsuite/binutils-all/x86-64/lam-u57.s: Likewise.

include/

	* elf/common.h (GNU_PROPERTY_X86_FEATURE_1_LAM_U48): New.
	(GNU_PROPERTY_X86_FEATURE_1_LAM_U57): Likewise.

ld/

	* NEWS: Mention LAM_U48 and LAM_U57 support.
	* ld.texi: Document LAM_U48 and LAM_U57 support.
	* emulparams/cet.sh: Updated.
	* emulparams/elf_x86_64.sh: Source x86-64-lam.sh.
	* emulparams/x86-64-lam.sh: New file.
	* testsuite/ld-x86-64/property-x86-lam-u48-1a.d: Likewise.
	* testsuite/ld-x86-64/property-x86-lam-u48-1b.d: Likewise.
	* testsuite/ld-x86-64/property-x86-lam-u48-2.d: Likewise.
	* testsuite/ld-x86-64/property-x86-lam-u48-3a.d: Likewise.
	* testsuite/ld-x86-64/property-x86-lam-u48-3b.d: Likewise.
	* testsuite/ld-x86-64/property-x86-lam-u48-4.d: Likewise.
	* testsuite/ld-x86-64/property-x86-lam-u48-5.d: Likewise.
	* testsuite/ld-x86-64/property-x86-lam-u48.s: Likewise.
	* testsuite/ld-x86-64/property-x86-lam-u57-1a.d: Likewise.
	* testsuite/ld-x86-64/property-x86-lam-u57-1b.d: Likewise.
	* testsuite/ld-x86-64/property-x86-lam-u57-2.d: Likewise.
	* testsuite/ld-x86-64/property-x86-lam-u57-3a.d: Likewise.
	* testsuite/ld-x86-64/property-x86-lam-u57-3b.d: Likewise.
	* testsuite/ld-x86-64/property-x86-lam-u57-4.d: Likewise.
	* testsuite/ld-x86-64/property-x86-lam-u57-5.d: Likewise.
	* testsuite/ld-x86-64/property-x86-lam-u57.s: Likewise.
	* testsuite/ld-x86-64/x86-64.exp: Run LAM tests.
2020-12-23 13:00:55 -08:00
..
config ld: Skip libdep plugin if not all plugin hooks are available 2020-12-16 13:40:51 -08:00
ld-aarch64
ld-alpha
ld-arc ld: Make ARC's tls_ie-01 test more flexible 2020-11-23 12:25:44 +02:00
ld-arm
ld-auto-import
ld-avr
ld-bootstrap ld: Skip bootstrap tests for -fprofile-generate= 2020-10-22 07:03:59 -07:00
ld-bpf
ld-cdtest
ld-checks Provide dummy libraries for alpha-vms 2020-10-19 16:28:43 +10:30
ld-cris
ld-crx
ld-csky CSKY: Change default linker script for elf toolchain. 2020-10-26 17:13:21 +08:00
ld-ctf libctf, ld: properly deduplicate function types 2020-11-20 13:34:10 +00:00
ld-cygwin
ld-d10v
ld-discard
ld-dynamic
ld-elf elf: Copy elf_gnu_osabi_retain only for relocatable link 2020-12-18 04:24:36 -08:00
ld-elfcomm ld: Pass -fno-lto to non LTO tests 2020-10-22 06:04:36 -07:00
ld-elfvers ld: Pass -fno-lto to non LTO tests 2020-10-22 06:04:36 -07:00
ld-elfvsb ld: Pass -fno-lto to non LTO tests 2020-10-22 06:04:36 -07:00
ld-elfweak ld: Pass -fno-lto in ld-elfweak/elfweak.exp 2020-10-26 16:45:35 -07:00
ld-fastcall
ld-frv
ld-gc ld: Pass -fno-lto to non LTO tests 2020-10-22 06:04:36 -07:00
ld-h8300
ld-i386 elf: Set rel_from_abs to 1 for __ehdr_start 2020-11-13 15:44:47 -08:00
ld-ia64
ld-ifunc RISC-V: Support GNU indirect functions. 2020-10-16 10:11:18 +08:00
ld-libs
ld-linkonce
ld-m68hc11
ld-m68k
ld-mep
ld-metag
ld-mips-elf
ld-misc
ld-mmix
ld-mn10300
ld-msp430-elf
ld-nds32
ld-nios2
ld-or1k
ld-pdp11
ld-pe
ld-pie
ld-plugin PR26806, Suspected linker bug with LTO 2020-11-02 09:39:53 +10:30
ld-powerpc PowerPC paranioa testing of symbol merging involving comdat groups 2020-11-18 23:49:31 +10:30
ld-pru
ld-riscv-elf RISC-V: Relax PCREL to GPREL while doing other relaxations is dangerous. 2020-11-21 09:41:58 +08:00
ld-s12z
ld-s390 IBM Z: Add support for HLASM extended mnemonics 2020-12-03 16:51:12 +01:00
ld-scripts Extend ld's -Map=<dir> functionality by allowing '%' to be replaced with the output file path. 2020-11-06 14:36:45 +00:00
ld-selective ld: Pass -fno-lto to non LTO tests 2020-10-22 06:04:36 -07:00
ld-sh
ld-shared
ld-size
ld-sparc
ld-spu
ld-srec ld: Pass -fno-lto to non LTO tests 2020-10-22 06:04:36 -07:00
ld-tic6x
ld-tilegx
ld-tilepro
ld-undefined PR26882, --enable-textrel-check=warning test failures on powerpc 2020-11-17 20:59:53 +10:30
ld-unique
ld-v850
ld-vax-elf VAX/BFD: Do not warn about GOT addend mismatches if no GOT entry is made 2020-12-05 11:18:14 +00:00
ld-visium
ld-vxworks
ld-x86-64 x86-64: Add Intel LAM property support 2020-12-23 13:00:55 -08:00
ld-xc16x
ld-xstormy16
ld-xtensa
ld-z8k
ld-z80
lib ld: Pass -fno-lto to non LTO tests 2020-10-22 06:04:36 -07: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