diff options
author | Chris Packham <judge.packham@gmail.com> | 2021-08-18 09:08:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-18 09:08:33 (GMT) |
commit | 358945ff2219e37d280532522d2c62309614d162 (patch) | |
tree | a2b3b156201f472e41ea56207205f6257d37d03b /packages/binutils/2.37/0002-check_ldrunpath_length.patch | |
parent | f322679392930d55fb8a50e7223f39d4bbaeaf3e (diff) | |
parent | 77525a81d3a48782e3a959fba32bd2447791ba0b (diff) |
Merge pull request #1578 from foss-for-synopsys-dwc-arc-processors/abrodkin-binutils-2.37
binutils: add version 2.37
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) |