diff options
author | Roland McGrath <roland@hack.frob.com> | 2015-02-12 13:38:47 -0800 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2015-02-12 13:38:47 -0800 |
commit | 04f5a636b6ac79677967d901a956f336a7ccfee3 (patch) | |
tree | d15e1815c2338b2af7dd504597240368568b7850 /elf | |
parent | 87a629c5d7aa559e5c144196bce123469b17af4c (diff) | |
download | glibc-04f5a636b6ac79677967d901a956f336a7ccfee3.zip glibc-04f5a636b6ac79677967d901a956f336a7ccfee3.tar.gz glibc-04f5a636b6ac79677967d901a956f336a7ccfee3.tar.bz2 |
Support after-link variable to run a final step on binaries.
Diffstat (limited to 'elf')
-rw-r--r-- | elf/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile index f2d1781..b43b48e 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 $@ |