aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2011-06-10 23:37:35 -0700
committerRoland McGrath <roland@hack.frob.com>2011-06-10 23:37:35 -0700
commitdecd4e50b6faa6b148fe7ef99536ba9f95183a00 (patch)
tree2b8da73e37d4f05953b528de4aa3d0c1ed8a44a1 /elf
parent5615eaf26469f20c2d8c3be5770e12564a1edfff (diff)
downloadglibc-decd4e50b6faa6b148fe7ef99536ba9f95183a00.tar
glibc-decd4e50b6faa6b148fe7ef99536ba9f95183a00.tar.gz
glibc-decd4e50b6faa6b148fe7ef99536ba9f95183a00.tar.bz2
glibc-decd4e50b6faa6b148fe7ef99536ba9f95183a00.zip
Better detect total failure of linker script generation.
Diffstat (limited to 'elf')
-rw-r--r--elf/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 844c9ca56f..5c057387ed 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -413,6 +413,7 @@ $(objpfx)ld.so: $(objpfx)librtld.os $(ld-map)
sed -e '/^=========/,/^=========/!d;/^=========/d' \
-e 's/\. = .* + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
> $@.lds
+ test -s $@.lds
$(LINK.o) -nostdlib -nostartfiles -shared -o $@ \
$(LDFLAGS-rtld) -Wl,-z,defs $(z-now-$(bind-now)) \
$(filter-out $(map-file),$^) $(load-map-file) \