diff options
author | Hans-Christian Noren Egtvedt <hegtvedt@cisco.com> | 2020-08-05 20:29:09 (GMT) |
---|---|---|
committer | Hans-Christian Noren Egtvedt <hegtvedt@cisco.com> | 2020-08-27 09:35:59 (GMT) |
commit | 793d65899f448ee9b0cf121a170c82f0bc15b854 (patch) | |
tree | ba432b0ae7bf1715bfc41f924c9a1d7b644ef4f2 /packages/binutils/2.35/0002-check_ldrunpath_length.patch | |
parent | 45a01960fc8da60a86091612ebde1808925dc689 (diff) |
Add support for binutils 2.35
Forward ported patches from binutils 2.34, refreshed to match current
sources.
Patch 0008-poison-system-directories.patch did not apply clean and had
minor adjustments to fit new binutils 2.35 release.
Signed-off-by: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com>
Diffstat (limited to 'packages/binutils/2.35/0002-check_ldrunpath_length.patch')
-rw-r--r-- | packages/binutils/2.35/0002-check_ldrunpath_length.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/binutils/2.35/0002-check_ldrunpath_length.patch b/packages/binutils/2.35/0002-check_ldrunpath_length.patch new file mode 100644 index 0000000..0edd2fe --- /dev/null +++ b/packages/binutils/2.35/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 +@@ -1247,6 +1247,8 @@ ldelf_after_open (int use_libpath, int n + && 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)) +@@ -1605,6 +1607,8 @@ ldelf_before_allocation (char *audit, ch + 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) |