This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)		\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]