summaryrefslogtreecommitdiff
path: root/system/binutils/arm-pie.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-03 16:58:41 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-03 16:58:41 +0000
commitfeb64b7c56db18814c78f130fd2ea567a411060b (patch)
treeb2500761fbaa67e7005dd6972e3a4544d39398d4 /system/binutils/arm-pie.patch
parent308f526a78246cd99bcd50ada27c3c5b63a0cf29 (diff)
downloadpackages-feb64b7c56db18814c78f130fd2ea567a411060b.tar.gz
packages-feb64b7c56db18814c78f130fd2ea567a411060b.tar.bz2
packages-feb64b7c56db18814c78f130fd2ea567a411060b.tar.xz
packages-feb64b7c56db18814c78f130fd2ea567a411060b.zip
system/binutils: fix upstream 25056 (ARM PIE bug)
Diffstat (limited to 'system/binutils/arm-pie.patch')
-rw-r--r--system/binutils/arm-pie.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/system/binutils/arm-pie.patch b/system/binutils/arm-pie.patch
new file mode 100644
index 000000000..f42477a04
--- /dev/null
+++ b/system/binutils/arm-pie.patch
@@ -0,0 +1,24 @@
+Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=25056
+Author: Rich Felker <dalias@libc.org>
+Upstream-Status: reported
+
+--- binutils-2.32/bfd/elf32-arm.c.orig 2019-10-02 07:47:36.153918869 -0400
++++ binutils-2.32/bfd/elf32-arm.c 2019-10-02 08:37:09.108263016 -0400
+@@ -11624,7 +11624,7 @@
+ {
+ /* If we don't know the module number, create a relocation
+ for it. */
+- if (bfd_link_pic (info))
++ if (bfd_link_dll (info))
+ {
+ Elf_Internal_Rela outrel;
+
+@@ -11728,7 +11728,7 @@
+ now, and emit any relocations. If both an IE GOT and a
+ GD GOT are necessary, we emit the GD first. */
+
+- if ((bfd_link_pic (info) || indx != 0)
++ if ((bfd_link_dll (info) || indx != 0)
+ && (h == NULL
+ || (ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
+ && !resolved_to_zero)