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