From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 1B295385E456; Wed, 14 Feb 2024 15:07:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B295385E456 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707923265; bh=NgbKW4++5FO/pGA/qyweuGsdC2zON9XQ1IzCq0EQxtQ=; h=From:To:Subject:Date:From; b=NVhxVqVwph2Tl0PFkxxlZYKlRZrbTMsqkD1m5IPCAiOCT8ph9wG1owGjEqSWNjEVB 9JAWxRlUED33Weq4IfvKF9iRYB1x3HETWXaXX7ucLbYMMgAt78zK9iL4Yq0UA4yARR rpIB7KfvArWMqe7MbR0+FwYHbcgeygrsZo3Wwq3k= 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: ignore GCS property of ld.so X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/gcs X-Git-Oldrev: 5017a71252bd923b764b58cd61021b028c84d361 X-Git-Newrev: 84bfdb91bded2358b2642eed3bdae3c049576eb4 Message-Id: <20240214150745.1B295385E456@sourceware.org> Date: Wed, 14 Feb 2024 15:07:45 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=84bfdb91bded2358b2642eed3bdae3c049576eb4 commit 84bfdb91bded2358b2642eed3bdae3c049576eb4 Author: Szabolcs Nagy Date: Wed Jan 10 16:20:24 2024 +0000 aarch64: ignore GCS property of ld.so ldso->l_mach.gcs may not be set up, just assume ldso is GCS compatible. Diff: --- sysdeps/aarch64/dl-gcs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sysdeps/aarch64/dl-gcs.c b/sysdeps/aarch64/dl-gcs.c index 764b8a56e9..b81aa30787 100644 --- a/sysdeps/aarch64/dl-gcs.c +++ b/sysdeps/aarch64/dl-gcs.c @@ -32,6 +32,11 @@ fail (struct link_map *l, const char *program) static void check_gcs (struct link_map *l, const char *program) { +#ifdef SHARED + /* Ignore GCS marking on ld.so: its properties are not processed. */ + if (l->l_real == &GL(dl_rtld_map)) + return; +#endif if (!l->l_mach.gcs) { if (GLRO(dl_aarch64_gcs_policy) == 2 || !program)