22 lines
831 B
Diff
22 lines
831 B
Diff
commit 7c8a67320e26b8c11108bf0a3410d3aef9cf3486
|
|
Author: Ulrich Drepper <drepper@redhat.com>
|
|
Date: Sat Jan 31 00:21:15 2009 +0000
|
|
|
|
* elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
|
|
|
|
newer linker scripts.
|
|
|
|
diff --git a/elf/Makefile b/elf/Makefile
|
|
index 8079fe9f96..e44ff1d382 100644
|
|
--- a/elf/Makefile
|
|
+++ b/elf/Makefile
|
|
@@ -304,7 +304,7 @@ $(objpfx)ld.so: $(objpfx)librtld.os $(ld-map)
|
|
$(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)) \
|