about summary refs log tree commit diff
path: root/elf/tst-tls1-static-non-pie.c
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/tst-tls1-static-non-pie.c
parent1e2bffd05c36a9be30d7092d6593a9e9aa009ada (diff)
downloadglibc-2000067a4be0dc8a70f6d3704a9e8388eb9066c9.tar.gz
glibc-2000067a4be0dc8a70f6d3704a9e8388eb9066c9.tar.xz
glibc-2000067a4be0dc8a70f6d3704a9e8388eb9066c9.zip
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/tst-tls1-static-non-pie.c')
-rw-r--r--elf/tst-tls1-static-non-pie.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/tst-tls1-static-non-pie.c b/elf/tst-tls1-static-non-pie.c
new file mode 100644
index 0000000000..a01008073b
--- /dev/null
+++ b/elf/tst-tls1-static-non-pie.c
@@ -0,0 +1 @@
+#include "tst-tls1.c"