]> sourceware.org Git - glibc.git/commitdiff
* elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u cvs/fedora-glibc-20070816T2121
authorJakub Jelinek <jakub@redhat.com>
Thu, 16 Aug 2007 21:20:11 +0000 (21:20 +0000)
committerJakub Jelinek <jakub@redhat.com>
Thu, 16 Aug 2007 21:20:11 +0000 (21:20 +0000)
to check for undefined symbols.
* elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
to check for undefined symbols.

ChangeLog
elf/Makefile

index a3a3d62f3747465967ba4535608ba7d523b80d06..d7a6c4030a457e551f2e5740f07dd90e9fecd5f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
 
+       * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
+       to check for undefined symbols.
+
        * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
        If the syscall fails, set errno to the actual returned error number
        rather than EINVAL.
index d1b3c5a1f5ee182c4566c991cf98c51b7311d8b3..2943acc66b5b3f4e359380e44390f811516c1fff 100644 (file)
@@ -307,7 +307,8 @@ $(objpfx)ld.so: $(objpfx)librtld.os $(ld-map)
                  $(filter-out $(map-file),$^) $(load-map-file)         \
                  -Wl,-soname=$(rtld-installed-name) -T $@.lds
        rm -f $@.lds
-       nm -u $@ | cmp -s /dev/null -
+       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.
 CFLAGS-interp.c = -D'RUNTIME_LINKER="$(slibdir)/$(rtld-installed-name)"' \
This page took 0.601692 seconds and 5 git commands to generate.