diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-12-23 13:00:39 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-12-23 13:00:55 -0800 |
commit | 279d901e5a7a16eb9a3383e316ff4a8d7473d6bd (patch) | |
tree | e88e5c81e28763605903e0971fa900a2a3a4308b /ld/ld.texi | |
parent | 5cc0917c387350c47c350843e3b7a16059345529 (diff) | |
download | gdb-279d901e5a7a16eb9a3383e316ff4a8d7473d6bd.zip gdb-279d901e5a7a16eb9a3383e316ff4a8d7473d6bd.tar.gz gdb-279d901e5a7a16eb9a3383e316ff4a8d7473d6bd.tar.bz2 |
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.
Diffstat (limited to 'ld/ld.texi')
-rw-r--r-- | ld/ld.texi | 44 |
1 files changed, 44 insertions, 0 deletions
@@ -1316,6 +1316,50 @@ al which do not usually function correctly unless they are the sole instances of themselves. This behaviour can be overridden by the @code{dlmopen} caller and does not apply to certain loading mechanisms (such as audit libraries). +@item lam-u48 +Generate GNU_PROPERTY_X86_FEATURE_1_LAM_U48 in .note.gnu.property section +to indicate compatibility with Intel LAM_U48. Supported for Linux/x86_64. + +@item lam-u57 +Generate GNU_PROPERTY_X86_FEATURE_1_LAM_U57 in .note.gnu.property section +to indicate compatibility with Intel LAM_U57. Supported for Linux/x86_64. + +@item lam-u48-report=none +@itemx lam-u48-report=warning +@itemx lam-u48-report=error +Specify how to report the missing GNU_PROPERTY_X86_FEATURE_1_LAM_U48 +property in input .note.gnu.property section. +@option{lam-u48-report=none}, which is the default, will make the +linker not report missing properties in input files. +@option{lam-u48-report=warning} will make the linker issue a warning for +missing properties in input files. @option{lam-u48-report=error} will +make the linker issue an error for missing properties in input files. +Supported for Linux/x86_64. + +@item lam-u57-report=none +@itemx lam-u57-report=warning +@itemx lam-u57-report=error +Specify how to report the missing GNU_PROPERTY_X86_FEATURE_1_LAM_U57 +property in input .note.gnu.property section. +@option{lam-u57-report=none}, which is the default, will make the +linker not report missing properties in input files. +@option{lam-u57-report=warning} will make the linker issue a warning for +missing properties in input files. @option{lam-u57-report=error} will +make the linker issue an error for missing properties in input files. +Supported for Linux/x86_64. + +@item lam-report=none +@itemx lam-report=warning +@itemx lam-report=error +Specify how to report the missing GNU_PROPERTY_X86_FEATURE_1_LAM_U48 and +GNU_PROPERTY_X86_FEATURE_1_LAM_U57 properties in input .note.gnu.property +section. @option{lam-report=none}, which is the default, will make the +linker not report missing properties in input files. +@option{lam-report=warning} will make the linker issue a warning for +missing properties in input files. @option{lam-report=error} will make +the linker issue an error for missing properties in input files. +Supported for Linux/x86_64. + @item lazy When generating an executable or shared library, mark it to tell the dynamic linker to defer function call resolution to the point when |