summaryrefslogtreecommitdiffstats
path: root/package/binutils/arc-2016.09-release/0500-add-sysroot-fix-from-bug-3049.patch
diff options
context:
space:
mode:
authorZakharov Vlad <Vladislav.Zakharov@synopsys.com>2016-12-19 15:11:57 +0300
committerPeter Korsgaard <peter@korsgaard.com>2016-12-19 13:40:57 +0100
commite4491b47b0940eab3e1404d2b5482aded7b1ce8c (patch)
tree82aaf6dda39203b3fd602dd2286ca817f61c29b3 /package/binutils/arc-2016.09-release/0500-add-sysroot-fix-from-bug-3049.patch
parentdbfca7963049cd2140bff00c6841360d74c20fea (diff)
downloadbuildroot-e4491b47b0940eab3e1404d2b5482aded7b1ce8c.tar.gz
buildroot-e4491b47b0940eab3e1404d2b5482aded7b1ce8c.zip
toolchain: Bump ARC tools to arc-2016.09 release
As described at: 4520524ba055706236db9f00dd79f1b2e2e87fde this commit continues a series of updates of ARC tools. This time we're updating tools to arc-2016.09 release version. Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/binutils/arc-2016.09-release/0500-add-sysroot-fix-from-bug-3049.patch')
-rw-r--r--package/binutils/arc-2016.09-release/0500-add-sysroot-fix-from-bug-3049.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/package/binutils/arc-2016.09-release/0500-add-sysroot-fix-from-bug-3049.patch b/package/binutils/arc-2016.09-release/0500-add-sysroot-fix-from-bug-3049.patch
new file mode 100644
index 0000000000..f67a43efdf
--- /dev/null
+++ b/package/binutils/arc-2016.09-release/0500-add-sysroot-fix-from-bug-3049.patch
@@ -0,0 +1,52 @@
+From 30628870e583375f8927c04398c7219c6e9f703c Mon Sep 17 00:00:00 2001
+From: Romain Naour <romain.naour@gmail.com>
+Date: Fri, 25 Dec 2015 11:42:48 +0100
+Subject: [PATCH] add sysroot fix from bug #3049
+
+Always try to prepend the sysroot prefix to absolute filenames first.
+
+http://bugs.gentoo.org/275666
+http://sourceware.org/bugzilla/show_bug.cgi?id=10340
+
+Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
+[Romain: rebase on top of 2.26]
+Signed-off-by: Romain Naour <romain.naour@gmail.com>
+---
+ ld/ldfile.c | 11 +++++++++--
+ 1 file changed, 9 insertions(+), 2 deletions(-)
+
+diff --git a/ld/ldfile.c b/ld/ldfile.c
+index 96f9ecc..1439309 100644
+--- a/ld/ldfile.c
++++ b/ld/ldfile.c
+@@ -335,18 +335,25 @@ ldfile_open_file_search (const char *arch,
+ directory first. */
+ if (! entry->flags.maybe_archive)
+ {
+- if (entry->flags.sysrooted && IS_ABSOLUTE_PATH (entry->filename))
++ /* For absolute pathnames, try to always open the file in the
++ sysroot first. If this fails, try to open the file at the
++ given location. */
++ entry->flags.sysrooted = is_sysrooted_pathname (entry->filename);
++ if (!entry->flags.sysrooted && IS_ABSOLUTE_PATH (entry->filename)
++ && ld_sysroot)
+ {
+ char *name = concat (ld_sysroot, entry->filename,
+ (const char *) NULL);
+ if (ldfile_try_open_bfd (name, entry))
+ {
+ entry->filename = name;
++ entry->flags.sysrooted = TRUE;
+ return TRUE;
+ }
+ free (name);
+ }
+- else if (ldfile_try_open_bfd (entry->filename, entry))
++
++ if (ldfile_try_open_bfd (entry->filename, entry))
+ return TRUE;
+
+ if (IS_ABSOLUTE_PATH (entry->filename))
+--
+2.4.3
+
OpenPOWER on IntegriCloud