libphobos: Include <cet.h> to generate the CET marker for -fcf-protection
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 8 Sep 2020 12:54:56 +0000 (05:54 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 9 Sep 2020 17:37:54 +0000 (10:37 -0700)
commitc6632dc9a8ee77ad66a8d62d736a9112de9e41c7
treeb6fa9524be9d951c788d14388f2ceed6c6754cef
parent7b9c26519e6aa07a0709c5c6fcc2b9a6ba050e7a
libphobos: Include <cet.h> to generate the CET marker for -fcf-protection

Include <cet.h> to generate the CET marker for -fcf-protection to avoid

/bin/ld: ../libdruntime/.libs/libgdruntime_convenience.a(libgdruntime_convenience_la-switchcontext.o): error: missing IBT and SHSTK properties

when -z cet-report=error is passed to the linker to create libgphobos.so
and libgdruntime.so.

PR d/95680
* libdruntime/config/x86/switchcontext.S: Include <cet.h> to
generate the CET marker for -fcf-protection.
libphobos/libdruntime/config/x86/switchcontext.S