diff options
author | Arnaud Lacombe <lacombar@gmail.com> | 2010-08-05 17:59:50 +0200 |
---|---|---|
committer | Arnaud Lacombe <lacombar@gmail.com> | 2010-08-05 17:59:50 +0200 |
commit | 218438ee9235a7d6936374043b9f147511180654 (patch) | |
tree | 35f5cd5bff65862888081b48bd97f66322787178 /patches | |
parent | 455a94736dbf004b3f693d7cf6c359536cdc906a (diff) | |
download | crosstool-ng-218438ee9235a7d6936374043b9f147511180654.tar.gz crosstool-ng-218438ee9235a7d6936374043b9f147511180654.tar.bz2 crosstool-ng-218438ee9235a7d6936374043b9f147511180654.zip |
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>
Diffstat (limited to 'patches')
-rw-r--r-- | patches/glibc/2.3.6/310-_begin-missing.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/patches/glibc/2.3.6/310-_begin-missing.patch b/patches/glibc/2.3.6/310-_begin-missing.patch new file mode 100644 index 00000000..187bcb11 --- /dev/null +++ b/patches/glibc/2.3.6/310-_begin-missing.patch @@ -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)) \ |