• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/binutils/2.24/500-sysroot.patch
Gustavo ZacariasGustavo Zacarias committed f16bf2159e502 Dec 2013
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
2
​
3
Always try to prepend the sysroot prefix to absolute filenames first.
4
​
5
http://bugs.gentoo.org/275666
6
http://sourceware.org/bugzilla/show_bug.cgi?id=10340
7
​
8
--- a/ld/ldfile.c
9
+++ b/ld/ldfile.c
10
@@ -308,18 +308,25 @@
11
      directory first.  */
12
   if (! entry->flags.maybe_archive)
13
     {
14
-      if (entry->flags.sysrooted && IS_ABSOLUTE_PATH (entry->filename))
15
+      /* For absolute pathnames, try to always open the file in the
16
+    sysroot first. If this fails, try to open the file at the
17
+    given location.  */
18
+      entry->flags.sysrooted = is_sysrooted_pathname (entry->filename);
19
+      if (!entry->flags.sysrooted && IS_ABSOLUTE_PATH (entry->filename)
20
+     && ld_sysroot)
21
    {
22
      char *name = concat (ld_sysroot, entry->filename,
23
                   (const char *) NULL);
24
      if (ldfile_try_open_bfd (name, entry))
25
        {
26
          entry->filename = name;
27
+         entry->flags.sysrooted = TRUE;
28
          return TRUE;
29
        }
30
      free (name);
31
    }
32
-      else if (ldfile_try_open_bfd (entry->filename, entry))
33
+
34
+      if (ldfile_try_open_bfd (entry->filename, entry))
35
    return TRUE;
36
 
37
       if (IS_ABSOLUTE_PATH (entry->filename))
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.