[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patches] [PATCH] Fix build for ARM Linux (and possibly others) with binutils head
- Subject: Re: [patches] [PATCH] Fix build for ARM Linux (and possibly others) with binutils head
- From: Julian Brown <julian@xxxxxxxxxxxxxxxx>
- Date: Fri, 23 Jan 2009 11:46:09 +0000
On Fri, 23 Jan 2009 10:56:43 +0000
Julian Brown <julian@xxxxxxxxxxxxxxxx> wrote:
> The attached [...]
...or not attached, as the case might have been. Here it is.
> ChangeLog
>
> * elf/Makefile ($(objpfx)ld.so): Add sed pattern to recognize text
> segment defined with SEGMENT_START.
Index: elf/Makefile
===================================================================
--- elf/Makefile (revision 7776)
+++ elf/Makefile (working copy)
@@ -306,6 +306,7 @@ $(objpfx)ld.so: $(objpfx)librtld.os $(ld
LC_ALL=C \
sed -e '/^=========/,/^=========/!d;/^=========/d' \
-e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
+ -e 's/\. = SEGMENT_START("text-segment", 0) + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
> $@.lds
$(LINK.o) -nostdlib -nostartfiles -shared -o $@ \
$(LDFLAGS-rtld) -Wl,-z,defs $(z-now-$(bind-now)) \