From 04f5a636b6ac79677967d901a956f336a7ccfee3 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 12 Feb 2015 13:38:47 -0800 Subject: Support after-link variable to run a final step on binaries. --- elf/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'elf') diff --git a/elf/Makefile b/elf/Makefile index f2d1781916..b43b48ed95 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -349,6 +349,7 @@ $(objpfx)ld.so: $(objpfx)librtld.os $(ld-map) $(filter-out $(map-file),$^) $(load-map-file) \ -Wl,-soname=$(rtld-installed-name) \ -Wl,-defsym=_begin=0 + $(call after-link,$@.new) $(READELF) -s $@.new \ | $(AWK) '($$7 ~ /^UND(|EF)$$/ && $$1 != "0:" && $$4 != "REGISTER") { print; p=1 } END { exit p != 0 }' mv -f $@.new $@ -- cgit v1.2.3