• 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/arc-2016.03/0301-check-ldrunpath-length.patch
Alexey BrodkinAlexey Brodkin committed 09439560b9f18 May 2016
Raw file
Source viewDiff to previous
 
1
From ebe1cba46df52d7bf86def3d681271fd05fb453b Mon Sep 17 00:00:00 2001
2
From: Romain Naour <romain.naour@gmail.com>
3
Date: Fri, 25 Dec 2015 11:41:47 +0100
4
Subject: [PATCH] check-ldrunpath-length
5
​
6
[Romain: rebase on top of 2.26]
7
Signed-off-by: Romain Naour <romain.naour@gmail.com>
8
---
9
 ld/emultempl/elf32.em | 4 ++++
10
 1 file changed, 4 insertions(+)
11
​
12
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
13
index 0405d4f..efd3300 100644
14
--- a/ld/emultempl/elf32.em
15
+++ b/ld/emultempl/elf32.em
16
@@ -1242,6 +1242,8 @@ fragment <<EOF
17
          && command_line.rpath == NULL)
18
        {
19
          lib_path = (const char *) getenv ("LD_RUN_PATH");
20
+         if ((lib_path) && (strlen (lib_path) == 0))
21
+           lib_path = NULL;
22
          if (gld${EMULATION_NAME}_search_needed (lib_path, &n,
23
                              force))
24
        break;
25
@@ -1523,6 +1525,8 @@ gld${EMULATION_NAME}_before_allocation (void)
26
   rpath = command_line.rpath;
27
   if (rpath == NULL)
28
     rpath = (const char *) getenv ("LD_RUN_PATH");
29
+  if ((rpath) && (strlen (rpath) == 0))
30
+   rpath = NULL;
31
 
32
   for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next)
33
     if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
34
-- 
35
2.4.3
36
​
  • 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.