]> git.ipfire.org Git - thirdparty/nettle.git/commit
x86: Add ASM_X86_ENDBR and x86 CET marker to config.m4.in
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 28 Feb 2020 17:52:08 +0000 (09:52 -0800)
committerNiels Möller <nisse@lysator.liu.se>
Sat, 14 Mar 2020 10:49:29 +0000 (11:49 +0100)
commit99118f50b0f6cf695c82f3c2da7b9b5f9d850ef8
tree506b34f192bfedcfa244a83cb13fff5f046c4420
parent46fcc7f0b6abffd2632d8809ef8dc8f70e4a1ff9
x86: Add ASM_X86_ENDBR and x86 CET marker to config.m4.in

Intel Control-flow Enforcement Technology (CET):

https://software.intel.com/en-us/articles/intel-sdm

contains shadow stack (SHSTK) and indirect branch tracking (IBT).  When
CET is enabled, ELF object files must be marked with .note.gnu.property
section.  Also when IBT is enabled, all indirect branch targets must
start with ENDBR instruction.

This patch adds ASM_X86_ENDBR and the x86 CET marker to config.m4.in when
CET is enabled.  It updates PROLOGUE with ASM_X86_ENDBR.

Tested on CET machine with i686 and x86-64.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
asm.m4
config.m4.in
configure.ac