summary refs log tree commit diff
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2016-12-21 12:04:12 +0100
committerFlorian Weimer <fweimer@redhat.com>2016-12-21 12:04:12 +0100
commitfcd942370ff863f67f971e255d30fb9c1f127607 (patch)
treeb8b592d87cbe15badc13822d817222e6758fddbe
parent2908885c822eb43ffa2cdd67e0464e6d35afaf53 (diff)
downloadglibc-fcd942370ff863f67f971e255d30fb9c1f127607.tar.gz
glibc-fcd942370ff863f67f971e255d30fb9c1f127607.tar.xz
glibc-fcd942370ff863f67f971e255d30fb9c1f127607.zip
x86_64: tst-quad1pie, tst-quad2pie: compile with -fPIE [BZ #7065]
With stack protection enabled, these files have external symbol
references for the first time, so the fact that they are not compiled
with -fPIE and are then linked into a -pie binary starts to hurt.
-rw-r--r--ChangeLog6
-rw-r--r--sysdeps/x86_64/Makefile3
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bb4768518e..30f1c82243 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
+
+	[BZ #7065]
+	* sysdeps/x86_64/Makefile [$(subdir) = elf]
+	(CFLAGS-tst-quad1pie.c, CFLAGS-tst-quad2pie.c): Add $(PIE-ccflag).
+
+2016-12-21  Nick Alcock <nick.alcock@oracle.com>
 	    Florian Weimer  <fweimer@redhat.com>
 
 	[BZ #7065]
diff --git a/sysdeps/x86_64/Makefile b/sysdeps/x86_64/Makefile
index 6d99284cd0..5f25893dc9 100644
--- a/sysdeps/x86_64/Makefile
+++ b/sysdeps/x86_64/Makefile
@@ -49,6 +49,9 @@ extra-test-objs += tst-quadmod1pie.o tst-quadmod2pie.o
 $(objpfx)tst-quad1pie: $(objpfx)tst-quadmod1pie.o
 $(objpfx)tst-quad2pie: $(objpfx)tst-quadmod2pie.o
 
+CFLAGS-tst-quad1pie.c = $(PIE-ccflag)
+CFLAGS-tst-quad2pie.c = $(PIE-ccflag)
+
 tests += tst-audit3 tst-audit4 tst-audit5 tst-audit6 tst-audit7 tst-audit10
 test-extras += tst-audit4-aux tst-audit10-aux
 extra-test-objs += tst-audit4-aux.o tst-audit10-aux.o