]> git.ipfire.org Git - thirdparty/zstd.git/commit
x86: Append -z cet-report=error to LDFLAGS 2994/head
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 11 Jan 2022 18:36:44 +0000 (10:36 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 20 Jan 2022 16:32:01 +0000 (08:32 -0800)
commitd6fcdd123cbf05735c894c81599a0926c3427d4f
tree96daa3d83b957579018616d09e680df44725bc1d
parent4dfc4eca9a166b474b09542a9fc8e2da162eea99
x86: Append -z cet-report=error to LDFLAGS

Append -z cet-report=error to LDFLAGS if -fcf-protection is enabled by
default in compiler to catch the missing Intel CET marker:

compiling multi-threaded dynamic library 1.5.1
/usr/local/bin/ld: obj/conf_f408b4c825de923ffc88f7f21b6884b1/dynamic/huf_decompress_amd64.o: error: missing IBT and SHSTK properties
collect2: error: ld returned 1 exit status
...
LINK obj/conf_dbc0b41e36c44111bb0bb918e093d7c1/zstd
/usr/local/bin/ld: obj/conf_dbc0b41e36c44111bb0bb918e093d7c1/huf_decompress_amd64.o: error: missing IBT and SHSTK properties
collect2: error: ld returned 1 exit status
lib/libzstd.mk