diff options
author | Alexey Brodkin <abrodkin@synopsys.com> | 2021-08-13 17:44:42 (GMT) |
---|---|---|
committer | Alexey Brodkin <abrodkin@synopsys.com> | 2021-08-16 17:22:50 (GMT) |
commit | 77525a81d3a48782e3a959fba32bd2447791ba0b (patch) | |
tree | a2b3b156201f472e41ea56207205f6257d37d03b /packages/binutils/2.37/0002-check_ldrunpath_length.patch | |
parent | f322679392930d55fb8a50e7223f39d4bbaeaf3e (diff) |
binutils: add version 2.37
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Diffstat (limited to 'packages/binutils/2.37/0002-check_ldrunpath_length.patch')
-rw-r--r-- | packages/binutils/2.37/0002-check_ldrunpath_length.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/binutils/2.37/0002-check_ldrunpath_length.patch b/packages/binutils/2.37/0002-check_ldrunpath_length.patch new file mode 100644 index 0000000..13518db --- /dev/null +++ b/packages/binutils/2.37/0002-check_ldrunpath_length.patch @@ -0,0 +1,24 @@ +--- + ld/ldelf.c | 4 ++++ + 1 file changed, 4 insertions(+) + +--- a/ld/ldelf.c ++++ b/ld/ldelf.c +@@ -1250,6 +1250,8 @@ + && command_line.rpath == NULL) + { + path = (const char *) getenv ("LD_RUN_PATH"); ++ if (path && *path == '\0') ++ path = NULL; + if (path + && ldelf_search_needed (path, &n, force, + is_linux, elfsize)) +@@ -1610,6 +1612,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) |