commit: 903bc47afd903a6e0a91f51e1ece7f2b281ba95d
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 24 06:38:14 2014 +0000
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Mon Nov 24 06:38:14 2014 +0000
URL:
http://sources.gentoo.org/gitweb/?p=dev/heroxbd.git;a=commit;h=903bc47a
bump binutils to 2.24 for RAP
---
sys-devel/binutils/Manifest | 4 +
sys-devel/binutils/binutils-2.24-r3.ebuild | 22 +++
.../files/binutils-2.24-runtime-sysroot.patch | 202 +++++++++++++++++++++
3 files changed, 228 insertions(+)
diff --git a/sys-devel/binutils/Manifest b/sys-devel/binutils/Manifest
index 8bde4f8..6bffe48 100644
--- a/sys-devel/binutils/Manifest
+++ b/sys-devel/binutils/Manifest
@@ -24,6 +24,7 @@ AUX binutils-2.23-mbstate_t.patch 5739 SHA256
ec17ce4d4e47d861f2300dcbdf4f4143c3
AUX binutils-2.23-no-ld-script-sysroot.patch 376 SHA256
0439bfa86a1f4dfd18b56b0104e78a3c670584424ebb6205c673fc6f5015b7e0 SHA512
4624f2ceebba47c2656430d1923c72a6a20cff2c57b58ecb001fd4e67e3a34c7054f1f0f12be7ef21f4789298800106219f4a5dd19cafadf9858ba0d4bee5f43
WHIRLPOOL
40de5dc12ca11855188fe16b85d892085e64cbaedcb04a266085502f2cea9de3d94d2c61036548ed3248f7d48b986ac5748aed7bf750f0f9f78c53af515d3329
AUX binutils-2.23-no-rpath-sysroot.patch 1008 SHA256
9c35d21c8a5ac0edf8812ea126b6cc7f8ed630a73f4c91db3cc27652b638d8b6 SHA512
d5b311f18f3f6b0e21fbb3da355cd99e98e9ed10d23b9b684a2f0de263966c959b39d22866f93cefb1d81814fd1a7ade14302338c57a12614fd9d64c5b390710
WHIRLPOOL
10b832f32a0f9acc9924bd0d5d81ee99cc13549309691025e8d90a874bf99dfde0efe9a0a357c9c924edf2cd34a2f3371c43a79ea8375d7377507fa5c961d34c
AUX binutils-2.23-runtime-sysroot.patch 7447 SHA256
8fcda46e89f7870e1feb6264e767f960f213c32e079ff557183a63e51466271d SHA512
23f5865ce55923c41fa92cc83611887037b773a08cb57b6b94bfba090bffdf4ed7fe0e6d8a85f882ef936afd0e1bad0d07b11a568671ddf047ec6113fc1a1bfa
WHIRLPOOL
954b228b14950eaac28f322c5d53638c4e1a5a362f0cccae3d355beb354dc916188d9b33fd003802ebfd00336f5da00c83e524255637fe164c2ef216166e2535
+AUX binutils-2.24-runtime-sysroot.patch 7184 SHA256
d26ca9377ba579bae77ae3a40eb3839cd52c7935f3e8d3ca97cd679b9b5252e8 SHA512
e6ce483898c1277e22ee846b2d5e521fe2e6e9e382a619d6205ae3c37c697eef05ff1fda9fc0a8568c7bb961fd73ba7ae4952d859b60753ccc6aa0e636f12213
WHIRLPOOL
d521615eef5f267786b1b44c13f09f528bad426af0812b25a45238dcd3ae994a8b3e03eabac118373296de57faa1bd54295463d99892562baae84dfb3adcc661
DIST binutils-2.19.1-patches-1.2.tar.bz2 10544 SHA256
128c949a46e6c516b5ebb2dbb7be553db7d8f1ee174896d1b63adbd0950030b3 SHA512
6aa2c923748d5b80f8e495176f19d8df8defcaa53915835b57a1da7c7a78668cb63d3380dd027593c8909a35de61adf2ea3d0ace64eeb537171271a6c6cbf33e
WHIRLPOOL
04b26a82b2021626d4402c3275776bd9f91139082ae799350f9605bfa7e72fd3d72aac7636fbeb0e1fcdb93b6e903b396320b439502462baad06a61b0a3960e6
DIST binutils-2.19.1.tar.bz2 16306586 SHA256
2dbd2c554b70d915c5b32fcfd401d03afcbf202529059c7a80af3993885ad1c2 SHA512
22af3cf65ad2f76469440fb992e50a10895fcec1265b98781138db0fc40bf06565af86dc73ca0b97bee764ec797439a89b5dbca2a5da74f375af55383887c436
WHIRLPOOL
340c12072a60c8f7b4b930a857e87d9723bdd2b0c61bef5a06810e11406f3e7955632a93a59c68b60220a882ff99273af3a9995872aa7a11604dd04182ebc6a2
DIST binutils-2.20.1-patches-1.2.tar.bz2 15747 SHA256
30738e18f492bd653421d4bc4d52b841680fe4b17a69524e081d9befadef6d3b SHA512
23c1026db7748f9f958d32f6bfd2b362dae3bdee33612fb6a0cc4277fcb360a55c5618dc748a7119b12794a1bc22ea70af92c04f5283c0041bc681e5db4266b4
WHIRLPOOL
fc73133cbd0aaf9447296425dd22907d3b984a9d8c0631be5155cd887ca44932b5d3651d538783ac10e520c6b43a077fb045ea720d95855f04b4ba47cb9076a2
@@ -42,6 +43,8 @@ DIST binutils-2.23.51.0.6.tar.xz 13907008 SHA256
0a2468ef7f99bf8162ebe5317dc3366
DIST binutils-2.23.51.0.8-patches-1.0.tar.xz 10712 SHA256
1a0bd1500c87089e6609e97697912bd00fd44ac35fd9711c9c7b4267ede34cc0 SHA512
47f22c94fc387409c04d826db7592e1bddb991a990af108e21126ba5dc117740d1e87fa2178f51cc5c73c1b3f0fef55eda36308a722d1d9673a5ba639115995e
WHIRLPOOL
2efba9385d71c07055be90c9aedfcd0180d47197a08563df1ba6abd5802852624ec4e6837c86e8f809ce485f90d2644038b35c0d6a366e4712038eebc117e3a9
DIST binutils-2.23.51.0.8.tar.xz 13922836 SHA256
e345d7b7a14eb903074311a986d2a93af849b83799e3a5aa13308615a01eaf1e SHA512
8124974114398cc1fc88eb5681bfea8369371a2636da5d0ed7993cba43462edea9cc3ddfed30bf7bf7d13c2981cfece39da30a019093a5f9d7935b5b57373aad
WHIRLPOOL
adfe57a30fd72544a8e7ece1cf6a40f19ff08d237964c40591a3f50eb81acbb687b53d94ab3f491807cb599a691575ca77c3171fc67b9effc959d04490ca26e3
DIST binutils-2.23.tar.bz2 21402046 SHA256
5f975e744a0fd4a4ab0b28dd6d0921685b3279207823226df92429389dbee452 SHA512
079939e1000e358e830c4563543f2a00ae127ef6e18306eda55a775254509951114d24647cf2c3fef49ac4409c8e9895085efb85cc71566a5b4fe0106b8375bd
WHIRLPOOL
3713090b5f0d2b6fec14664ce862e0c7c7eeb0bf37bde19e4d07a48bafb61d388929e6ae993a6954aa6432fea9484b4646bc2938df308bcbf6142a0d5dfc1f69
+DIST binutils-2.24-patches-1.4.tar.xz 17488 SHA256
f018f140a52cddb1e4619b5caf4b4a37a27dfb29e8bf29ea5161ab13b33eed13 SHA512
dfd7c38cd978b7d6627579c338bf67641c799ce39936e3475dca3ecf5bade417e3f090253a2326582c64d5743a24f9078794f44e8fd41b6af728f1f375c91d3b
WHIRLPOOL
d6b414d5e5607fd8b2d0f52b508763110448cfbdcc08be6d7c1412043797bde8ed5fbd9a5ea4c141b7394b2cae0ac2ef24827f67813231129a507f49cbc40245
+DIST binutils-2.24.tar.bz2 22716802 SHA256
e5e8c5be9664e7f7f96e0d09919110ab5ad597794f5b1809871177a0f0f14137 SHA512
5ec95ad47d49b12c4558a8db0ca2109d3ee1955e3776057f3330c4506f8f4d1cf5e505fbf8a16b98403a0fcdeaaf986fe0a22be6456247dbdace63ce1f776b12
WHIRLPOOL
619634dfdc73b8f6e9933b4642f5f9faf147c388a6d39283cd7639d83f3d7a601981cf49a787c43c17a942c563f24dc8dcc682138b5d3102a5650e1b9d15bd50
EBUILD binutils-2.19.1-r01.1.ebuild 1200 SHA256
0e1bed1a43c9b011be567e34084eec0f4c43e5c85400cfbf581adf00015fa25a SHA512
f54397f31d201679df53784a520f7445ca617755e157d9bec7cde1ed08753f45a116a0de1fe07ee1c062944a72f6bf651d28154079432c6f9b1593f1531ac581
WHIRLPOOL
09c8a5ab939382c43ce2dbb6dc462a6ca473f40fc5407beda5a2239caa8db1081cf05b4648ebfa24e82edd25daff548b6d5342e9563e74f4859479c2a5d0b79e
EBUILD binutils-2.20.1-r1.ebuild 845 SHA256
24d8b288c7150859eedabf4057ce0fa04e0e99e74846765ad8a6aaed99b1f426 SHA512
ec132ab4e572516be09782402ccbf3c186d58df06aaa815c5e95b8f1ea5dcefefd161965746357dfdd7a8f440be5f6dc59464c43d8f1245582ec7fcfaf3128fc
WHIRLPOOL
1a32947193ad2fbab320a9b8f87a10279c8ea3c0c9aa59fbb05023832c7bdfe5e46dbd3eee01ce1b9b89027eeb42acc5b05cd39fea1e8eae6f87b8c1dd3b60aa
EBUILD binutils-2.21.1-r1.ebuild 846 SHA256
6fdeaebd7d0a0e82eab0c3a50a2c10efe1346e15da823b1e610e886fde763031 SHA512
1da92588b09122337af6c979b3aa22ce0172d481fe4c53aacc35aa36280cffea3deaa4f209b542b58fa1d47c722169281682a8d01350aad6764865ca2185b9d6
WHIRLPOOL
eedd63b0a18269cb51e34ecadeff2b471bec7a8ce74e9359325762ea9df946f557fdab7867b69faee837082a439c66d01ef5795c5d7b970801e7051c6edbc965
@@ -51,5 +54,6 @@ EBUILD binutils-2.23.51.0.5.ebuild 1926 SHA256
5acbc0b45224ef8cadfa29ab59dbf656d
EBUILD binutils-2.23.51.0.6.ebuild 1926 SHA256
dc592c519f9b3eae5587db82029c61f2377eff12680362d4c611895a21e259bd SHA512
2a3c053484c4edee75aeec65310088046ca53e978a23705a432db57f08ee2f064af7d71548f16dbb38c053586881b1d2d39497a892a31d7f7ab8e49b548108c0
WHIRLPOOL
f1ee641ed30639264904d3fc0db5bca3ec9efb5c890eabff79fd400c92558ed6b5a80898bc6b349d110ac7290f39dcd23c8a7fc02533ebfe79896cb9b2a91636
EBUILD binutils-2.23.51.0.8.ebuild 1926 SHA256
108ad27215ebb8602193ead950a3962c724f1b24e5e14e05277b96a189d63876 SHA512
7a1b7840aa428ee2e52446c8082c16db07f61b7434ba9562d48e1b9e68e3bf449c0a54c31d250ece8fd371f09bb694162a6ed5bdf9f6c8539710c5295601ad20
WHIRLPOOL
ed01c0234f6da5f75d700184ded119106d66462c5327b48b9d7ed6d0dd74aec70f866dbc043aaf6bc5bc2d9f98cf313eb11a7df96ae28f7f1ec6dccb9ba3b645
EBUILD binutils-2.23.ebuild 2145 SHA256
e5778981837d3b6b987ca26c9bf9d0f1d71b408b3ca444e7762c46c38e46885e SHA512
9e45acb3abcfd4ed126a24aacc500522f6c2ea7915c59f993e66db8b66fef96062fb97127fb22a044b424486e4a75228d16507c4eb599105c532b9d47eef7f96
WHIRLPOOL
df268e60b3e2a9642faabaa16e92adda81064122a3d009087e7d260ecdf92403a189fee1ac4f749c91b542bb0313432e2cbd50f28c211532d20ec416e5e04633
+EBUILD binutils-2.24-r3.ebuild 624 SHA256
8624df7b2761adb3f2761bce950d472924fa1b3f759e15c61ac1f3fa181ba822 SHA512
30ee7f40c362384e69e699b933fa687ccf5539e373378cc47377500b21d38f691a47d3d84daeb6a7da62b4e988794e41c058c1a70f0144e358db83eb5225962c
WHIRLPOOL
98a4fcd22edd78f208314699b3325e6ae1b8cb536abe76cde4656cdbca3848e74eb2675d559840873b73b7048c22f599cc158c4628e593c2802603206e958efa
MISC ChangeLog 79130 SHA256
eec9a2c9c8eaed424daddcbe78677d8512ebe8072ab5828d6c329cbaf4c74557 SHA512
c0b47a76155c56dcc25863cc8174a379470e1d2620602b34dd452c1b56b9b818af545bed30cabc8e8f4d68f019aa5c87bd10081784bb5c4c9cb6e2adaf1a9f44
WHIRLPOOL
fbf0a664cd49d9faa29006768342890ff4906580aedbb4ebfeacba4dd32754badab6c941700f078a8bc020456c985dc255eeb26a9144d7f72a30bdd7b64398a9
MISC metadata.xml 386 SHA256
58db91727c014c22db0fde315c25cb22c59dc5c15af5d30ee4c01a248500b67c SHA512
f5c6d289f0018d0eeb4ebb2fbbfda7c08aa70a98771f1c0795838137a0e3b848fc9e2b2355cbc7367a72dc00dd5e0a946c0eb5349a86eb3796af43918961733a
WHIRLPOOL
92b3371b27092dbaed212837f544b059d5b0b2c547ef8c965836ac1dab1cdee198bb6ab63ab495eccdd1be1c1f5ce9e93624722a9ffd433a7615be202134336a
diff --git a/sys-devel/binutils/binutils-2.24-r3.ebuild
b/sys-devel/binutils/binutils-2.24-r3.ebuild
new file mode 100644
index 0000000..22a0d61
--- /dev/null
+++ b/sys-devel/binutils/binutils-2.24-r3.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
/var/cvsroot/gentoo-x86/sys-devel/binutils/binutils-2.24-r3.ebuild,v 1.8
2014/11/04 09:26:08 ago Exp $
+
+EAPI=4
+
+PATCHVER="1.4"
+ELF2FLT_VER=""
+inherit toolchain-binutils
+
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc
x86 -amd64-fbsd -sparc-fbsd ~x86-fbsd"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-runtime-sysroot.patch
+ toolchain-binutils_src_prepare
+}
+
+src_configure() {
+ is_cross || EXTRA_ECONF+=" $(use_enable !rap runtime-sysroot)"
+ toolchain-binutils_src_configure
+}
+
diff --git a/sys-devel/binutils/files/binutils-2.24-runtime-sysroot.patch
b/sys-devel/binutils/files/binutils-2.24-runtime-sysroot.patch
new file mode 100644
index 0000000..fde8660
--- /dev/null
+++ b/sys-devel/binutils/files/binutils-2.24-runtime-sysroot.patch
@@ -0,0 +1,202 @@
+The feature sysroot originally for cross compiling has two parts. The
+first is to prepend lib path, done in configure phase, which we call
+configure-time sysroot. The second is to prepend rpath in libraries
+and path inside ld scripts when ld is called, which we call runtime
+sysroot.
+
+In the case of cross compilation, both are needed. While in the case
+of native sysroot, which runs userland in a directory prefix natively,
+only configure-time sysroot is needed.
+
+Here we add an additional option of --enable-runtime-sysroot to fine
+control such features.
+
+2013-08-25 Benda Xu <[email protected]>
+
+ * configure.in: add enable-runtime-sysroot to control the
+ macro ENABLE_RUNTIME_SYSROOT
+ * emultempl/elf32.em: only prepend rpath with sysroot when
+ ENABLE_RUNTIME_SYSROOT is defined
+ * ldfile.c: only prepend lib path with sysroot when
+ ENABLE_RUNTIME_SYSROOT is defined
+ * ld.texinfo: document this new behavior for ld script
+
+Index: binutils-2.24/ld/configure.in
+===================================================================
+--- binutils-2.24.orig/ld/configure.in
++++ binutils-2.24/ld/configure.in
+@@ -87,6 +87,18 @@ AC_SUBST(use_sysroot)
+ AC_SUBST(TARGET_SYSTEM_ROOT)
+ AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
+
++AC_ARG_ENABLE(runtime-sysroot,
++[AS_HELP_STRING([--enable-runtime-sysroot],
++ [prepend sysroot to libpath in ld script and rpath,
++ only used in addition to --with-sysroot (default is yes)])],
++[case "${enableval}" in
++ no) ;;
++ *) AC_DEFINE(ENABLE_RUNTIME_SYSROOT, [], \
++ [prepend sysroot to libpath in ld script and rpath]) ;;
++esac],
++AC_DEFINE(ENABLE_RUNTIME_SYSROOT, [], \
++ [prepend sysroot to libpath in ld script and rpath]))
++
+ dnl Use --enable-gold to decide if this linker should be the default.
+ dnl "install_as_default" is set to false if gold is the default linker.
+ dnl "installed_linker" is the installed BFD linker name.
+Index: binutils-2.24/ld/emultempl/elf32.em
+===================================================================
+--- binutils-2.24.orig/ld/emultempl/elf32.em
++++ binutils-2.24/ld/emultempl/elf32.em
+@@ -529,7 +529,10 @@ static char *
+ gld${EMULATION_NAME}_add_sysroot (const char *path)
+ {
+ int len, colons, i;
+- char *ret, *p;
++ char *ret;
++
++#ifdef ENABLE_RUNTIME_SYSROOT
++ char *p;
+
+ len = strlen (path);
+ colons = 0;
+@@ -557,6 +560,11 @@ gld${EMULATION_NAME}_add_sysroot (const
+ *p++ = path[i++];
+
+ *p = 0;
++#else
++ ret = xmalloc (strlen (path) + 1);
++ strcpy (ret, path);
++#endif
++
+ return ret;
+ }
+
+Index: binutils-2.24/ld/ldfile.c
+===================================================================
+--- binutils-2.24.orig/ld/ldfile.c
++++ binutils-2.24/ld/ldfile.c
+@@ -463,7 +463,11 @@ try_open (const char *name, bfd_boolean
+ result = fopen (name, "r");
+
+ if (result != NULL)
++#ifdef ENABLE_RUNTIME_SYSROOT
+ *sysrooted = is_sysrooted_pathname (name);
++#else
++ *sysrooted = 0;
++#endif
+
+ if (verbose)
+ {
+Index: binutils-2.24/ld/ld.texinfo
+===================================================================
+--- binutils-2.24.orig/ld/ld.texinfo
++++ binutils-2.24/ld/ld.texinfo
+@@ -3092,13 +3092,14 @@ then you can put @samp{INPUT (subr.o)} i
+ In fact, if you like, you can list all of your input files in the linker
+ script, and then invoke the linker with nothing but a @samp{-T} option.
+
+-In case a @dfn{sysroot prefix} is configured, and the filename starts
+-with the @samp{/} character, and the script being processed was
+-located inside the @dfn{sysroot prefix}, the filename will be looked
+-for in the @dfn{sysroot prefix}. Otherwise, the linker will try to
+-open the file in the current directory. If it is not found, the
+-linker will search through the archive library search path. See the
+-description of @samp{-L} in @ref{Options,,Command Line Options}.
++In case a @dfn{sysroot prefix} is configured without explict
++--disable-runtime-sysroot, and the filename starts with the @samp{/}
++character, and the script being processed was located inside the
++@dfn{sysroot prefix}, the filename will be looked for in the
++@dfn{sysroot prefix}. Otherwise, the linker will try to open the file
++in the current directory. If it is not found, the linker will search
++through the archive library search path. See the description of
++@samp{-L} in @ref{Options,,Command Line Options}.
+
+ If you use @samp{INPUT (-l@var{file})}, @command{ld} will transform the
+ name to @code{lib@var{file}.a}, as with the command line argument
+Index: binutils-2.24/ld/configure
+===================================================================
+--- binutils-2.24.orig/ld/configure
++++ binutils-2.24/ld/configure
+@@ -774,6 +774,7 @@ with_lib_path
+ enable_targets
+ enable_64_bit_bfd
+ with_sysroot
++enable_runtime_sysroot
+ enable_gold
+ enable_got
+ enable_werror
+@@ -1429,6 +1430,10 @@ Optional Features:
+ (and sometimes confusing) to the casual installer
+ --enable-targets alternative target configurations
+ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
++ --enable-runtime-sysroot
++ prepend sysroot to libpath in ld script and rpath,
++ only used in addition to --with-sysroot (default is
++ yes)
+ --enable-gold[=ARG] build gold [ARG={default,yes,no}]
+ --enable-got=<type> GOT handling scheme (target, single, negative,
+ multigot)
+@@ -4318,6 +4323,21 @@ fi
+
+
+
++# Check whether --enable-runtime-sysroot was given.
++if test "${enable_runtime_sysroot+set}" = set; then :
++ enableval=$enable_runtime_sysroot; case "${enableval}" in
++ no) ;;
++ *)
++$as_echo "#define ENABLE_RUNTIME_SYSROOT /**/" >>confdefs.h
++ ;;
++esac
++else
++
++$as_echo "#define ENABLE_RUNTIME_SYSROOT /**/" >>confdefs.h
++
++fi
++
++
+ # Check whether --enable-gold was given.
+ if test "${enable_gold+set}" = set; then :
+ enableval=$enable_gold; case "${enableval}" in
+@@ -12192,7 +12212,7 @@ else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<_LT_EOF
+-#line 12195 "configure"
++#line 12215 "configure"
+ #include "confdefs.h"
+
+ #if HAVE_DLFCN_H
+@@ -12298,7 +12318,7 @@ else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<_LT_EOF
+-#line 12301 "configure"
++#line 12321 "configure"
+ #include "confdefs.h"
+
+ #if HAVE_DLFCN_H
+Index: binutils-2.24/ld/config.in
+===================================================================
+--- binutils-2.24.orig/ld/config.in
++++ binutils-2.24/ld/config.in
+@@ -2,7 +2,7 @@
+
+ /* Check that config.h is #included before system headers
+ (this works only for glibc, but that should be enough). */
+-#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) &&
!defined(__CONFIG_H__)
++#if defined(__GLIBC__) && !defined(__CONFIG_H__)
+ # error config.h must be #included before system headers
+ #endif
+ #define __CONFIG_H__ 1
+@@ -11,6 +11,9 @@
+ language is requested. */
+ #undef ENABLE_NLS
+
++/* prepend sysroot to libpath in ld script and rpath */
++#undef ENABLE_RUNTIME_SYSROOT
++
+ /* Additional extension a shared object might have. */
+ #undef EXTRA_SHLIB_EXTENSION
+