From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id B4E37385E451; Wed, 14 Feb 2024 15:06:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B4E37385E451 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707923187; bh=MYp2hwRG5qRW5kXcoOnWPqOOoX7UL8nFhOGXncoUmH4=; h=From:To:Subject:Date:From; b=qHtSHj7PGUw2WGROvRsEXgJ6VfetTIqX/86j3giOiynr2SMMNLnaqxlhEW7tyyuK0 0sOXmzbas2C4P05VWLfjzXQ6x+suu4IBPxRqvRpEAM7hqqj86B78IdrH/ueV43iAGY uAaPYnd8E5IV4nSE0drev/QV8C6p9xsGqeMsWiGo= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/gcs] aarch64: mark objects with GCS property note X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/gcs X-Git-Oldrev: 0f6417aafcb5332cea53f81daa2dca9588c8b733 X-Git-Newrev: 6c7378b54f6f8c3db222894ed27342782bf526b7 Message-Id: <20240214150627.B4E37385E451@sourceware.org> Date: Wed, 14 Feb 2024 15:06:27 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6c7378b54f6f8c3db222894ed27342782bf526b7 commit 6c7378b54f6f8c3db222894ed27342782bf526b7 Author: Szabolcs Nagy Date: Fri Dec 22 12:29:48 2023 +0000 aarch64: mark objects with GCS property note TODO: binutils config check TODO: build attributes instead of gnu property Diff: --- sysdeps/aarch64/sysdep.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sysdeps/aarch64/sysdep.h b/sysdeps/aarch64/sysdep.h index 661d9fe8c1..55e0230b5e 100644 --- a/sysdeps/aarch64/sysdep.h +++ b/sysdeps/aarch64/sysdep.h @@ -85,6 +85,7 @@ strip_pac (void *p) #define FEATURE_1_AND 0xc0000000 #define FEATURE_1_BTI 1 #define FEATURE_1_PAC 2 +#define FEATURE_1_GCS 4 /* Add a NT_GNU_PROPERTY_TYPE_0 note. */ #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 where sysdep.h is included. */ #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 -GNU_PROPERTY (FEATURE_1_AND, FEATURE_1_BTI) +GNU_PROPERTY (FEATURE_1_AND, FEATURE_1_BTI|FEATURE_1_GCS) #endif /* Define an entry point visible from C. */