Undef attribute_relro on internal tests that include tls.h

So it does not clash with global definition.
This commit is contained in:
Adhemerval Zanella 2022-03-25 16:41:34 -03:00
parent d5eaf6b106
commit 033cbb8ef8
3 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,8 @@
#include <string.h>
#include <sys/wait.h>
#include <stackguard-macros.h>
#undef attribute_relro
#define attribute_relro
#include <tls.h>
#include <unistd.h>

View File

@ -23,6 +23,8 @@
#include <string.h>
#include <sys/wait.h>
#include <stackguard-macros.h>
#undef attribute_relro
#define attribute_relro
#include <tls.h>
#include <unistd.h>

View File

@ -24,6 +24,8 @@
#include <string.h>
#include <sys/wait.h>
#include <stackguard-macros.h>
#undef attribute_relro
#define attribute_relro
#include <tls.h>
#include <unistd.h>