aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-09-19 06:33:07 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-09-19 06:33:07 +0000
commite566454513529e463f4cbe48d4fb6b37a5b12856 (patch)
tree9ccec2d3dbc1dcb2fa8f63362260d9f47ba6cbcf
parent79ffd1032af0468c7a2b9002f29eb086e617375a (diff)
downloadupstream-e566454513529e463f4cbe48d4fb6b37a5b12856.tar.gz
upstream-e566454513529e463f4cbe48d4fb6b37a5b12856.tar.bz2
upstream-e566454513529e463f4cbe48d4fb6b37a5b12856.zip
binutils: backport ld patch to fix ARM specific issues with --gc-sections
SVN-Revision: 33461
-rw-r--r--toolchain/binutils/patches/2.22/400-fix_arm_gc_sections.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/toolchain/binutils/patches/2.22/400-fix_arm_gc_sections.patch b/toolchain/binutils/patches/2.22/400-fix_arm_gc_sections.patch
new file mode 100644
index 0000000000..04badab620
--- /dev/null
+++ b/toolchain/binutils/patches/2.22/400-fix_arm_gc_sections.patch
@@ -0,0 +1,12 @@
+--- a/bfd/elf32-arm.c
++++ b/bfd/elf32-arm.c
+@@ -12408,7 +12408,8 @@ elf32_arm_check_relocs (bfd *abfd, struc
+
+ /* If the symbol is a function that doesn't bind locally,
+ this relocation will need a PLT entry. */
+- root_plt->refcount += 1;
++ if (root_plt->refcount != -1)
++ root_plt->refcount += 1;
+
+ if (!call_reloc_p)
+ arm_plt->noncall_refcount++;
'#n126'>126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170