From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id C47873858403; Fri, 9 Feb 2024 17:35:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C47873858403 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707500156; bh=Etxil31qbFnxO67BWO1D07nzcmd92Lz9VJu/73iSfYs=; h=From:To:Subject:Date:From; b=VL6hEwKI/uV7JJpN0yy3YlRnbKpGwD2zt9KsUFCiFwjt8NgzwaMTA6Ocwg51Dc/bI mgfMUcm0cC2RUyi7hlWavDmBOc786frVgt/y6zfQcyPoGZtnC5+zIC844YKo/VsO1t uSI9nXL0sh8KOFpOTr+ww4flzmRkt688XUfq74dI= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] Undef attribute_relro on internal tests that include tls.h X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 0d9d1f3feb3afe4e577c00091ede83a7ccadaa72 X-Git-Newrev: 9b337dd4e799033c8a5689da1d87e506a4059189 Message-Id: <20240209173556.C47873858403@sourceware.org> Date: Fri, 9 Feb 2024 17:35:56 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9b337dd4e799033c8a5689da1d87e506a4059189 commit 9b337dd4e799033c8a5689da1d87e506a4059189 Author: Adhemerval Zanella Date: Fri Mar 25 16:41:34 2022 -0300 Undef attribute_relro on internal tests that include tls.h So it does not clash with global definition. Diff: --- elf/tst-ptrguard1.c | 2 ++ elf/tst-stackguard1.c | 2 ++ nptl/tst-stackguard1.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/elf/tst-ptrguard1.c b/elf/tst-ptrguard1.c index 1e7a8df514..083b83a9fa 100644 --- a/elf/tst-ptrguard1.c +++ b/elf/tst-ptrguard1.c @@ -22,6 +22,8 @@ #include #include #include +#undef attribute_relro +#define attribute_relro #include #include diff --git a/elf/tst-stackguard1.c b/elf/tst-stackguard1.c index 7770f46640..cfadeff31e 100644 --- a/elf/tst-stackguard1.c +++ b/elf/tst-stackguard1.c @@ -23,6 +23,8 @@ #include #include #include +#undef attribute_relro +#define attribute_relro #include #include diff --git a/nptl/tst-stackguard1.c b/nptl/tst-stackguard1.c index 9c793680e4..587ad5f5ef 100644 --- a/nptl/tst-stackguard1.c +++ b/nptl/tst-stackguard1.c @@ -24,6 +24,8 @@ #include #include #include +#undef attribute_relro +#define attribute_relro #include #include