summaryrefslogtreecommitdiff
path: root/patches/binutils/2.20/180-only-use-new-ld-dtags.patch.disabled
diff options
context:
space:
mode:
Diffstat (limited to 'patches/binutils/2.20/180-only-use-new-ld-dtags.patch.disabled')
-rw-r--r--patches/binutils/2.20/180-only-use-new-ld-dtags.patch.disabled25
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/binutils/2.20/180-only-use-new-ld-dtags.patch.disabled b/patches/binutils/2.20/180-only-use-new-ld-dtags.patch.disabled
new file mode 100644
index 0000000..8989579
--- /dev/null
+++ b/patches/binutils/2.20/180-only-use-new-ld-dtags.patch.disabled
@@ -0,0 +1,25 @@
+Don't generate RPATH if we're going to be generating RUNPATH.
+
+need to ponder what ramifications this has before enabling it
+
+--- binutils/bfd/elflink.c
++++ binutils/bfd/elflink.c
+@@ -5382,11 +5382,15 @@
+
+ indx = _bfd_elf_strtab_add (elf_hash_table (info)->dynstr, rpath,
+ TRUE);
+- if (indx == (bfd_size_type) -1
+- || !_bfd_elf_add_dynamic_entry (info, DT_RPATH, indx))
++ if (indx == (bfd_size_type) -1)
+ return FALSE;
+
+- if (info->new_dtags)
++ if (!info->new_dtags)
++ {
++ if (!_bfd_elf_add_dynamic_entry (info, DT_RPATH, indx))
++ return FALSE;
++ }
++ else
+ {
+ _bfd_elf_strtab_addref (elf_hash_table (info)->dynstr, indx);
+ if (!_bfd_elf_add_dynamic_entry (info, DT_RUNPATH, indx))