aboutsummaryrefslogtreecommitdiff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-01-11 20:44:32 +0000
committerUlrich Drepper <drepper@redhat.com>2006-01-11 20:44:32 +0000
commit3baf2e9b75d110f47394e41127f8a4983c9d35c3 (patch)
tree0915995b1a0006e7a756eec0ebeadafcf40971cf /elf/Makefile
parentbd7d6b406d28d0eb334b10e7cdfe952698fa2032 (diff)
downloadglibc-3baf2e9b75d110f47394e41127f8a4983c9d35c3.tar
glibc-3baf2e9b75d110f47394e41127f8a4983c9d35c3.tar.gz
glibc-3baf2e9b75d110f47394e41127f8a4983c9d35c3.tar.bz2
glibc-3baf2e9b75d110f47394e41127f8a4983c9d35c3.zip
* elf/check-localplt.c: New file.
* elf/Makefile: Add rules to build and run check-localplt. * scripts/data/localplt-x86_64-linux-gnu.data: New file. * scripts/data/localplt-i386-linux-gnu.data: New file.
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 35d90db13c..fedbb20155 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -806,6 +806,10 @@ check-textrel-CFLAGS = -O -Wall -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
$(objpfx)check-textrel: check-textrel.c
$(native-compile)
+check-localplt-CFLAGS = -O -Wall -D_GNU_SOURCE -std=gnu99
+$(objpfx)check-localplt: check-localplt.c
+ $(native-compile)
+
ifeq (yes,$(build-shared))
tests: $(objpfx)check-textrel.out
@@ -818,6 +822,18 @@ generated += check-textrel check-textrel.out
$(objpfx)tst-dlmodcount: $(libdl)
$(objpfx)tst-dlmodcount.out: $(test-modules)
+check-data := $(firstword $(wildcard \
+ $(foreach M,$(config-machine) $(base-machine),\
+ ../scripts/data/localplt-$M-$(config-os).data)))
+ifneq (,$(check-data))
+tests: $(objpfx)check-localplt.out
+
+$(objpfx)check-localplt.out: $(objpfx)check-localplt $(common-objpfx)libc.so \
+ $(common-objpfx)math/libm.so $(check-data)
+ $(objpfx)check-localplt $(common-objpfx)libc.so \
+ $(common-objpfx)math/libm.so | LC_ALL=C sort |\
+ diff -u $(check-data) -
+endif
endif
$(objpfx)tst-dlopenrpathmod.so: $(libdl)