mbox series

[0/2] elf: Update GNU_PROPERTY_X86_XXX macros

Message ID 20181108201340.29845-1-hjl.tools@gmail.com
Headers show
Series elf: Update GNU_PROPERTY_X86_XXX macros | expand

Message

H.J. Lu Nov. 8, 2018, 8:13 p.m. UTC
This set of patches updates GNU_PROPERTY_X86_XXX macros according to the
x86 program property in x86-64 psABI:

https://github.com/hjl-tools/x86-psABI/wiki/x86-64-psABI-property.pdf

The NT_GNU_PROPERTY_TYPE_0 note is used to describe features and
capabilities supported by ELF binaries.  Consumers of ELF binaries can
consult the NT_GNU_PROPERTY_TYPE_0 note to make appropriate decisions.
If a consumer of ELF binaries ignores NT_GNU_PROPERTY_TYPE_0 note, nothing
is changed.  The new GNU_PROPERTY_X86_UINT32_VALID bit is used by
_dl_process_cet_property_note to detect if the NT_GNU_PROPERTY_TYPE_0
note is generated by updated linkers so that it can stop checking for
invalid .note.gnu.property section.

H.J. Lu (2):
  elf: Update GNU_PROPERTY_X86_XXX macros [BZ #23797]
  x86/CET: Stop if the GNU_PROPERTY_X86_UINT32_VALID bit is set

 elf/elf.h             | 98 ++++++++++++++++++++++++++++++++-----------
 sysdeps/x86/dl-prop.h |  6 +++
 2 files changed, 79 insertions(+), 25 deletions(-)