# HG changeset patch # User Arnaud Lacombe # Date 1281023990 -7200 # Node ID 581a2778ca6f47bf17e8640809691788f204e2ea # Parent 477c7955e6b0c0dca3c4c90a2bc96c06989790d1 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 : Commit log: * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to newer linker scripts. Signed-off-by: Arnaud Lacombe diff -r 477c7955e6b0 -r 581a2778ca6f patches/glibc/2.3.6/310-_begin-missing.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/glibc/2.3.6/310-_begin-missing.patch Thu Aug 05 17:59:50 2010 +0200 @@ -0,0 +1,12 @@ +diff -ru glibc-2.3.6/elf/Makefile glibc-2.3.6.patched/elf/Makefile +--- glibc-2.3.6/elf/Makefile 2010-05-02 18:58:38.000000000 -0400 ++++ glibc-2.3.6.patched/elf/Makefile 2010-05-02 18:54:54.000000000 -0400 +@@ -292,7 +292,7 @@ + $(LDFLAGS-rtld) -Wl,-z,defs -Wl,--verbose 2>&1 | \ + LC_ALL=C \ + sed -e '/^=========/,/^=========/!d;/^=========/d' \ +- -e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \ ++ -e 's/\. = .* + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \ + > $@.lds + $(LINK.o) -nostdlib -nostartfiles -shared -o $@ \ + $(LDFLAGS-rtld) -Wl,-z,defs $(z-now-$(bind-now)) \