patches/eglibc/2_9/110-binutils-elf-begin.patch
author Andy Gibbs <andyg1001@hotmail.co.uk>
Mon Nov 01 01:12:39 2010 +0100 (2010-11-01)
changeset 2170 4f8aa694f9c0
parent 1327 5fd1f22a6062
permissions -rw-r--r--
contrib: fix gcc test suite on system without echo -e

Fix the use of quotes in contrib/gcc-test-suite/Makefile to solve the
problem where board.exp is incorrectly generated on some build systems
where 'echo -e' is not handled correctly.

Signed-off-by: Andy Gibbs <andyg1001@hotmail.co.uk>
[Yann E. MORIN: fix space damage, pretty-up the stuff]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@1327
     1
diff -ru eglibc-2_9_orig/elf/Makefile eglibc-2_9/elf/Makefile
yann@1327
     2
--- eglibc-2_9_orig/elf/Makefile	2009-01-26 07:31:40.000000000 -0800
yann@1327
     3
+++ eglibc-2_9/elf/Makefile	2009-05-06 16:52:28.000000000 -0700
yann@1327
     4
@@ -305,7 +305,7 @@
yann@1327
     5
 		  $(LDFLAGS-rtld) -Wl,-z,defs -Wl,--verbose 2>&1 |	\
yann@1327
     6
 		  LC_ALL=C \
yann@1327
     7
 		  sed -e '/^=========/,/^=========/!d;/^=========/d'	\
yann@1327
     8
-		      -e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
yann@1327
     9
+		      -e 's/\. = .* + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
yann@1327
    10
 		      -e 's/\. = SEGMENT_START("text-segment", 0) + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
yann@1327
    11
 		  > $@.lds
yann@1327
    12
 	$(LINK.o) -nostdlib -nostartfiles -shared -o $@			\