aboutsummaryrefslogtreecommitdiff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-09-30 01:39:14 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-09-30 01:39:32 -0700
commit2000067a4be0dc8a70f6d3704a9e8388eb9066c9 (patch)
tree5cffa757bae1be8d0d0d0a451d1418da1e963843 /elf/Makefile
parent1e2bffd05c36a9be30d7092d6593a9e9aa009ada (diff)
downloadglibc-2000067a4be0dc8a70f6d3704a9e8388eb9066c9.zip
glibc-2000067a4be0dc8a70f6d3704a9e8388eb9066c9.tar.gz
glibc-2000067a4be0dc8a70f6d3704a9e8388eb9066c9.tar.bz2
Add a test for non-PIE static executable
tst-tls1-static-non-pie is built with $(no-pie-ldflag) to make it a non-PIE static executable, regardless if --enable-static-pie is used to configure glibc. * elf/Makefile (tests-static-internal): Add tst-tls1-static-non-pie. (LDFLAGS-tst-tls1-static-non-pie): New. * elf/tst-tls1-static-non-pie.c: New file.
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/elf/Makefile b/elf/Makefile
index e21f37e..c6edebd 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -149,7 +149,10 @@ tests-static-normal := tst-leaks1-static tst-array1-static tst-array5-static \
tst-tlsalign-static tst-tlsalign-extern-static \
tst-linkall-static tst-env-setuid tst-env-setuid-tunables
tests-static-internal := tst-tls1-static tst-tls2-static \
- tst-ptrguard1-static tst-stackguard1-static
+ tst-ptrguard1-static tst-stackguard1-static \
+ tst-tls1-static-non-pie
+
+LDFLAGS-tst-tls1-static-non-pie = $(no-pie-ldflag)
tests := tst-tls9 tst-leaks1 \
tst-array1 tst-array2 tst-array3 tst-array4 tst-array5 \