python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / binutils / 2.26.1 / 0301-check-ldrunpath-length.patch
blob3b4c204c7f1665dfd9fd0fe8c60f7cb75a3f74fb
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
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(+)
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)
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;
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