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.
6 diff --git a/elf/Makefile b/elf/Makefile
7 index 8079fe9..e44ff1d 100644
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 | \
19 sed -e '/^=========/,/^=========/!d;/^=========/d' \
20 - -e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
21 + -e 's/\. = .* + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
23 $(LINK.o) -nostdlib -nostartfiles -shared -o $@ \
24 $(LDFLAGS-rtld) -Wl,-z,defs $(z-now-$(bind-now)) \