]> git.ipfire.org Git - thirdparty/zstd.git/commit
x86-64: Enable Intel CET
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 11 Jan 2022 15:28:25 +0000 (07:28 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 11 Jan 2022 21:19:16 +0000 (13:19 -0800)
commit51ab182bd4af347b08fd1b9df179078c4f596e24
tree54e990db9e776e989da55274672d715c4cb44f20
parente113c0ca490bb2707effdadfac7694e219d03190
x86-64: Enable Intel CET

Intel Control-flow Enforcement Technology (CET):

https://en.wikipedia.org/wiki/Control-flow_integrity#Intel_Control-flow_Enforcement_Technology

requires that on Linux, all linker input files are marked as CET enabled
in .note.gnu.property section.  For high-level language source codes,
.note.gnu.property section is added by compiler with the -fcf-protection
option.  For assembly sources, include <cet.h> to add .note.gnu.property
section.
lib/common/portability_macros.h