mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-10 05:03:06 +03:00
aarch64: Mark objects with GCS property note
Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
committed by
Yury Khrustalev
parent
01f52b11de
commit
76b79f7241
@@ -85,6 +85,7 @@ strip_pac (void *p)
|
|||||||
#define FEATURE_1_AND 0xc0000000
|
#define FEATURE_1_AND 0xc0000000
|
||||||
#define FEATURE_1_BTI 1
|
#define FEATURE_1_BTI 1
|
||||||
#define FEATURE_1_PAC 2
|
#define FEATURE_1_PAC 2
|
||||||
|
#define FEATURE_1_GCS 4
|
||||||
|
|
||||||
/* Add a NT_GNU_PROPERTY_TYPE_0 note. */
|
/* Add a NT_GNU_PROPERTY_TYPE_0 note. */
|
||||||
#define GNU_PROPERTY(type, value) \
|
#define GNU_PROPERTY(type, value) \
|
||||||
@@ -103,9 +104,9 @@ strip_pac (void *p)
|
|||||||
/* Add GNU property note with the supported features to all asm code
|
/* Add GNU property note with the supported features to all asm code
|
||||||
where sysdep.h is included. */
|
where sysdep.h is included. */
|
||||||
#if HAVE_AARCH64_BTI && HAVE_AARCH64_PAC_RET
|
#if HAVE_AARCH64_BTI && HAVE_AARCH64_PAC_RET
|
||||||
GNU_PROPERTY (FEATURE_1_AND, FEATURE_1_BTI|FEATURE_1_PAC)
|
GNU_PROPERTY (FEATURE_1_AND, FEATURE_1_BTI|FEATURE_1_PAC|FEATURE_1_GCS)
|
||||||
#elif HAVE_AARCH64_BTI
|
#elif HAVE_AARCH64_BTI
|
||||||
GNU_PROPERTY (FEATURE_1_AND, FEATURE_1_BTI)
|
GNU_PROPERTY (FEATURE_1_AND, FEATURE_1_BTI|FEATURE_1_GCS)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Define an entry point visible from C. */
|
/* Define an entry point visible from C. */
|
||||||
|
Reference in New Issue
Block a user