94084c
commit 7de01e60c200c431d3469deb784da8fd4508fc15
94084c
Author: Florian Weimer <fweimer@redhat.com>
94084c
Date:   Fri Jan 14 20:16:05 2022 +0100
94084c
94084c
    elf/Makefile: Reflow and sort most variable assignments
94084c
94084c
    Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
94084c
94084c
Conflicts:
94084c
	elf/Makefile
94084c
	  (Usual backporting differences.  LLD support is missing
94084c
	  downstream.)
94084c
94084c
diff --git a/elf/Makefile b/elf/Makefile
94084c
index 5b9c36bc6f0a3ee5..124905f96c88ab53 100644
94084c
--- a/elf/Makefile
94084c
+++ b/elf/Makefile
94084c
@@ -21,21 +21,62 @@ subdir		:= elf
94084c
 
94084c
 include ../Makeconfig
94084c
 
94084c
-headers		= elf.h bits/elfclass.h link.h bits/link.h
94084c
-routines	= $(all-dl-routines) dl-support dl-iteratephdr \
94084c
-		  dl-addr dl-addr-obj enbl-secure dl-profstub \
94084c
-		  dl-origin dl-libc dl-sym dl-sysdep dl-error \
94084c
-		  dl-reloc-static-pie libc_early_init rtld_static_init
94084c
+headers = \
94084c
+  bits/elfclass.h \
94084c
+  bits/link.h \
94084c
+  elf.h \
94084c
+  link.h \
94084c
+  # headers
94084c
+
94084c
+routines = \
94084c
+  $(all-dl-routines) \
94084c
+  dl-addr \
94084c
+  dl-addr-obj \
94084c
+  dl-error \
94084c
+  dl-iteratephdr \
94084c
+  dl-libc \
94084c
+  dl-origin \
94084c
+  dl-profstub \
94084c
+  dl-reloc-static-pie \
94084c
+  dl-support \
94084c
+  dl-sym \
94084c
+  dl-sysdep \
94084c
+  enbl-secure \
94084c
+  libc_early_init \
94084c
+  rtld_static_init \
94084c
+  # routines
94084c
 
94084c
 # The core dynamic linking functions are in libc for the static and
94084c
 # profiled libraries.
94084c
-dl-routines	= $(addprefix dl-,load lookup object reloc deps \
94084c
-				  runtime init fini debug misc \
94084c
-				  version profile tls origin scope \
94084c
-				  execstack open close trampoline \
94084c
-				  exception sort-maps lookup-direct \
94084c
-				  call-libc-early-init write \
94084c
-				  thread_gscope_wait tls_init_tp)
94084c
+dl-routines = \
94084c
+  dl-call-libc-early-init \
94084c
+  dl-close \
94084c
+  dl-debug \
94084c
+  dl-deps \
94084c
+  dl-exception \
94084c
+  dl-execstack \
94084c
+  dl-fini \
94084c
+  dl-init \
94084c
+  dl-load \
94084c
+  dl-lookup \
94084c
+  dl-lookup-direct \
94084c
+  dl-misc \
94084c
+  dl-object \
94084c
+  dl-open \
94084c
+  dl-origin \
94084c
+  dl-profile \
94084c
+  dl-reloc \
94084c
+  dl-runtime \
94084c
+  dl-scope \
94084c
+  dl-sort-maps \
94084c
+  dl-thread_gscope_wait \
94084c
+  dl-tls \
94084c
+  dl-tls_init_tp \
94084c
+  dl-trampoline \
94084c
+  dl-version \
94084c
+  dl-write \
94084c
+  # dl-routines
94084c
+
94084c
 ifeq (yes,$(use-ldconfig))
94084c
 dl-routines += dl-cache
94084c
 endif
94084c
@@ -58,16 +99,38 @@ endif
94084c
 
94084c
 all-dl-routines = $(dl-routines) $(sysdep-dl-routines)
94084c
 # But they are absent from the shared libc, because that code is in ld.so.
94084c
-elide-routines.os = $(all-dl-routines) dl-support enbl-secure dl-origin \
94084c
-		    dl-sysdep dl-exception dl-reloc-static-pie \
94084c
-		    thread_gscope_wait rtld_static_init
94084c
+elide-routines.os = \
94084c
+  $(all-dl-routines) \
94084c
+  dl-exception \
94084c
+  dl-origin \
94084c
+  dl-reloc-static-pie \
94084c
+  dl-support \
94084c
+  dl-sysdep \
94084c
+  enbl-secure \
94084c
+  rtld_static_init \
94084c
+  thread_gscope_wait \
94084c
+  # elide-routines.os
94084c
 
94084c
 # ld.so uses those routines, plus some special stuff for being the program
94084c
 # interpreter and operating independent of libc.
94084c
-rtld-routines	= rtld $(all-dl-routines) dl-sysdep dl-environ dl-minimal \
94084c
-  dl-error-minimal dl-conflict dl-hwcaps dl-hwcaps_split dl-hwcaps-subdirs \
94084c
-  dl-usage dl-diagnostics dl-diagnostics-kernel dl-diagnostics-cpu \
94084c
-  dl-mutex
94084c
+rtld-routines = \
94084c
+  $(all-dl-routines) \
94084c
+  dl-conflict \
94084c
+  dl-diagnostics \
94084c
+  dl-diagnostics-cpu \
94084c
+  dl-diagnostics-kernel \
94084c
+  dl-environ \
94084c
+  dl-error-minimal \
94084c
+  dl-hwcaps \
94084c
+  dl-hwcaps-subdirs \
94084c
+  dl-hwcaps_split \
94084c
+  dl-minimal \
94084c
+  dl-mutex \
94084c
+  dl-sysdep \
94084c
+  dl-usage \
94084c
+  rtld \
94084c
+  # rtld-routines
94084c
+
94084c
 all-rtld-routines = $(rtld-routines) $(sysdep-rtld-routines)
94084c
 
94084c
 CFLAGS-dl-runtime.c += -fexceptions -fasynchronous-unwind-tables
94084c
@@ -102,8 +165,16 @@ ld-map		= $(common-objpfx)ld.map
94084c
 endif
94084c
 
94084c
 ifeq (yes,$(build-shared))
94084c
-extra-objs	= $(all-rtld-routines:%=%.os) sofini.os interp.os
94084c
-generated	+= librtld.os dl-allobjs.os ld.so ldd
94084c
+extra-objs = \
94084c
+  $(all-rtld-routines:%=%.os) \
94084c
+  sofini.os \
94084c
+  interp.os \
94084c
+  # extra-objs
94084c
+generated += \
94084c
+  dl-allobjs.os \
94084c
+  ld.so ldd \
94084c
+  librtld.os \
94084c
+  # generated
94084c
 install-others	= $(inst_rtlddir)/$(rtld-installed-name) $(inst_bindir)/ld.so
94084c
 install-bin-script = ldd
94084c
 endif
94084c
@@ -121,8 +192,15 @@ others-static	+= ldconfig
94084c
 others		+= ldconfig
94084c
 install-rootsbin += ldconfig
94084c
 
94084c
-ldconfig-modules := cache readlib xmalloc xstrdup chroot_canon static-stubs \
94084c
-  stringtable
94084c
+ldconfig-modules := \
94084c
+  cache \
94084c
+  chroot_canon \
94084c
+  readlib \
94084c
+  static-stubs \
94084c
+  stringtable \
94084c
+  xmalloc \
94084c
+  xstrdup \
94084c
+  # ldconfig-modules
94084c
 extra-objs	+= $(ldconfig-modules:=.o)
94084c
 others-extras   = $(ldconfig-modules)
94084c
 endif
94084c
@@ -156,23 +234,36 @@ $(inst_auditdir)/sotruss-lib.so: $(objpfx)sotruss-lib.so $(+force)
94084c
 	$(do-install-program)
94084c
 endif
94084c
 
94084c
-tests-static-normal := tst-array1-static tst-array5-static \
94084c
-	       tst-dl-iter-static \
94084c
-	       tst-tlsalign-static tst-tlsalign-extern-static \
94084c
-	       tst-linkall-static tst-env-setuid tst-env-setuid-tunables \
94084c
-	       tst-single_threaded-static tst-single_threaded-pthread-static \
94084c
-	       tst-dst-static tst-getauxval-static
94084c
-
94084c
-tests-static-internal := tst-tls1-static tst-tls2-static \
94084c
-	       tst-ptrguard1-static tst-stackguard1-static \
94084c
-	       tst-tls1-static-non-pie
94084c
+tests-static-normal := \
94084c
+  tst-array1-static \
94084c
+  tst-array5-static \
94084c
+  tst-dl-iter-static \
94084c
+  tst-dst-static \
94084c
+  tst-env-setuid \
94084c
+  tst-env-setuid-tunables \
94084c
+  tst-getauxval-static \
94084c
+  tst-linkall-static \
94084c
+  tst-single_threaded-pthread-static \
94084c
+  tst-single_threaded-static \
94084c
+  tst-tlsalign-extern-static \
94084c
+  tst-tlsalign-static \
94084c
+  # tests-static-normal
94084c
+
94084c
+tests-static-internal := \
94084c
+  tst-ptrguard1-static \
94084c
+  tst-stackguard1-static \
94084c
+  tst-tls1-static \
94084c
+  tst-tls2-static \
94084c
+  tst-tls1-static-non-pie \
94084c
+  # tests-static-internal
94084c
 
94084c
 CRT-tst-tls1-static-non-pie := $(csu-objpfx)crt1.o
94084c
 tst-tls1-static-non-pie-no-pie = yes
94084c
 
94084c
 tests-container := \
94084c
-			  tst-ldconfig-bad-aux-cache \
94084c
-			  tst-ldconfig-ld_so_conf-update
94084c
+  tst-ldconfig-bad-aux-cache \
94084c
+  tst-ldconfig-ld_so_conf-update \
94084c
+  # tests-container
94084c
 
94084c
 ifeq (no,$(build-hardcoded-path-in-tests))
94084c
 # This is an ld.so.cache test, and RPATH/RUNPATH in the executable
94084c
@@ -180,14 +271,32 @@ ifeq (no,$(build-hardcoded-path-in-tests))
94084c
 tests-container += tst-glibc-hwcaps-prepend-cache
94084c
 endif
94084c
 
94084c
-tests := tst-tls9 tst-leaks1 \
94084c
-	tst-array1 tst-array2 tst-array3 tst-array4 tst-array5 \
94084c
-	tst-auxv tst-stringtable
94084c
-tests-internal := tst-tls1 tst-tls2 $(tests-static-internal)
94084c
+tests := \
94084c
+  tst-array1 \
94084c
+  tst-array2 \
94084c
+  tst-array3 \
94084c
+  tst-array4 \
94084c
+  tst-array5 \
94084c
+  tst-auxv \
94084c
+  tst-leaks1 \
94084c
+  tst-stringtable \
94084c
+  tst-tls9 \
94084c
+  # tests
94084c
+
94084c
+tests-internal := \
94084c
+  $(tests-static-internal) \
94084c
+  tst-tls1 \
94084c
+  tst-tls2 \
94084c
+  # tests-internal
94084c
+
94084c
 tests-static := $(tests-static-normal) $(tests-static-internal)
94084c
 
94084c
 ifeq (yes,$(build-shared))
94084c
-tests-static += tst-tls9-static tst-single_threaded-static-dlopen
94084c
+tests-static += \
94084c
+  tst-single_threaded-static-dlopen \
94084c
+  tst-tls9-static \
94084c
+  # tests-static
94084c
+
94084c
 static-dlopen-environment = \
94084c
   LD_LIBRARY_PATH=$(ld-library-path):$(common-objpfx)dlfcn
94084c
 tst-tls9-static-ENV = $(static-dlopen-environment)
94084c
@@ -313,33 +422,69 @@ tests += \
94084c
   unload6 \
94084c
   unload7 \
94084c
   unload8 \
94084c
-#	 reldep9
94084c
+  # tests
94084c
 tests-cxx = \
94084c
   tst-dlopen-nodelete-reloc \
94084c
   tst-nodelete \
94084c
   tst-unique3 \
94084c
   tst-unique4 \
94084c
-# tests-cxx
94084c
+  # tests-cxx
94084c
 
94084c
 tests += $(if $(CXX),$(tests-cxx))
94084c
-tests-internal += loadtest unload unload2 circleload1 \
94084c
-	 neededtest neededtest2 neededtest3 neededtest4 \
94084c
-	 tst-tls3 tst-tls6 tst-tls7 tst-tls8 tst-dlmopen2 \
94084c
-	 tst-ptrguard1 tst-stackguard1 \
94084c
-	 tst-create_format1 tst-tls-surplus tst-dl-hwcaps_split
94084c
-tests-container += tst-pldd tst-dlopen-tlsmodid-container \
94084c
-  tst-dlopen-self-container tst-preload-pthread-libc
94084c
-test-srcs = tst-pathopt
94084c
+
94084c
+tests-internal += \
94084c
+  circleload1 \
94084c
+  loadtest \
94084c
+  neededtest \
94084c
+  neededtest2 \
94084c
+  neededtest3 \
94084c
+  neededtest4 \
94084c
+  tst-create_format1 \
94084c
+  tst-dl-hwcaps_split \
94084c
+  tst-dlmopen2 \
94084c
+  tst-ptrguard1 \
94084c
+  tst-stackguard1 \
94084c
+  tst-tls-surplus \
94084c
+  tst-tls3 \
94084c
+  tst-tls6 \
94084c
+  tst-tls7 \
94084c
+  tst-tls8 \
94084c
+  unload \
94084c
+  unload2 \
94084c
+  # tests-internal
94084c
+
94084c
+tests-container += \
94084c
+  tst-dlopen-self-container \
94084c
+  tst-dlopen-tlsmodid-container \
94084c
+  tst-pldd \
94084c
+  tst-preload-pthread-libc \
94084c
+  # tests-container
94084c
+
94084c
+test-srcs = \
94084c
+  tst-pathopt \
94084c
+  # tests-srcs
94084c
+
94084c
+ifeq (yes,$(have-fpie))
94084c
+tests-pie += tst-align3
94084c
+endif
94084c
 selinux-enabled := $(shell cat /selinux/enforce 2> /dev/null)
94084c
+
94084c
 ifneq ($(selinux-enabled),1)
94084c
-tests-execstack-yes = tst-execstack tst-execstack-needed tst-execstack-prog
94084c
+tests-execstack-yes = \
94084c
+  tst-execstack \
94084c
+  tst-execstack-needed \
94084c
+  tst-execstack-prog \
94084c
+  # tests-execstack-yes
94084c
 endif
94084c
 endif
94084c
 tests += $(tests-execstack-$(have-z-execstack))
94084c
 ifeq ($(run-built-tests),yes)
94084c
-tests-special += $(objpfx)tst-leaks1-mem.out \
94084c
-		 $(objpfx)noload-mem.out \
94084c
-		 $(objpfx)tst-ldconfig-X.out $(objpfx)tst-rtld-help.out
94084c
+tests-special += \
94084c
+  $(objpfx)noload-mem.out \
94084c
+  $(objpfx)tst-ldconfig-X.out \
94084c
+  $(objpfx)tst-leaks1-mem.out \
94084c
+  $(objpfx)tst-rtld-help.out \
94084c
+  # tests-special
94084c
 endif
94084c
 tlsmod17a-suffixes = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
94084c
 tlsmod18a-suffixes = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
94084c
@@ -356,9 +501,16 @@ tst-tls-many-dynamic-modules-dep = \
94084c
 tst-tls-many-dynamic-modules-dep-bad-suffixes = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
94084c
 tst-tls-many-dynamic-modules-dep-bad = \
94084c
   $(foreach n,$(tst-tls-many-dynamic-modules-dep-bad-suffixes),tst-tls-manydynamic$(n)mod-dep-bad)
94084c
-extra-test-objs += $(tlsmod17a-modules:=.os) $(tlsmod18a-modules:=.os) \
94084c
-		   tst-tlsalign-vars.o
94084c
-test-extras += tst-tlsmod17a tst-tlsmod18a tst-tlsalign-vars
94084c
+extra-test-objs += \
94084c
+  $(tlsmod17a-modules:=.os) \
94084c
+  $(tlsmod18a-modules:=.os) \
94084c
+  tst-tlsalign-vars.o \
94084c
+  # extra-test-objs
94084c
+test-extras += \
94084c
+  tst-tlsalign-vars \
94084c
+  tst-tlsmod17a \
94084c
+  tst-tlsmod18a \
94084c
+  # test-extras
94084c
 modules-names = \
94084c
   circlemod1 \
94084c
   circlemod1a \
94084c
@@ -610,17 +762,17 @@ modules-names-cxx = \
94084c
   tst-unique3lib \
94084c
   tst-unique3lib2 \
94084c
   tst-unique4lib \
94084c
-# modules-names-cxx
94084c
+  # modules-names-cxx
94084c
 
94084c
 modules-names += \
94084c
   $(if $(CXX),$(modules-names-cxx)) \
94084c
   $(modules-execstack-$(have-z-execstack)) \
94084c
+  $(tlsmod17a-modules) \
94084c
+  $(tlsmod18a-modules) \
94084c
   $(tst-tls-many-dynamic-modules) \
94084c
   $(tst-tls-many-dynamic-modules-dep) \
94084c
   $(tst-tls-many-dynamic-modules-dep-bad) \
94084c
-  $(tlsmod17a-modules) \
94084c
-  $(tlsmod18a-modules) \
94084c
-# modules-names
94084c
+  # modules-names
94084c
 
94084c
 # Most modules build with _ISOMAC defined, but those filtered out
94084c
 # depend on internal headers.
94084c
@@ -669,35 +821,70 @@ modules-names-nobuild := filtmod1 tst-big-note-lib tst-ro-dynamic-mod
94084c
 tests += $(tests-static)
94084c
 
94084c
 ifeq (yes,$(have-ifunc))
94084c
-tests-ifuncstatic := ifuncmain1static ifuncmain1picstatic \
94084c
-		ifuncmain2static ifuncmain2picstatic \
94084c
-		ifuncmain4static ifuncmain4picstatic \
94084c
-		ifuncmain5static ifuncmain5picstatic \
94084c
-		ifuncmain7static ifuncmain7picstatic
94084c
+tests-ifuncstatic := \
94084c
+  ifuncmain1static \
94084c
+  ifuncmain1picstatic \
94084c
+  ifuncmain2static \
94084c
+  ifuncmain2picstatic \
94084c
+  ifuncmain4static \
94084c
+  ifuncmain4picstatic \
94084c
+  ifuncmain5static \
94084c
+  ifuncmain5picstatic \
94084c
+  ifuncmain7static \
94084c
+  ifuncmain7picstatic \
94084c
+  # tests-ifuncstatic
94084c
 ifeq (yes,$(have-gcc-ifunc))
94084c
 tests-ifuncstatic += ifuncmain9static ifuncmain9picstatic
94084c
 endif
94084c
 tests-static += $(tests-ifuncstatic)
94084c
 tests-internal += $(tests-ifuncstatic)
94084c
 ifeq (yes,$(build-shared))
94084c
-tests += tst-ifunc-fault-lazy tst-ifunc-fault-bindnow
94084c
+tests += \
94084c
+  tst-ifunc-fault-bindnow \
94084c
+  tst-ifunc-fault-lazy \
94084c
+  # tests
94084c
 # Note: sysdeps/x86_64/ifuncmain8.c uses ifuncmain8.
94084c
 tests-internal += \
94084c
-	 ifuncmain1 ifuncmain1pic ifuncmain1vis ifuncmain1vispic \
94084c
-	 ifuncmain1staticpic \
94084c
-	 ifuncmain2 ifuncmain2pic ifuncmain3 ifuncmain4 \
94084c
-	 ifuncmain5 ifuncmain5pic ifuncmain5staticpic \
94084c
-	 ifuncmain7 ifuncmain7pic
94084c
+  ifuncmain1 \
94084c
+  ifuncmain1pic \
94084c
+  ifuncmain1staticpic \
94084c
+  ifuncmain1vis \
94084c
+  ifuncmain1vispic \
94084c
+  ifuncmain2 \
94084c
+  ifuncmain2pic \
94084c
+  ifuncmain3 \
94084c
+  ifuncmain4 \
94084c
+  ifuncmain5 \
94084c
+  ifuncmain5pic \
94084c
+  ifuncmain5staticpic \
94084c
+  ifuncmain7 \
94084c
+  ifuncmain7pic \
94084c
+  # tests-internal
94084c
 ifeq (yes,$(have-gcc-ifunc))
94084c
-tests-internal += ifuncmain9 ifuncmain9pic
94084c
+tests-internal += \
94084c
+  ifuncmain9 \
94084c
+  ifuncmain9pic \
94084c
+  # tests-internal
94084c
 endif
94084c
-ifunc-test-modules = ifuncdep1 ifuncdep1pic ifuncdep2 ifuncdep2pic \
94084c
-		     ifuncdep5 ifuncdep5pic
94084c
+ifunc-test-modules = \
94084c
+  ifuncdep1 \
94084c
+  ifuncdep1pic \
94084c
+  ifuncdep2 \
94084c
+  ifuncdep2pic \
94084c
+  ifuncdep5 \
94084c
+  ifuncdep5pic \
94084c
+  # ifunc-test-modules
94084c
 extra-test-objs += $(ifunc-test-modules:=.o)
94084c
 test-internal-extras += $(ifunc-test-modules)
94084c
 ifeq (yes,$(have-fpie))
94084c
-ifunc-pie-tests = ifuncmain1pie ifuncmain1vispie ifuncmain1staticpie \
94084c
-		  ifuncmain5pie ifuncmain6pie ifuncmain7pie
94084c
+ifunc-pie-tests = \
94084c
+  ifuncmain1pie \
94084c
+  ifuncmain1staticpie \
94084c
+  ifuncmain1vispie \
94084c
+  ifuncmain5pie \
94084c
+  ifuncmain6pie \
94084c
+  ifuncmain7pie \
94084c
+  # ifunc-pie-tests
94084c
 ifeq (yes,$(have-gcc-ifunc))
94084c
 ifunc-pie-tests += ifuncmain9pie
94084c
 endif
94084c
@@ -707,30 +894,50 @@ endif
94084c
 tests-internal += $(ifunc-pie-tests)
94084c
 tests-pie += $(ifunc-pie-tests)
94084c
 endif
94084c
-modules-names += ifuncmod1 ifuncmod3 ifuncmod5 ifuncmod6
94084c
+modules-names += \
94084c
+  ifuncmod1 \
94084c
+  ifuncmod3 \
94084c
+  ifuncmod5 \
94084c
+  ifuncmod6 \
94084c
+  # module-names
94084c
 endif
94084c
 endif
94084c
 
94084c
 ifeq (yes,$(build-shared))
94084c
 ifeq ($(run-built-tests),yes)
94084c
-tests-special += $(objpfx)tst-pathopt.out $(objpfx)tst-rtld-load-self.out \
94084c
-		 $(objpfx)tst-rtld-preload.out $(objpfx)argv0test.out \
94084c
-		 $(objpfx)tst-rtld-help.out
94084c
+tests-special += \
94084c
+  $(objpfx)argv0test.out \
94084c
+  $(objpfx)tst-pathopt.out \
94084c
+  $(objpfx)tst-rtld-help.out \
94084c
+  $(objpfx)tst-rtld-load-self.out \
94084c
+  $(objpfx)tst-rtld-preload.out \
94084c
+  # tests-special
94084c
 endif
94084c
-tests-special += $(objpfx)check-textrel.out $(objpfx)check-execstack.out \
94084c
-		 $(objpfx)check-wx-segment.out \
94084c
-		 $(objpfx)check-localplt.out $(objpfx)check-initfini.out
94084c
+tests-special += \
94084c
+  $(objpfx)check-execstack.out \
94084c
+  $(objpfx)check-initfini.out \
94084c
+  $(objpfx)check-localplt.out \
94084c
+  $(objpfx)check-textrel.out \
94084c
+  $(objpfx)check-wx-segment.out \
94084c
+  # tests-special
94084c
 endif
94084c
 
94084c
 ifeq ($(run-built-tests),yes)
94084c
-tests-special += $(objpfx)order-cmp.out $(objpfx)tst-array1-cmp.out \
94084c
-		 $(objpfx)tst-array1-static-cmp.out \
94084c
-		 $(objpfx)tst-array2-cmp.out $(objpfx)tst-array3-cmp.out \
94084c
-		 $(objpfx)tst-array4-cmp.out $(objpfx)tst-array5-cmp.out \
94084c
-		 $(objpfx)tst-array5-static-cmp.out $(objpfx)order2-cmp.out \
94084c
-		 $(objpfx)tst-initorder-cmp.out \
94084c
-		 $(objpfx)tst-initorder2-cmp.out $(objpfx)tst-unused-dep.out \
94084c
-		 $(objpfx)tst-unused-dep-cmp.out
94084c
+tests-special += \
94084c
+  $(objpfx)order-cmp.out \
94084c
+  $(objpfx)order2-cmp.out \
94084c
+  $(objpfx)tst-array1-cmp.out \
94084c
+  $(objpfx)tst-array1-static-cmp.out \
94084c
+  $(objpfx)tst-array2-cmp.out \
94084c
+  $(objpfx)tst-array3-cmp.out \
94084c
+  $(objpfx)tst-array4-cmp.out \
94084c
+  $(objpfx)tst-array5-cmp.out \
94084c
+  $(objpfx)tst-array5-static-cmp.out \
94084c
+  $(objpfx)tst-initorder-cmp.out \
94084c
+  $(objpfx)tst-initorder2-cmp.out \
94084c
+  $(objpfx)tst-unused-dep-cmp.out \
94084c
+  $(objpfx)tst-unused-dep.out \
94084c
+  # tests-special
94084c
 endif
94084c
 
94084c
 ifndef avoid-generated
94084c
@@ -835,6 +1042,7 @@ rtld-stubbed-symbols = \
94084c
   free \
94084c
   malloc \
94084c
   realloc \
94084c
+  # rtld-stubbed-symbols
94084c
 
94084c
 ifeq ($(have-ssp),yes)
94084c
 # rtld is not built with the stack protector, so these references will