aboutsummaryrefslogtreecommitdiff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2024-07-02 13:19:13 +0200
committerFlorian Weimer <fweimer@redhat.com>2024-07-08 15:28:00 +0200
commita2f53a77559b610c8bf762c5d22172d9d45800e0 (patch)
treebe4fbd7a144bcb5840be71d09ef117a55794f41a /elf/Makefile
parent9fc639f654dc004736836613be703e6bed0c36a8 (diff)
downloadglibc-fw/bug31943-with-test.tar.xz
glibc-fw/bug31943-with-test.zip
elf: Handle ld.so with LOAD segment gaps in _dl_find_object (bug 31943)fw/bug31943-with-test
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile
index a3475f3fb5..a9fd97e96e 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -615,6 +615,14 @@ $(objpfx)tst-relro-libc.out: tst-relro-symbols.py $(..)/scripts/glibcelf.py \
--required=_IO_wfile_jumps \
--required=__io_vtables \
> $@ 2>&1; $(evaluate-test)
+tests-special += $(objpfx)tst-gaps-ldso.out
+$(objpfx)tst-gaps-ldso.out: tst-load-segment-gaps.py \
+ $(..)/scripts/glibcelf.py $(objpfx)ld.so
+ $(PYTHON) tst-load-segment-gaps.py $(objpfx)ld.so \
+ > $@ 2>&1; $(evaluate-test)
+ifeq ($(have-ld-load-gaps),yes)
+test-xfail-tst-gaps-ldso = yes
+endif
ifeq ($(run-built-tests),yes)
tests-special += $(objpfx)tst-valgrind-smoke.out