diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2013-09-11 13:18:23 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2013-09-11 13:18:23 +0000 |
commit | 348c3af966da52db55c20b37222e6f95de2627a4 (patch) | |
tree | 0be4852e8e7e6dc308e3527aaa7464ad798229c9 /toolchain/binutils/patches/linaro/300-012_check_ldrunpath_length.patch | |
parent | 2dad4ed3579cfc52fc819da7b6d9823385153b76 (diff) | |
download | upstream-348c3af966da52db55c20b37222e6f95de2627a4.tar.gz upstream-348c3af966da52db55c20b37222e6f95de2627a4.tar.bz2 upstream-348c3af966da52db55c20b37222e6f95de2627a4.zip |
add support for Linaro binutils 2.23.2-2013.06
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 37944
Diffstat (limited to 'toolchain/binutils/patches/linaro/300-012_check_ldrunpath_length.patch')
-rw-r--r-- | toolchain/binutils/patches/linaro/300-012_check_ldrunpath_length.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/toolchain/binutils/patches/linaro/300-012_check_ldrunpath_length.patch b/toolchain/binutils/patches/linaro/300-012_check_ldrunpath_length.patch new file mode 100644 index 0000000000..61324d1119 --- /dev/null +++ b/toolchain/binutils/patches/linaro/300-012_check_ldrunpath_length.patch @@ -0,0 +1,20 @@ +--- a/ld/emultempl/elf32.em ++++ b/ld/emultempl/elf32.em +@@ -1278,6 +1278,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; +@@ -1505,6 +1507,8 @@ gld${EMULATION_NAME}_before_allocation ( + rpath = command_line.rpath; + if (rpath == NULL) + rpath = (const char *) getenv ("LD_RUN_PATH"); ++ if ((rpath) && (strlen (rpath) == 0)) ++ rpath = NULL; + + for (abfd = link_info.input_bfds; abfd; abfd = abfd->link_next) + if (bfd_get_flavour (abfd) == bfd_target_elf_flavour) |