diff options
author | Jasmin Jessich <jasmin@anw.at> | 2015-08-23 22:12:43 (GMT) |
---|---|---|
committer | Jasmin Jessich <jasmin@anw.at> | 2015-09-01 19:11:34 (GMT) |
commit | ba4cef66514fff84afe8a04b866eba0172193ae4 (patch) | |
tree | bef20e715f1193fa5572fe1f01ee7ba83e67487a /patches/binutils/2.25.1/300-012_check_ldrunpath_length.patch | |
parent | 094b5be8fd9b8a99636b802430eb4ae2edc37710 (diff) |
Adding patches for binutils version 2.25.1 as copy of 2.25.
Support binutils 2.25.1 in configuration.
Note: The patches do apply, but I didn't check the resulting tools.
Signed-off-by: Jasmin Jessich <jasmin@anw.at>
Diffstat (limited to 'patches/binutils/2.25.1/300-012_check_ldrunpath_length.patch')
-rw-r--r-- | patches/binutils/2.25.1/300-012_check_ldrunpath_length.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/patches/binutils/2.25.1/300-012_check_ldrunpath_length.patch b/patches/binutils/2.25.1/300-012_check_ldrunpath_length.patch new file mode 100644 index 0000000..f1f31af --- /dev/null +++ b/patches/binutils/2.25.1/300-012_check_ldrunpath_length.patch @@ -0,0 +1,22 @@ +diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em +index 137446f..bb8391a 100644 +--- a/ld/emultempl/elf32.em ++++ b/ld/emultempl/elf32.em +@@ -1195,6 +1195,8 @@ fragment <<EOF + && command_line.rpath == NULL) + { + lib_path = (const char *) getenv ("LD_RUN_PATH"); ++ if ((lib_path) && (strlen (lib_path) == 0)) ++ lib_path = NULL; + if (gld${EMULATION_NAME}_search_needed (lib_path, &n, + force)) + break; +@@ -1458,6 +1460,8 @@ gld${EMULATION_NAME}_before_allocation (void) + 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) |