matrix-gui-e: bump PR for init file fixes
[openembedded.git] / recipes / glibc / glibc-2.9 / glibc-2.9-use-_begin.patch
blob8d36a0524e200e35b22f0afd4d4b8db77014a806
1 From 7c8a67320e26b8c11108bf0a3410d3aef9cf3486 Mon Sep 17 00:00:00 2001
2 From: Ulrich Drepper <drepper@redhat.com>
3 Date: Sat, 31 Jan 2009 00:21:15 +0000
4 Subject: [PATCH] * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to newer linker scripts.
5 ---
6 diff --git a/elf/Makefile b/elf/Makefile
7 index 8079fe9..e44ff1d 100644
8 --- a/elf/Makefile
9 +++ b/elf/Makefile
10 @@ -1,4 +1,4 @@
11 -# Copyright (C) 1995-2007, 2008 Free Software Foundation, Inc.
12 +# Copyright (C) 1995-2007, 2008, 2009 Free Software Foundation, Inc.
13 # This file is part of the GNU C Library.
15 # The GNU C Library is free software; you can redistribute it and/or
16 @@ -304,7 +304,7 @@ $(objpfx)ld.so: $(objpfx)librtld.os $(ld-map)
17 $(LDFLAGS-rtld) -Wl,-z,defs -Wl,--verbose 2>&1 | \
18 LC_ALL=C \
19 sed -e '/^=========/,/^=========/!d;/^=========/d' \
20 - -e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
21 + -e 's/\. = .* + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
22 > $@.lds
23 $(LINK.o) -nostdlib -nostartfiles -shared -o $@ \
24 $(LDFLAGS-rtld) -Wl,-z,defs $(z-now-$(bind-now)) \
25 --
26 1.6.3.2