Contents of /trunk/glibc/patches/glibc-2.9.0-linker-scripts.patch
Parent Directory | Revision Log
Revision 755 -
(show annotations)
(download)
Mon Apr 20 17:22:45 2009 UTC (15 years, 5 months ago) by niro
File size: 864 byte(s)
Mon Apr 20 17:22:45 2009 UTC (15 years, 5 months ago) by niro
File size: 864 byte(s)
added patch to fix link issues with newer binutils (>=2.19.51.0.2)
1 | fix linker failure with newer binutils |
2 | |
3 | http://bugs.gentoo.org/258072 |
4 | |
5 | commit 9ec3d5f8d876b07747fd49827e2cef8286b6f4cd |
6 | Author: Ulrich Drepper <drepper@redhat.com> |
7 | Date: Sat Jan 31 00:20:55 2009 +0000 |
8 | |
9 | (ld.so): Adjust the sed script to insert _begin in to newer linker scripts. |
10 | |
11 | diff --git a/elf/Makefile b/elf/Makefile |
12 | index 8079fe9..e44ff1d 100644 |
13 | --- a/elf/Makefile |
14 | +++ b/elf/Makefile |
15 | @@ -304,7 +304,7 @@ $(objpfx)ld.so: $(objpfx)librtld.os $(ld-map) |
16 | $(LDFLAGS-rtld) -Wl,-z,defs -Wl,--verbose 2>&1 | \ |
17 | LC_ALL=C \ |
18 | sed -e '/^=========/,/^=========/!d;/^=========/d' \ |
19 | - -e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \ |
20 | + -e 's/\. = .* + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \ |
21 | > $@.lds |
22 | $(LINK.o) -nostdlib -nostartfiles -shared -o $@ \ |
23 | $(LDFLAGS-rtld) -Wl,-z,defs $(z-now-$(bind-now)) \ |