libc/glibc: let glibc 3.3.6 link correctly
authorArnaud Lacombe <lacombar@gmail.com>
Thu Aug 05 17:59:50 2010 +0200 (2010-08-05)
changeset 2068581a2778ca6f
parent 2067 477c7955e6b0
child 2069 366bd2b22675
libc/glibc: let glibc 3.3.6 link correctly

From http://sourceware.org/git/?p=glibc.git;a=commit;f=elf/Makefile;h=7c8a67320e26b8c11108bf0a3410d3aef9cf3486

Author: Ulrich Drepper <drepper@redhat.com>:
Commit log:
* elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
newer linker scripts.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
patches/glibc/2.3.6/310-_begin-missing.patch
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/2.3.6/310-_begin-missing.patch	Thu Aug 05 17:59:50 2010 +0200
     1.3 @@ -0,0 +1,12 @@
     1.4 +diff -ru glibc-2.3.6/elf/Makefile glibc-2.3.6.patched/elf/Makefile
     1.5 +--- glibc-2.3.6/elf/Makefile	2010-05-02 18:58:38.000000000 -0400
     1.6 ++++ glibc-2.3.6.patched/elf/Makefile	2010-05-02 18:54:54.000000000 -0400
     1.7 +@@ -292,7 +292,7 @@
     1.8 + 		  $(LDFLAGS-rtld) -Wl,-z,defs -Wl,--verbose 2>&1 |	\
     1.9 + 		  LC_ALL=C \
    1.10 + 		  sed -e '/^=========/,/^=========/!d;/^=========/d'	\
    1.11 +-		      -e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
    1.12 ++		      -e 's/\. = .* + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
    1.13 + 		  > $@.lds
    1.14 + 	$(LINK.o) -nostdlib -nostartfiles -shared -o $@			\
    1.15 + 		  $(LDFLAGS-rtld) -Wl,-z,defs $(z-now-$(bind-now))	\