]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86_64: tst-quad1pie, tst-quad2pie: compile with -fPIE [BZ #7065]
authorNick Alcock <nick.alcock@oracle.com>
Wed, 21 Dec 2016 11:04:12 +0000 (12:04 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 21 Dec 2016 11:04:12 +0000 (12:04 +0100)
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.

ChangeLog
sysdeps/x86_64/Makefile

index bb4768518e3420e55f0d43ea5692bd6796eb2b7e..30f1c8224316416d207f3ab6e00745a5f2e592ff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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>
 
index 6d99284cd0c77add9fc3811615feb735ad40de3a..5f25893dc9ff12565f3f64a25e89050286787a79 100644 (file)
@@ -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