|
|
4c1956 |
commit 7de01e60c200c431d3469deb784da8fd4508fc15
|
|
|
4c1956 |
Author: Florian Weimer <fweimer@redhat.com>
|
|
|
4c1956 |
Date: Fri Jan 14 20:16:05 2022 +0100
|
|
|
4c1956 |
|
|
|
4c1956 |
elf/Makefile: Reflow and sort most variable assignments
|
|
|
4c1956 |
|
|
|
4c1956 |
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
|
|
|
4c1956 |
|
|
|
4c1956 |
Conflicts:
|
|
|
4c1956 |
elf/Makefile
|
|
|
4c1956 |
Complete rewrite of reflow.
|
|
|
4c1956 |
|
|
|
4c1956 |
diff --git a/elf/Makefile b/elf/Makefile
|
|
|
4c1956 |
index 53faca4585220048..954cd08c199f5037 100644
|
|
|
4c1956 |
--- a/elf/Makefile
|
|
|
4c1956 |
+++ b/elf/Makefile
|
|
|
4c1956 |
@@ -21,20 +21,60 @@ subdir := elf
|
|
|
4c1956 |
|
|
|
4c1956 |
include ../Makeconfig
|
|
|
4c1956 |
|
|
|
4c1956 |
-headers = elf.h bits/elfclass.h link.h bits/link.h bits/link_lavcurrent.h
|
|
|
4c1956 |
-routines = $(all-dl-routines) dl-support dl-iteratephdr \
|
|
|
4c1956 |
- dl-addr dl-addr-obj enbl-secure dl-profstub \
|
|
|
4c1956 |
- dl-origin dl-libc dl-sym dl-sysdep dl-error \
|
|
|
4c1956 |
- dl-reloc-static-pie libc_early_init
|
|
|
4c1956 |
+headers = \
|
|
|
4c1956 |
+ bits/elfclass.h \
|
|
|
4c1956 |
+ bits/link.h \
|
|
|
4c1956 |
+ bits/link_lavcurrent.h \
|
|
|
4c1956 |
+ elf.h \
|
|
|
4c1956 |
+ link.h \
|
|
|
4c1956 |
+ # headers
|
|
|
4c1956 |
+
|
|
|
4c1956 |
+routines = \
|
|
|
4c1956 |
+ $(all-dl-routines) \
|
|
|
4c1956 |
+ dl-addr \
|
|
|
4c1956 |
+ dl-addr-obj \
|
|
|
4c1956 |
+ dl-error \
|
|
|
4c1956 |
+ dl-iteratephdr \
|
|
|
4c1956 |
+ dl-libc \
|
|
|
4c1956 |
+ dl-origin \
|
|
|
4c1956 |
+ dl-profstub \
|
|
|
4c1956 |
+ dl-reloc-static-pie \
|
|
|
4c1956 |
+ dl-support \
|
|
|
4c1956 |
+ dl-sym \
|
|
|
4c1956 |
+ dl-sysdep \
|
|
|
4c1956 |
+ enbl-secure \
|
|
|
4c1956 |
+ libc_early_init \
|
|
|
4c1956 |
+ # routines
|
|
|
4c1956 |
|
|
|
4c1956 |
# The core dynamic linking functions are in libc for the static and
|
|
|
4c1956 |
# profiled libraries.
|
|
|
4c1956 |
-dl-routines = $(addprefix dl-,load lookup object reloc deps \
|
|
|
4c1956 |
- runtime init fini debug misc \
|
|
|
4c1956 |
- version profile tls origin scope \
|
|
|
4c1956 |
- execstack open close trampoline \
|
|
|
4c1956 |
- exception sort-maps lookup-direct \
|
|
|
4c1956 |
- call-libc-early-init write)
|
|
|
4c1956 |
+dl-routines = \
|
|
|
4c1956 |
+ dl-call-libc-early-init \
|
|
|
4c1956 |
+ dl-close \
|
|
|
4c1956 |
+ dl-debug \
|
|
|
4c1956 |
+ dl-deps \
|
|
|
4c1956 |
+ dl-exception \
|
|
|
4c1956 |
+ dl-execstack \
|
|
|
4c1956 |
+ dl-fini \
|
|
|
4c1956 |
+ dl-init \
|
|
|
4c1956 |
+ dl-load \
|
|
|
4c1956 |
+ dl-lookup \
|
|
|
4c1956 |
+ dl-lookup-direct \
|
|
|
4c1956 |
+ dl-misc \
|
|
|
4c1956 |
+ dl-object \
|
|
|
4c1956 |
+ dl-open \
|
|
|
4c1956 |
+ dl-origin \
|
|
|
4c1956 |
+ dl-profile \
|
|
|
4c1956 |
+ dl-reloc \
|
|
|
4c1956 |
+ dl-runtime \
|
|
|
4c1956 |
+ dl-scope \
|
|
|
4c1956 |
+ dl-sort-maps \
|
|
|
4c1956 |
+ dl-tls \
|
|
|
4c1956 |
+ dl-trampoline \
|
|
|
4c1956 |
+ dl-version \
|
|
|
4c1956 |
+ dl-write \
|
|
|
4c1956 |
+ # dl-routines
|
|
|
4c1956 |
+
|
|
|
4c1956 |
ifeq (yes,$(use-ldconfig))
|
|
|
4c1956 |
dl-routines += dl-cache
|
|
|
4c1956 |
endif
|
|
|
4c1956 |
@@ -57,15 +97,36 @@ endif
|
|
|
4c1956 |
|
|
|
4c1956 |
all-dl-routines = $(dl-routines) $(sysdep-dl-routines)
|
|
|
4c1956 |
# But they are absent from the shared libc, because that code is in ld.so.
|
|
|
4c1956 |
-elide-routines.os = $(all-dl-routines) dl-support enbl-secure dl-origin \
|
|
|
4c1956 |
- dl-sysdep dl-exception dl-reloc-static-pie
|
|
|
4c1956 |
+elide-routines.os = \
|
|
|
4c1956 |
+ $(all-dl-routines) \
|
|
|
4c1956 |
+ dl-exception \
|
|
|
4c1956 |
+ dl-origin \
|
|
|
4c1956 |
+ dl-reloc-static-pie \
|
|
|
4c1956 |
+ dl-support \
|
|
|
4c1956 |
+ dl-sysdep \
|
|
|
4c1956 |
+ enbl-secure \
|
|
|
4c1956 |
+ # elide-routines.os
|
|
|
4c1956 |
|
|
|
4c1956 |
# ld.so uses those routines, plus some special stuff for being the program
|
|
|
4c1956 |
# interpreter and operating independent of libc.
|
|
|
4c1956 |
-rtld-routines = rtld $(all-dl-routines) dl-sysdep dl-environ dl-minimal \
|
|
|
4c1956 |
- dl-error-minimal dl-conflict dl-hwcaps dl-hwcaps_split dl-hwcaps-subdirs \
|
|
|
4c1956 |
- dl-usage dl-diagnostics dl-diagnostics-kernel dl-diagnostics-cpu \
|
|
|
4c1956 |
- dl-audit
|
|
|
4c1956 |
+rtld-routines = \
|
|
|
4c1956 |
+ $(all-dl-routines) \
|
|
|
4c1956 |
+ dl-audit \
|
|
|
4c1956 |
+ dl-conflict \
|
|
|
4c1956 |
+ dl-diagnostics \
|
|
|
4c1956 |
+ dl-diagnostics-cpu \
|
|
|
4c1956 |
+ dl-diagnostics-kernel \
|
|
|
4c1956 |
+ dl-environ \
|
|
|
4c1956 |
+ dl-error-minimal \
|
|
|
4c1956 |
+ dl-hwcaps \
|
|
|
4c1956 |
+ dl-hwcaps-subdirs \
|
|
|
4c1956 |
+ dl-hwcaps_split \
|
|
|
4c1956 |
+ dl-minimal \
|
|
|
4c1956 |
+ dl-sysdep \
|
|
|
4c1956 |
+ dl-usage \
|
|
|
4c1956 |
+ rtld \
|
|
|
4c1956 |
+ # rtld-routines
|
|
|
4c1956 |
+
|
|
|
4c1956 |
all-rtld-routines = $(rtld-routines) $(sysdep-rtld-routines)
|
|
|
4c1956 |
|
|
|
4c1956 |
CFLAGS-dl-runtime.c += -fexceptions -fasynchronous-unwind-tables
|
|
|
4c1956 |
@@ -98,8 +159,18 @@ ld-map = $(common-objpfx)ld.map
|
|
|
4c1956 |
endif
|
|
|
4c1956 |
|
|
|
4c1956 |
ifeq (yes,$(build-shared))
|
|
|
4c1956 |
-extra-objs = $(all-rtld-routines:%=%.os) soinit.os sofini.os interp.os
|
|
|
4c1956 |
-generated += librtld.os dl-allobjs.os ld.so ldd
|
|
|
4c1956 |
+extra-objs = \
|
|
|
4c1956 |
+ $(all-rtld-routines:%=%.os) \
|
|
|
4c1956 |
+ sofini.os \
|
|
|
4c1956 |
+ soinit.os \
|
|
|
4c1956 |
+ interp.os \
|
|
|
4c1956 |
+ # extra-objs
|
|
|
4c1956 |
+generated += \
|
|
|
4c1956 |
+ dl-allobjs.os \
|
|
|
4c1956 |
+ ldd \
|
|
|
4c1956 |
+ ld.so \
|
|
|
4c1956 |
+ librtld.os \
|
|
|
4c1956 |
+ # generated
|
|
|
4c1956 |
install-others = $(inst_rtlddir)/$(rtld-installed-name) $(inst_bindir)/ld.so
|
|
|
4c1956 |
install-bin-script = ldd
|
|
|
4c1956 |
endif
|
|
|
4c1956 |
@@ -117,8 +188,15 @@ others-static += ldconfig
|
|
|
4c1956 |
others += ldconfig
|
|
|
4c1956 |
install-rootsbin += ldconfig
|
|
|
4c1956 |
|
|
|
4c1956 |
-ldconfig-modules := cache readlib xmalloc xstrdup chroot_canon static-stubs \
|
|
|
4c1956 |
- stringtable
|
|
|
4c1956 |
+ldconfig-modules := \
|
|
|
4c1956 |
+ cache \
|
|
|
4c1956 |
+ chroot_canon \
|
|
|
4c1956 |
+ readlib \
|
|
|
4c1956 |
+ static-stubs \
|
|
|
4c1956 |
+ stringtable \
|
|
|
4c1956 |
+ xmalloc \
|
|
|
4c1956 |
+ xstrdup \
|
|
|
4c1956 |
+ # ldconfig-modules
|
|
|
4c1956 |
extra-objs += $(ldconfig-modules:=.o)
|
|
|
4c1956 |
others-extras = $(ldconfig-modules)
|
|
|
4c1956 |
endif
|
|
|
4c1956 |
@@ -153,20 +231,34 @@ $(inst_auditdir)/sotruss-lib.so: $(objpfx)sotruss-lib.so $(+force)
|
|
|
4c1956 |
$(do-install-program)
|
|
|
4c1956 |
endif
|
|
|
4c1956 |
|
|
|
4c1956 |
-tests-static-normal := tst-leaks1-static tst-array1-static tst-array5-static \
|
|
|
4c1956 |
- tst-dl-iter-static \
|
|
|
4c1956 |
- tst-tlsalign-static tst-tlsalign-extern-static \
|
|
|
4c1956 |
- tst-linkall-static tst-env-setuid tst-env-setuid-tunables \
|
|
|
4c1956 |
- tst-dst-static
|
|
|
4c1956 |
-tests-static-internal := tst-tls1-static tst-tls2-static \
|
|
|
4c1956 |
- tst-ptrguard1-static tst-stackguard1-static \
|
|
|
4c1956 |
- tst-tls1-static-non-pie tst-libc_dlvsym-static
|
|
|
4c1956 |
+tests-static-normal := \
|
|
|
4c1956 |
+ tst-array1-static \
|
|
|
4c1956 |
+ tst-array5-static \
|
|
|
4c1956 |
+ tst-dl-iter-static \
|
|
|
4c1956 |
+ tst-dst-static \
|
|
|
4c1956 |
+ tst-env-setuid \
|
|
|
4c1956 |
+ tst-env-setuid-tunables \
|
|
|
4c1956 |
+ tst-leaks1-static \
|
|
|
4c1956 |
+ tst-linkall-static \
|
|
|
4c1956 |
+ tst-tlsalign-extern-static \
|
|
|
4c1956 |
+ tst-tlsalign-static \
|
|
|
4c1956 |
+ # tests-static-normal
|
|
|
4c1956 |
+
|
|
|
4c1956 |
+tests-static-internal := \
|
|
|
4c1956 |
+ tst-libc_dlvsym-static \
|
|
|
4c1956 |
+ tst-ptrguard1-static \
|
|
|
4c1956 |
+ tst-stackguard1-static \
|
|
|
4c1956 |
+ tst-tls1-static \
|
|
|
4c1956 |
+ tst-tls1-static-non-pie \
|
|
|
4c1956 |
+ tst-tls2-static \
|
|
|
4c1956 |
+ # tests-static-internal
|
|
|
4c1956 |
|
|
|
4c1956 |
CRT-tst-tls1-static-non-pie := $(csu-objpfx)crt1.o
|
|
|
4c1956 |
tst-tls1-static-non-pie-no-pie = yes
|
|
|
4c1956 |
|
|
|
4c1956 |
tests-container = \
|
|
|
4c1956 |
- tst-ldconfig-bad-aux-cache
|
|
|
4c1956 |
+ tst-ldconfig-bad-aux-cache \
|
|
|
4c1956 |
+ # tests-container
|
|
|
4c1956 |
|
|
|
4c1956 |
ifeq (no,$(build-hardcoded-path-in-tests))
|
|
|
4c1956 |
# This is an ld.so.cache test, and RPATH/RUNPATH in the executable
|
|
|
4c1956 |
@@ -174,14 +266,31 @@ ifeq (no,$(build-hardcoded-path-in-tests))
|
|
|
4c1956 |
tests-container += tst-glibc-hwcaps-prepend-cache
|
|
|
4c1956 |
endif
|
|
|
4c1956 |
|
|
|
4c1956 |
-tests := tst-tls9 tst-leaks1 \
|
|
|
4c1956 |
- tst-array1 tst-array2 tst-array3 tst-array4 tst-array5 \
|
|
|
4c1956 |
- tst-auxv tst-stringtable
|
|
|
4c1956 |
-tests-internal := tst-tls1 tst-tls2 $(tests-static-internal)
|
|
|
4c1956 |
+tests := \
|
|
|
4c1956 |
+ tst-array1 \
|
|
|
4c1956 |
+ tst-array2 \
|
|
|
4c1956 |
+ tst-array3 \
|
|
|
4c1956 |
+ tst-array4 \
|
|
|
4c1956 |
+ tst-array5 \
|
|
|
4c1956 |
+ tst-auxv \
|
|
|
4c1956 |
+ tst-leaks1 \
|
|
|
4c1956 |
+ tst-stringtable \
|
|
|
4c1956 |
+ tst-tls9 \
|
|
|
4c1956 |
+ # tests
|
|
|
4c1956 |
+
|
|
|
4c1956 |
+tests-internal := \
|
|
|
4c1956 |
+ $(tests-static-internal) \
|
|
|
4c1956 |
+ tst-tls1 \
|
|
|
4c1956 |
+ tst-tls2 \
|
|
|
4c1956 |
+ # tests-internal
|
|
|
4c1956 |
+
|
|
|
4c1956 |
tests-static := $(tests-static-normal) $(tests-static-internal)
|
|
|
4c1956 |
|
|
|
4c1956 |
ifeq (yes,$(build-shared))
|
|
|
4c1956 |
-tests-static += tst-tls9-static
|
|
|
4c1956 |
+tests-static += \
|
|
|
4c1956 |
+ tst-tls9-static \
|
|
|
4c1956 |
+ # tests-static
|
|
|
4c1956 |
+
|
|
|
4c1956 |
tst-tls9-static-ENV = \
|
|
|
4c1956 |
LD_LIBRARY_PATH=$(objpfx):$(common-objpfx):$(common-objpfx)dlfcn
|
|
|
4c1956 |
|
|
|
4c1956 |
@@ -302,37 +411,71 @@ tests += \
|
|
|
4c1956 |
unload6 \
|
|
|
4c1956 |
unload7 \
|
|
|
4c1956 |
unload8 \
|
|
|
4c1956 |
-# reldep9
|
|
|
4c1956 |
+ # tests
|
|
|
4c1956 |
tests-cxx = \
|
|
|
4c1956 |
tst-dlopen-nodelete-reloc \
|
|
|
4c1956 |
tst-nodelete \
|
|
|
4c1956 |
tst-unique3 \
|
|
|
4c1956 |
tst-unique4 \
|
|
|
4c1956 |
-# tests-cxx
|
|
|
4c1956 |
+ # tests-cxx
|
|
|
4c1956 |
|
|
|
4c1956 |
tests += $(if $(CXX),$(tests-cxx))
|
|
|
4c1956 |
-tests-internal += loadtest unload unload2 circleload1 \
|
|
|
4c1956 |
- neededtest neededtest2 neededtest3 neededtest4 \
|
|
|
4c1956 |
- tst-tls3 tst-tls6 tst-tls7 tst-tls8 tst-dlmopen2 \
|
|
|
4c1956 |
- tst-ptrguard1 tst-stackguard1 tst-libc_dlvsym \
|
|
|
4c1956 |
- tst-create_format1 tst-tls-surplus tst-dl-hwcaps_split \
|
|
|
4c1956 |
- tst-audit19a
|
|
|
4c1956 |
-tests-container += tst-pldd tst-preload-pthread-libc
|
|
|
4c1956 |
+
|
|
|
4c1956 |
+tests-internal += \
|
|
|
4c1956 |
+ circleload1 \
|
|
|
4c1956 |
+ loadtest \
|
|
|
4c1956 |
+ neededtest \
|
|
|
4c1956 |
+ neededtest2 \
|
|
|
4c1956 |
+ neededtest3 \
|
|
|
4c1956 |
+ neededtest4 \
|
|
|
4c1956 |
+ tst-audit19a \
|
|
|
4c1956 |
+ tst-create_format1 \
|
|
|
4c1956 |
+ tst-dl-hwcaps_split \
|
|
|
4c1956 |
+ tst-dlmopen2 \
|
|
|
4c1956 |
+ tst-libc_dlvsym \
|
|
|
4c1956 |
+ tst-ptrguard1 \
|
|
|
4c1956 |
+ tst-stackguard1 \
|
|
|
4c1956 |
+ tst-tls-surplus \
|
|
|
4c1956 |
+ tst-tls3 \
|
|
|
4c1956 |
+ tst-tls6 \
|
|
|
4c1956 |
+ tst-tls7 \
|
|
|
4c1956 |
+ tst-tls8 \
|
|
|
4c1956 |
+ unload \
|
|
|
4c1956 |
+ unload2 \
|
|
|
4c1956 |
+ # tests-internal
|
|
|
4c1956 |
+
|
|
|
4c1956 |
+tests-container += \
|
|
|
4c1956 |
+ tst-pldd \
|
|
|
4c1956 |
+ tst-preload-pthread-libc
|
|
|
4c1956 |
+ # tests-container
|
|
|
4c1956 |
+
|
|
|
4c1956 |
ifeq ($(build-hardcoded-path-in-tests),yes)
|
|
|
4c1956 |
tests += tst-dlopen-aout
|
|
|
4c1956 |
tst-dlopen-aout-no-pie = yes
|
|
|
4c1956 |
endif
|
|
|
4c1956 |
-test-srcs = tst-pathopt
|
|
|
4c1956 |
+test-srcs = \
|
|
|
4c1956 |
+ tst-pathopt
|
|
|
4c1956 |
+ # tests-srcs
|
|
|
4c1956 |
+
|
|
|
4c1956 |
selinux-enabled := $(shell cat /selinux/enforce 2> /dev/null)
|
|
|
4c1956 |
+
|
|
|
4c1956 |
ifneq ($(selinux-enabled),1)
|
|
|
4c1956 |
-tests-execstack-yes = tst-execstack tst-execstack-needed tst-execstack-prog
|
|
|
4c1956 |
+tests-execstack-yes = \
|
|
|
4c1956 |
+ tst-execstack \
|
|
|
4c1956 |
+ tst-execstack-needed \
|
|
|
4c1956 |
+ tst-execstack-prog \
|
|
|
4c1956 |
+ # tests-execstack-yes
|
|
|
4c1956 |
endif
|
|
|
4c1956 |
endif
|
|
|
4c1956 |
tests += $(tests-execstack-$(have-z-execstack))
|
|
|
4c1956 |
ifeq ($(run-built-tests),yes)
|
|
|
4c1956 |
-tests-special += $(objpfx)tst-leaks1-mem.out \
|
|
|
4c1956 |
- $(objpfx)tst-leaks1-static-mem.out $(objpfx)noload-mem.out \
|
|
|
4c1956 |
- $(objpfx)tst-ldconfig-X.out $(objpfx)tst-rtld-help.out
|
|
|
4c1956 |
+tests-special += \
|
|
|
4c1956 |
+ $(objpfx)noload-mem.out \
|
|
|
4c1956 |
+ $(objpfx)tst-ldconfig-X.out \
|
|
|
4c1956 |
+ $(objpfx)tst-leaks1-mem.out \
|
|
|
4c1956 |
+ $(objpfx)tst-leaks1-static-mem.out \
|
|
|
4c1956 |
+ $(objpfx)tst-rtld-help.out \
|
|
|
4c1956 |
+ # tests-special
|
|
|
4c1956 |
endif
|
|
|
4c1956 |
tlsmod17a-suffixes = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
|
|
4c1956 |
tlsmod18a-suffixes = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
|
|
4c1956 |
@@ -349,9 +492,16 @@ tst-tls-many-dynamic-modules-dep = \
|
|
|
4c1956 |
tst-tls-many-dynamic-modules-dep-bad-suffixes = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
|
|
4c1956 |
tst-tls-many-dynamic-modules-dep-bad = \
|
|
|
4c1956 |
$(foreach n,$(tst-tls-many-dynamic-modules-dep-bad-suffixes),tst-tls-manydynamic$(n)mod-dep-bad)
|
|
|
4c1956 |
-extra-test-objs += $(tlsmod17a-modules:=.os) $(tlsmod18a-modules:=.os) \
|
|
|
4c1956 |
- tst-tlsalign-vars.o
|
|
|
4c1956 |
-test-extras += tst-tlsmod17a tst-tlsmod18a tst-tlsalign-vars
|
|
|
4c1956 |
+extra-test-objs += \
|
|
|
4c1956 |
+ $(tlsmod17a-modules:=.os) \
|
|
|
4c1956 |
+ $(tlsmod18a-modules:=.os) \
|
|
|
4c1956 |
+ tst-tlsalign-vars.o \
|
|
|
4c1956 |
+ # extra-test-objs
|
|
|
4c1956 |
+test-extras += \
|
|
|
4c1956 |
+ tst-tlsalign-vars \
|
|
|
4c1956 |
+ tst-tlsmod17a \
|
|
|
4c1956 |
+ tst-tlsmod18a \
|
|
|
4c1956 |
+ # test-extras
|
|
|
4c1956 |
modules-names = \
|
|
|
4c1956 |
circlemod1 \
|
|
|
4c1956 |
circlemod1a \
|
|
|
4c1956 |
@@ -607,17 +757,17 @@ modules-names-cxx = \
|
|
|
4c1956 |
tst-unique3lib \
|
|
|
4c1956 |
tst-unique3lib2 \
|
|
|
4c1956 |
tst-unique4lib \
|
|
|
4c1956 |
-# modules-names-cxx
|
|
|
4c1956 |
+ # modules-names-cxx
|
|
|
4c1956 |
|
|
|
4c1956 |
modules-names += \
|
|
|
4c1956 |
$(if $(CXX),$(modules-names-cxx)) \
|
|
|
4c1956 |
$(modules-execstack-$(have-z-execstack)) \
|
|
|
4c1956 |
+ $(tlsmod17a-modules) \
|
|
|
4c1956 |
+ $(tlsmod18a-modules) \
|
|
|
4c1956 |
$(tst-tls-many-dynamic-modules) \
|
|
|
4c1956 |
$(tst-tls-many-dynamic-modules-dep) \
|
|
|
4c1956 |
$(tst-tls-many-dynamic-modules-dep-bad) \
|
|
|
4c1956 |
- $(tlsmod17a-modules) \
|
|
|
4c1956 |
- $(tlsmod18a-modules) \
|
|
|
4c1956 |
-# modules-names
|
|
|
4c1956 |
+ # modules-names
|
|
|
4c1956 |
|
|
|
4c1956 |
# Most modules build with _ISOMAC defined, but those filtered out
|
|
|
4c1956 |
# depend on internal headers.
|
|
|
4c1956 |
@@ -680,54 +830,103 @@ modules-names-nobuild := filtmod1
|
|
|
4c1956 |
tests += $(tests-static)
|
|
|
4c1956 |
|
|
|
4c1956 |
ifneq (no,$(multi-arch))
|
|
|
4c1956 |
-tests-ifuncstatic := ifuncmain1static ifuncmain1picstatic \
|
|
|
4c1956 |
- ifuncmain2static ifuncmain2picstatic \
|
|
|
4c1956 |
- ifuncmain4static ifuncmain4picstatic \
|
|
|
4c1956 |
- ifuncmain5static ifuncmain5picstatic \
|
|
|
4c1956 |
- ifuncmain7static ifuncmain7picstatic
|
|
|
4c1956 |
+tests-ifuncstatic := \
|
|
|
4c1956 |
+ ifuncmain1static \
|
|
|
4c1956 |
+ ifuncmain1picstatic \
|
|
|
4c1956 |
+ ifuncmain2static \
|
|
|
4c1956 |
+ ifuncmain2picstatic \
|
|
|
4c1956 |
+ ifuncmain4static \
|
|
|
4c1956 |
+ ifuncmain4picstatic \
|
|
|
4c1956 |
+ ifuncmain5static \
|
|
|
4c1956 |
+ ifuncmain5picstatic \
|
|
|
4c1956 |
+ ifuncmain7static \
|
|
|
4c1956 |
+ ifuncmain7picstatic \
|
|
|
4c1956 |
+ # tests-ifuncstatic
|
|
|
4c1956 |
tests-static += $(tests-ifuncstatic)
|
|
|
4c1956 |
tests-internal += $(tests-ifuncstatic)
|
|
|
4c1956 |
ifeq (yes,$(build-shared))
|
|
|
4c1956 |
tests-internal += \
|
|
|
4c1956 |
- ifuncmain1 ifuncmain1pic ifuncmain1vis ifuncmain1vispic \
|
|
|
4c1956 |
- ifuncmain1staticpic \
|
|
|
4c1956 |
- ifuncmain2 ifuncmain2pic ifuncmain3 ifuncmain4 \
|
|
|
4c1956 |
- ifuncmain5 ifuncmain5pic ifuncmain5staticpic \
|
|
|
4c1956 |
- ifuncmain7 ifuncmain7pic
|
|
|
4c1956 |
-ifunc-test-modules = ifuncdep1 ifuncdep1pic ifuncdep2 ifuncdep2pic \
|
|
|
4c1956 |
- ifuncdep5 ifuncdep5pic
|
|
|
4c1956 |
+ ifuncmain1 \
|
|
|
4c1956 |
+ ifuncmain1pic \
|
|
|
4c1956 |
+ ifuncmain1staticpic \
|
|
|
4c1956 |
+ ifuncmain1vis \
|
|
|
4c1956 |
+ ifuncmain1vispic \
|
|
|
4c1956 |
+ ifuncmain2 \
|
|
|
4c1956 |
+ ifuncmain2pic \
|
|
|
4c1956 |
+ ifuncmain3 \
|
|
|
4c1956 |
+ ifuncmain4 \
|
|
|
4c1956 |
+ ifuncmain5 \
|
|
|
4c1956 |
+ ifuncmain5pic \
|
|
|
4c1956 |
+ ifuncmain5staticpic \
|
|
|
4c1956 |
+ ifuncmain7 \
|
|
|
4c1956 |
+ ifuncmain7pic \
|
|
|
4c1956 |
+ # tests-internal
|
|
|
4c1956 |
+ifunc-test-modules = \
|
|
|
4c1956 |
+ ifuncdep1 \
|
|
|
4c1956 |
+ ifuncdep1pic \
|
|
|
4c1956 |
+ ifuncdep2 \
|
|
|
4c1956 |
+ ifuncdep2pic \
|
|
|
4c1956 |
+ ifuncdep5 \
|
|
|
4c1956 |
+ ifuncdep5pic \
|
|
|
4c1956 |
+ # ifunc-test-modules
|
|
|
4c1956 |
extra-test-objs += $(ifunc-test-modules:=.o)
|
|
|
4c1956 |
test-internal-extras += $(ifunc-test-modules)
|
|
|
4c1956 |
ifeq (yes,$(have-fpie))
|
|
|
4c1956 |
-ifunc-pie-tests = ifuncmain1pie ifuncmain1vispie ifuncmain1staticpie \
|
|
|
4c1956 |
- ifuncmain5pie ifuncmain6pie ifuncmain7pie
|
|
|
4c1956 |
+ifunc-pie-tests = \
|
|
|
4c1956 |
+ ifuncmain1pie \
|
|
|
4c1956 |
+ ifuncmain1staticpie \
|
|
|
4c1956 |
+ ifuncmain1vispie \
|
|
|
4c1956 |
+ ifuncmain5pie \
|
|
|
4c1956 |
+ ifuncmain6pie \
|
|
|
4c1956 |
+ ifuncmain7pie \
|
|
|
4c1956 |
+ # ifunc-pie-tests
|
|
|
4c1956 |
tests-internal += $(ifunc-pie-tests)
|
|
|
4c1956 |
tests-pie += $(ifunc-pie-tests)
|
|
|
4c1956 |
endif
|
|
|
4c1956 |
-modules-names += ifuncmod1 ifuncmod3 ifuncmod5 ifuncmod6
|
|
|
4c1956 |
+modules-names += \
|
|
|
4c1956 |
+ ifuncmod1 \
|
|
|
4c1956 |
+ ifuncmod3 \
|
|
|
4c1956 |
+ ifuncmod5 \
|
|
|
4c1956 |
+ ifuncmod6 \
|
|
|
4c1956 |
+ # modules-names
|
|
|
4c1956 |
endif
|
|
|
4c1956 |
endif
|
|
|
4c1956 |
|
|
|
4c1956 |
ifeq (yes,$(build-shared))
|
|
|
4c1956 |
ifeq ($(run-built-tests),yes)
|
|
|
4c1956 |
-tests-special += $(objpfx)tst-pathopt.out $(objpfx)tst-rtld-load-self.out \
|
|
|
4c1956 |
- $(objpfx)tst-rtld-preload.out $(objpfx)argv0test.out \
|
|
|
4c1956 |
- $(objpfx)tst-rtld-help.out
|
|
|
4c1956 |
+tests-special += \
|
|
|
4c1956 |
+ $(objpfx)argv0test.out \
|
|
|
4c1956 |
+ $(objpfx)tst-pathopt.out \
|
|
|
4c1956 |
+ $(objpfx)tst-rtld-help.out \
|
|
|
4c1956 |
+ $(objpfx)tst-rtld-load-self.out \
|
|
|
4c1956 |
+ $(objpfx)tst-rtld-preload.out \
|
|
|
4c1956 |
+ # tests-special
|
|
|
4c1956 |
endif
|
|
|
4c1956 |
-tests-special += $(objpfx)check-textrel.out $(objpfx)check-execstack.out \
|
|
|
4c1956 |
- $(objpfx)check-wx-segment.out \
|
|
|
4c1956 |
- $(objpfx)check-localplt.out $(objpfx)check-initfini.out
|
|
|
4c1956 |
+tests-special += \
|
|
|
4c1956 |
+ $(objpfx)check-execstack.out \
|
|
|
4c1956 |
+ $(objpfx)check-initfini.out \
|
|
|
4c1956 |
+ $(objpfx)check-localplt.out \
|
|
|
4c1956 |
+ $(objpfx)check-textrel.out \
|
|
|
4c1956 |
+ $(objpfx)check-wx-segment.out \
|
|
|
4c1956 |
+ # tests-special
|
|
|
4c1956 |
endif
|
|
|
4c1956 |
|
|
|
4c1956 |
ifeq ($(run-built-tests),yes)
|
|
|
4c1956 |
-tests-special += $(objpfx)order-cmp.out $(objpfx)tst-array1-cmp.out \
|
|
|
4c1956 |
- $(objpfx)tst-array1-static-cmp.out \
|
|
|
4c1956 |
- $(objpfx)tst-array2-cmp.out $(objpfx)tst-array3-cmp.out \
|
|
|
4c1956 |
- $(objpfx)tst-array4-cmp.out $(objpfx)tst-array5-cmp.out \
|
|
|
4c1956 |
- $(objpfx)tst-array5-static-cmp.out $(objpfx)order2-cmp.out \
|
|
|
4c1956 |
- $(objpfx)tst-initorder-cmp.out \
|
|
|
4c1956 |
- $(objpfx)tst-initorder2-cmp.out $(objpfx)tst-unused-dep.out \
|
|
|
4c1956 |
- $(objpfx)tst-unused-dep-cmp.out
|
|
|
4c1956 |
+tests-special += \
|
|
|
4c1956 |
+ $(objpfx)order-cmp.out \
|
|
|
4c1956 |
+ $(objpfx)order2-cmp.out \
|
|
|
4c1956 |
+ $(objpfx)tst-array1-cmp.out \
|
|
|
4c1956 |
+ $(objpfx)tst-array1-static-cmp.out \
|
|
|
4c1956 |
+ $(objpfx)tst-array2-cmp.out \
|
|
|
4c1956 |
+ $(objpfx)tst-array3-cmp.out \
|
|
|
4c1956 |
+ $(objpfx)tst-array4-cmp.out \
|
|
|
4c1956 |
+ $(objpfx)tst-array5-cmp.out \
|
|
|
4c1956 |
+ $(objpfx)tst-array5-static-cmp.out \
|
|
|
4c1956 |
+ $(objpfx)tst-initorder-cmp.out \
|
|
|
4c1956 |
+ $(objpfx)tst-initorder2-cmp.out \
|
|
|
4c1956 |
+ $(objpfx)tst-unused-dep-cmp.out \
|
|
|
4c1956 |
+ $(objpfx)tst-unused-dep.out \
|
|
|
4c1956 |
+ # tests-special
|
|
|
4c1956 |
endif
|
|
|
4c1956 |
|
|
|
4c1956 |
check-abi: $(objpfx)check-abi-ld.out
|
|
|
4c1956 |
@@ -807,6 +1006,7 @@ rtld-stubbed-symbols = \
|
|
|
4c1956 |
free \
|
|
|
4c1956 |
malloc \
|
|
|
4c1956 |
realloc \
|
|
|
4c1956 |
+ # rtld-stubbed-symbols
|
|
|
4c1956 |
|
|
|
4c1956 |
# The GCC arguments that implement $(rtld-stubbed-symbols).
|
|
|
4c1956 |
rtld-stubbed-symbols-args = \
|