From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id BFC093858000; Thu, 9 Feb 2023 19:52:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BFC093858000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675972352; bh=eVXYTJOHk3QROsIrPJpVTte6hoqkOqkTkcM9N7/GtA4=; h=From:To:Subject:Date:From; b=Ju17v8DBpeuswXuavZeBrWdhsm8eEfmVLbnNxU9cN+PcjrXecAPyPuLFCKYdhAyzS LQ0UcKc0p5p12p72PqK/U2HJOUzEBD+5d4UoU72WeYIpO/0GQANHPi9tjnI5302wzY lQXm6vFQqJv76CIjT6v0SOekaBV22KkopjAlbLIU= 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: 575329cf73a99291a5d2b187391f9da07312e584 X-Git-Newrev: 965d0c0c2c06709ea07feaccbc979e49837a2b50 Message-Id: <20230209195232.BFC093858000@sourceware.org> Date: Thu, 9 Feb 2023 19:52:32 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=965d0c0c2c06709ea07feaccbc979e49837a2b50 commit 965d0c0c2c06709ea07feaccbc979e49837a2b50 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 5e94c290f2..fcedc0cd8d 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 2e65e36078..7c60918f23 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 b9cf6844de..30eeb84c68 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