1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-10-27 12:15:39 +03:00

* elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u

to check for undefined symbols.
	* elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
	to check for undefined symbols.
This commit is contained in:
Jakub Jelinek
2007-08-16 21:20:11 +00:00
parent 3e8d1eabc9
commit cb84d1e403
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
2007-08-16 Jakub Jelinek <jakub@redhat.com> 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): * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
If the syscall fails, set errno to the actual returned error number If the syscall fails, set errno to the actual returned error number
rather than EINVAL. rather than EINVAL.

View File

@@ -307,7 +307,8 @@ $(objpfx)ld.so: $(objpfx)librtld.os $(ld-map)
$(filter-out $(map-file),$^) $(load-map-file) \ $(filter-out $(map-file),$^) $(load-map-file) \
-Wl,-soname=$(rtld-installed-name) -T $@.lds -Wl,-soname=$(rtld-installed-name) -T $@.lds
rm -f $@.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. # interp.c exists just to get this string into the libraries.
CFLAGS-interp.c = -D'RUNTIME_LINKER="$(slibdir)/$(rtld-installed-name)"' \ CFLAGS-interp.c = -D'RUNTIME_LINKER="$(slibdir)/$(rtld-installed-name)"' \