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.
This commit is contained in:
parent
7b9c26519e
commit
c6632dc9a8
|
@ -24,6 +24,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|||
|
||||
#include "../common/threadasm.S"
|
||||
|
||||
/* NB: Generate the CET marker for -fcf-protection. */
|
||||
#ifdef __CET__
|
||||
# include <cet.h>
|
||||
#endif
|
||||
|
||||
#if defined(__i386__) && !defined(__CET__)
|
||||
|
||||
.text
|
||||
|
|
Loading…
Reference in New Issue