]> sourceware.org Git - glibc.git/commitdiff
Use -defsym=_begin=0 instead of linker script munging.
authorRoland McGrath <roland@hack.frob.com>
Sat, 11 Jun 2011 09:04:14 +0000 (02:04 -0700)
committerRoland McGrath <roland@hack.frob.com>
Sat, 2 Jul 2011 22:11:43 +0000 (15:11 -0700)
ChangeLog
elf/Makefile

index 210bded935e5d3b7923a6dc0cd81a0ab031216a8..440545a573046c820fef5ddf3d5e54523b0b216e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-02  Roland McGrath  <roland@hack.frob.com>
+
+       * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
+       linker script munging.
+
 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
 
        * crypt/sha512.h (struct sha512_ctx): Add union to access total also
index fbd7d88c06954d0e1d3d261a7d74718985919f87..d4180999a80a33eddeb3af078e3f7d9dcdb302b4 100644 (file)
@@ -406,19 +406,11 @@ generated += librtld.map librtld.mk rtld-libc.a librtld.os.map
 z-now-yes = -Wl,-z,now
 
 $(objpfx)ld.so: $(objpfx)librtld.os $(ld-map)
-       @rm -f $@.lds
-       $(LINK.o) -nostdlib -nostartfiles -shared $(z-now-$(bind-now))  \
-                 $(LDFLAGS-rtld) -Wl,-z,defs -Wl,--verbose 2>&1 |      \
-                 LC_ALL=C \
-                 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)         \
-                 -Wl,-soname=$(rtld-installed-name) -T $@.lds
-       rm -f $@.lds
+                 -Wl,-soname=$(rtld-installed-name)                    \
+                 -Wl,-defsym=_begin=0
        readelf -s $@ \
          | $(AWK) '($$7 ~ /^UND(|EF)$$/ && $$1 != "0:" && $$4 != "REGISTER") { print; p=1 } END { exit p != 0 }'
 
This page took 0.047123 seconds and 5 git commands to generate.