aboutsummaryrefslogtreecommitdiff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@redhat.com>2013-09-23 01:44:38 -0400
committerAllan McRae <allan@archlinux.org>2013-10-25 23:56:45 +1000
commit9a010a5f6328aa7ba353679e9a9e07465917d6a0 (patch)
treed886ab619f2731dcbb0c74f6d7a672ab54c5135c /elf/Makefile
parentf03cfdf9bf62f776338171fe2ba6eebbf8948875 (diff)
downloadglibc-9a010a5f6328aa7ba353679e9a9e07465917d6a0.tar.xz
glibc-9a010a5f6328aa7ba353679e9a9e07465917d6a0.zip
BZ #15754: Fix test case for ARM.
Statically built binaries use __pointer_chk_guard_local, while dynamically built binaries use __pointer_chk_guard. Provide the right definition depending on the test case we are building.
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 98834f4cb7..9e21c27e03 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -1019,6 +1019,9 @@ tst-stackguard1-ARGS = --command "$(host-test-program-cmd) --child"
tst-stackguard1-static-ARGS = --command "$(objpfx)tst-stackguard1-static --child"
tst-ptrguard1-ARGS = --command "$(host-test-program-cmd) --child"
+# When built statically, the pointer guard interface uses
+# __pointer_chk_guard_local.
+CFLAGS-tst-ptrguard1-static.c = -DPTRGUARD_LOCAL
tst-ptrguard1-static-ARGS = --command "$(objpfx)tst-ptrguard1-static --child"
$(objpfx)tst-leaks1: $(libdl)