This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
PATCH: Fix the linker script support
- From: "H . J . Lu" <hjl at lucon dot org>
- To: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Thu, 17 Jan 2002 12:53:45 -0800
- Subject: PATCH: Fix the linker script support
Not all linker scripts have ". = 0 + SIZEOF_HEADERS". Here is a patch.
H.J.
----
2002-01-17 H.J. Lu <hjl@gnu.org>
* elf/Makefile ($(objpfx)ld.so): Support different linker
scripts.
--- elf/Makefile.linker Thu Jan 17 10:11:44 2002
+++ elf/Makefile Thu Jan 17 12:49:03 2002
@@ -163,6 +163,7 @@ $(objpfx)ld.so: $(objpfx)librtld.os $(ld
$(LDFLAGS-rtld) -Wl,--verbose 2>&1 | \
sed -e '/^=========/,/^=========/!d;/^=========/d' \
-e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
+ -e 's/\. = 0x0[0]* + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
> $@.lds; \
$(LINK.o) -nostdlib -nostartfiles -shared -o $@ $(LDFLAGS-rtld) \
$(filter-out $(map-file),$^) $(load-map-file) \