From 0b377e70f0961ef1b9b2ca2de629b689027a76e2 Mon Sep 17 00:00:00 2001 From: Aldas Nabazas Date: Wed, 5 Aug 2009 12:45:13 +0300 Subject: [PATCH] glibc: make it compile with binutils >= 2.19.51.0.2 --- base/glibc/binutils-linker.patch | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 base/glibc/binutils-linker.patch diff --git a/base/glibc/binutils-linker.patch b/base/glibc/binutils-linker.patch new file mode 100644 index 000000000..e58c03862 --- /dev/null +++ b/base/glibc/binutils-linker.patch @@ -0,0 +1,36 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../glibc/binutils-linker.patch +# Copyright (C) 2009 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +#(.text+0x1559): undefined reference to `_begin' + +--- ./elf/Makefile.orig 2008/10/31 20:35:11 1.330 ++++ ./elf/Makefile 2009/01/31 00:20:55 1.331 +@@ -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 @@ + $(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)) \ +