PATCH: Fix the linker script support
H . J . Lu
hjl@lucon.org
Thu Jan 17 12:53:00 GMT 2002
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) \
More information about the Libc-alpha
mailing list