* elf/Makefile (ld.so): Adjust the sed script to insert _begin in to

newer linker scripts.
This commit is contained in:
Ulrich Drepper 2009-01-31 00:21:15 +00:00
parent 431497800d
commit 7c8a67320e
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2009-01-29 Andrew Stubbs <ams@codesourcery.com>
* elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
newer linker scripts.
2009-01-30 Ulrich Drepper <drepper@redhat.com>
[BZ #7040]

View File

@ -1,4 +1,4 @@
# Copyright (C) 1995-2007, 2008 Free Software Foundation, Inc.
# Copyright (C) 1995-2007, 2008, 2009 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
@ -304,7 +304,7 @@ $(objpfx)ld.so: $(objpfx)librtld.os $(ld-map)
$(LDFLAGS-rtld) -Wl,-z,defs -Wl,--verbose 2>&1 | \
LC_ALL=C \
sed -e '/^=========/,/^=========/!d;/^=========/d' \
-e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
-e 's/\. = .* + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \
> $@.lds
$(LINK.o) -nostdlib -nostartfiles -shared -o $@ \
$(LDFLAGS-rtld) -Wl,-z,defs $(z-now-$(bind-now)) \