diff options
author | Alexey Neyman <stilor@att.net> | 2019-02-14 07:54:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-14 07:54:06 (GMT) |
commit | fb744d81588395a97cee951a151a56501a500e42 (patch) | |
tree | 895628cd0c17103416c97fb4cb4b66ed469428dd /packages/binutils/2.32/0002-check_ldrunpath_length.patch | |
parent | b135af0c4a8a141d537a7e60a989594d354abece (diff) | |
parent | 91d01a0e4750be6ab2b71fb953a48dff88dc469b (diff) |
Merge pull request #1140 from stilor/upgradecrosstool-ng-1.24.0-rc1
Package updates
Diffstat (limited to 'packages/binutils/2.32/0002-check_ldrunpath_length.patch')
-rw-r--r-- | packages/binutils/2.32/0002-check_ldrunpath_length.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/binutils/2.32/0002-check_ldrunpath_length.patch b/packages/binutils/2.32/0002-check_ldrunpath_length.patch new file mode 100644 index 0000000..a2e1983 --- /dev/null +++ b/packages/binutils/2.32/0002-check_ldrunpath_length.patch @@ -0,0 +1,24 @@ +--- + ld/emultempl/elf32.em | 4 ++++ + 1 file changed, 4 insertions(+) + +--- a/ld/emultempl/elf32.em ++++ b/ld/emultempl/elf32.em +@@ -1471,6 +1471,8 @@ + && command_line.rpath == NULL) + { + path = (const char *) getenv ("LD_RUN_PATH"); ++ if ((path) && (strlen (path) == 0)) ++ path = NULL; + if (path + && gld${EMULATION_NAME}_search_needed (path, &n, force)) + break; +@@ -1746,6 +1748,8 @@ + rpath = command_line.rpath; + if (rpath == NULL) + rpath = (const char *) getenv ("LD_RUN_PATH"); ++ if ((rpath) && (*rpath == '\0')) ++ rpath = NULL; + + for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next) + if (bfd_get_flavour (abfd) == bfd_target_elf_flavour) |