use $(READELF) rather than readelf

We setup $(READELF) and use it everywhere, so fix the two places
that were using readelf directly.

Reported-by: Denis M. <god@politeia.in>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2012-11-22 16:34:04 -05:00
parent 4e6e34e6ca
commit 800938a126
4 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2012-11-23 Mike Frysinger <vapier@gentoo.org>
* elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
2012-11-23 Andreas Schwab <schwab@linux-m68k.org>
* sysdeps/powerpc/fpu/libm-test-ulps: Update.

View file

@ -336,7 +336,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
readelf -s $@ \
$(READELF) -s $@ \
| $(AWK) '($$7 ~ /^UND(|EF)$$/ && $$1 != "0:" && $$4 != "REGISTER") { print; p=1 } END { exit p != 0 }'
# interp.c exists just to get this string into the libraries.

View file

@ -1,3 +1,7 @@
2012-11-23 Mike Frysinger <vapier@gentoo.org>
* Makefile ($(objpfx)db-symbols.out): Change readelf to $(READELF).
2012-10-08 Jonathan Nieder <jrnieder@gmail.com>
[BZ #14661]

View file

@ -60,6 +60,6 @@ $(objpfx)libthread_db.so: $(common-objpfx)libc.so \
tests: $(objpfx)db-symbols.out
$(objpfx)db-symbols.out: $(objpfx)db-symbols.v.i \
$(common-objpfx)nptl/libpthread.so
LC_ALL=C readelf -W -s $(filter %.so,$^) | $(AWK) -f $< > $@
LC_ALL=C $(READELF) -W -s $(filter %.so,$^) | $(AWK) -f $< > $@
$(objpfx)db-symbols.v.i: db-symbols.awk