]>
Commit | Line | Data |
---|---|---|
7292b3ac AM |
1 | 2015-08-31 Alan Modra <[email protected]> |
2 | ||
3 | * section.c (struct bfd_section): Make "id" and "index" unsigned. | |
4 | * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Adjust local var to suit. | |
5 | * elf.c (elf_map_symbols): Likewise. | |
6 | * elf64-ppc.c (sym_exists_at): Make "id" param unsigned. | |
7 | (struct ppc_link_hash_table): Make "top_id" and "top_index" unsigned. | |
8 | (ppc64_elf_setup_section_lists): Ditto for local vars. | |
9 | * elf32-arm.c: Similarly to elf64-ppc.c. | |
10 | * elf32-avr.c: Likewise. | |
11 | * elf32-hppa.c: Likewise. | |
12 | * elf32-m68hc1x.c: Likewise. | |
13 | * elf32-metag.c: Likewise. | |
14 | * elf32-nios2.c: Likewise. | |
15 | * elfnn-aarch64.c: Likewise. | |
16 | * simple.c (struct saved_offsets): Make "section_count" unsigned. | |
17 | * bfd-in2.h: Regenerate. | |
18 | ||
6fc5bb57 AM |
19 | 2015-08-27 Alan Modra <[email protected]> |
20 | ||
a40d44c4 | 21 | PR 18867 |
6fc5bb57 AM |
22 | * elf64-alpha.c (elf64_alpha_sort_relocs_p): New function. |
23 | (elf_backend_sort_relocs_p): Define. | |
24 | ||
0e287786 AM |
25 | 2015-08-26 Alan Modra <[email protected]> |
26 | ||
27 | PR 18867 | |
28 | * elflink.c (cmp_ext32l_r_offset, cmp_ext32b_r_offset): Delete. | |
29 | (cmp_ext64l_r_offset, cmp_ext64b_r_offset): Delete. | |
30 | (ext32l_r_offset, ext32b_r_offset, ext64l_r_offset, ext64b_r_offset): | |
31 | New functions. | |
32 | (elf_link_adjust_relocs): Use an insertion sort to sort relocs. | |
33 | ||
c97c330b MF |
34 | 2015-08-26 Matthew Fortune <[email protected]> |
35 | ||
36 | PR ld/18401 | |
37 | * elfxx-mips.c (bfd_mips_isa_ext_mach): New function: Converts an | |
38 | ISA value to a bfd machine number. | |
39 | (bfd_mips_isa_ext): Update the ISA level and revision if | |
40 | necessary. Use mips_mach_extends_p to decide if the ISA extension | |
41 | needs to be set. | |
42 | (_bfd_mips_elf_merge_private_bfd_data): Allow the ISA extension to | |
43 | be inferred from the ABI setting. Set the ISA level from the | |
44 | maximum of the incoming and outgoing ISA levels. | |
45 | ||
16ad13ec NC |
46 | 2015-08-25 Nick Clifton <[email protected]> |
47 | ||
48 | PR binutils/18854 | |
49 | * elf.c (bfd_section_from_shdr): Replace assertions with warnings | |
50 | about multiple symbol tables. | |
51 | ||
7c2bea1a RL |
52 | 2015-08-25 Renlin Li <[email protected]> |
53 | ||
54 | * reloc.c (BFD_RELOC_AARCH64_LD64_GOTOFF_LO15): Use LP64 instead of | |
55 | ILP64. | |
56 | * bfd-in2.h: Regenerate. | |
57 | ||
595bce75 AM |
58 | 2015-08-22 Alan Modra <[email protected]> |
59 | ||
60 | * elf.c (_bfd_elf_slurp_version_tables): Always init vd_nodename. | |
61 | Don't copy fields not set by _bfd_elf_swap_verdef_in. | |
62 | ||
07c9aa07 JW |
63 | 2015-08-19 Jiong Wang <[email protected]> |
64 | ||
65 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize new relocation | |
66 | types, including BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12, | |
67 | BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC, | |
68 | BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12, | |
69 | BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC, | |
70 | BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12, | |
71 | BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC, | |
72 | BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12, | |
73 | BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC. | |
74 | (elfNN_aarch64_final_link_relocate): Likewise. | |
75 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
76 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
77 | ||
4c562523 JW |
78 | 2015-08-19 Jiong Wang <[email protected]> |
79 | ||
80 | * reloc.c (BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12, | |
81 | BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC, | |
82 | BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12, | |
83 | BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC, | |
84 | BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12, | |
85 | BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC. | |
86 | BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12, | |
87 | BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): New entries. | |
88 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Likewise. | |
89 | * bfd-in2.h: Regenerate. | |
90 | * libbfd.h: Regenerate. | |
91 | ||
6ffe9a1b JW |
92 | 2015-08-19 Jiong Wang <[email protected]> |
93 | ||
94 | PR ld/18276 | |
95 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize new relocation | |
96 | types, including BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_HI12, | |
97 | BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0, | |
98 | BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0_NC, | |
99 | BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1, | |
100 | BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1_NC, | |
101 | BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G2. | |
102 | (elfNN_aarch64_final_link_relocate): Likewise. | |
103 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
104 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
105 | ||
49df5539 JW |
106 | 2015-08-19 Jiong Wang <[email protected]> |
107 | ||
108 | * reloc.c (BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_HI12, | |
109 | BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0, | |
110 | BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0_NC, | |
111 | BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1, | |
112 | BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1_NC, | |
113 | BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G2): New entries. | |
114 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Likewise. | |
115 | * bfd-in2.h: Regenerate. | |
116 | * libbfd.h: Regenerate. | |
117 | ||
753999c1 JW |
118 | 2015-08-19 Jiong Wang <[email protected]> |
119 | ||
120 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize | |
121 | BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12_NC. | |
122 | (aarch64_reloc_got_type): Likewise. | |
123 | (elfNN_aarch64_final_link_relocate): Likewise. | |
124 | (elfNN_aarch64_relocate_section): Likewise. | |
125 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
126 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
127 | ||
13289c10 JW |
128 | 2015-08-19 Jiong Wang <[email protected]> |
129 | ||
130 | * reloc.c (BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): New entry. | |
131 | * bfd-in2.h: Regenerate. | |
132 | * libbfd.h: Regenerate. | |
133 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for | |
134 | BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12_NC. | |
135 | ||
3cbc1e5e AM |
136 | 2015-08-19 Alan Modra <[email protected]> |
137 | ||
138 | * elf-s390-common.c: Simplify expressions using | |
139 | bfd_linke_executable, bfd_link_pie and bfd_link_pic. | |
140 | * elf32-arm.c: Likewise. | |
141 | * elf32-bfin.c: Likewise. | |
142 | * elf32-frv.c: Likewise. | |
143 | * elf32-m68k.c: Likewise. | |
144 | * elf32-nios2.c: Likewise. | |
145 | * elf32-ppc.c: Likewise. | |
146 | * elf32-s390.c: Likewise. | |
147 | * elf32-sh.c: Likewise. | |
148 | * elf64-alpha.c: Likewise. | |
149 | * elf64-ppc.c: Likewise. | |
150 | * elf64-s390.c: Likewise. | |
151 | * elflink.c: Likewise. | |
152 | ||
44b4145b JW |
153 | 2015-08-18 Jiong Wang <[email protected]> |
154 | ||
155 | * elfnn-aarch64.c (aarch64_reloc_got_type): Delete useless check. | |
156 | (elfNN_aarch64_relocate_section): Likewise. | |
157 | (elfNN_aarch64_gc_sweep_hook): Likewise. | |
158 | (elfNN_aarch64_check_relocs): Likewise. | |
159 | ||
cae1fbbb L |
160 | 2015-08-18 H.J. Lu <[email protected]> |
161 | ||
162 | PR ld/18841 | |
163 | * elf-bfd.h (elf_link_hash_table): Add dynsym. | |
164 | * elf32-i386.c (elf_i386_reloc_type_class): Return | |
165 | reloc_class_ifunc for relocation against STT_GNU_IFUNC symbol. | |
166 | * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise. | |
167 | * elflink.c (_bfd_elf_link_create_dynamic_sections): Set dynsym. | |
168 | (bfd_elf_size_dynsym_hash_dynstr): Use dynsym. | |
169 | (elf_final_link_info): Remove dynsym_sec. | |
170 | (elf_link_output_extsym): Replace dynsym_sec with dynsym. | |
171 | (bfd_elf_final_link): Remove reference to dynsym_sec. Replace | |
172 | dynsym_sec with dynsym. | |
173 | ||
0e1862bb L |
174 | 2015-08-18 H.J. Lu <[email protected]> |
175 | ||
176 | * bfd/aoutx.h: Replace shared, executable, relocatable and pie | |
177 | fields with bfd_link_executable, bfd_link_dll, | |
178 | bfd_link_relocatable, bfd_link_pic and bfd_link_pie. | |
179 | * bfd/bout.c: Likewise. | |
180 | * bfd/coff-alpha.c: Likewise. | |
181 | * bfd/coff-arm.c: Likewise. | |
182 | * bfd/coff-i386.c: Likewise. | |
183 | * bfd/coff-i960.c: Likewise. | |
184 | * bfd/coff-m68k.c: Likewise. | |
185 | * bfd/coff-mcore.c: Likewise. | |
186 | * bfd/coff-mips.c: Likewise. | |
187 | * bfd/coff-ppc.c: Likewise. | |
188 | * bfd/coff-rs6000.c: Likewise. | |
189 | * bfd/coff-sh.c: Likewise. | |
190 | * bfd/coff-tic80.c: Likewise. | |
191 | * bfd/coff-x86_64.c: Likewise. | |
192 | * bfd/coff64-rs6000.c: Likewise. | |
193 | * bfd/coffgen.c: Likewise. | |
194 | * bfd/cofflink.c: Likewise. | |
195 | * bfd/ecoff.c: Likewise. | |
196 | * bfd/ecofflink.c: Likewise. | |
197 | * bfd/elf-bfd.h: Likewise. | |
198 | * bfd/elf-eh-frame.c: Likewise. | |
199 | * bfd/elf-ifunc.c: Likewise. | |
200 | * bfd/elf-m10200.c: Likewise. | |
201 | * bfd/elf-m10300.c: Likewise. | |
202 | * bfd/elf-s390-common.c: Likewise. | |
203 | * bfd/elf-vxworks.c: Likewise. | |
204 | * bfd/elf.c: Likewise. | |
205 | * bfd/elf32-arm.c: Likewise. | |
206 | * bfd/elf32-avr.c: Likewise. | |
207 | * bfd/elf32-bfin.c: Likewise. | |
208 | * bfd/elf32-cr16.c: Likewise. | |
209 | * bfd/elf32-cr16c.c: Likewise. | |
210 | * bfd/elf32-cris.c: Likewise. | |
211 | * bfd/elf32-crx.c: Likewise. | |
212 | * bfd/elf32-d10v.c: Likewise. | |
213 | * bfd/elf32-dlx.c: Likewise. | |
214 | * bfd/elf32-epiphany.c: Likewise. | |
215 | * bfd/elf32-fr30.c: Likewise. | |
216 | * bfd/elf32-frv.c: Likewise. | |
217 | * bfd/elf32-ft32.c: Likewise. | |
218 | * bfd/elf32-h8300.c: Likewise. | |
219 | * bfd/elf32-hppa.c: Likewise. | |
220 | * bfd/elf32-i370.c: Likewise. | |
221 | * bfd/elf32-i386.c: Likewise. | |
222 | * bfd/elf32-i860.c: Likewise. | |
223 | * bfd/elf32-ip2k.c: Likewise. | |
224 | * bfd/elf32-iq2000.c: Likewise. | |
225 | * bfd/elf32-lm32.c: Likewise. | |
226 | * bfd/elf32-m32c.c: Likewise. | |
227 | * bfd/elf32-m32r.c: Likewise. | |
228 | * bfd/elf32-m68hc11.c: Likewise. | |
229 | * bfd/elf32-m68hc1x.c: Likewise. | |
230 | * bfd/elf32-m68k.c: Likewise. | |
231 | * bfd/elf32-mcore.c: Likewise. | |
232 | * bfd/elf32-mep.c: Likewise. | |
233 | * bfd/elf32-metag.c: Likewise. | |
234 | * bfd/elf32-microblaze.c: Likewise. | |
235 | * bfd/elf32-moxie.c: Likewise. | |
236 | * bfd/elf32-msp430.c: Likewise. | |
237 | * bfd/elf32-mt.c: Likewise. | |
238 | * bfd/elf32-nds32.c: Likewise. | |
239 | * bfd/elf32-nios2.c: Likewise. | |
240 | * bfd/elf32-or1k.c: Likewise. | |
241 | * bfd/elf32-ppc.c: Likewise. | |
242 | * bfd/elf32-rl78.c: Likewise. | |
243 | * bfd/elf32-rx.c: Likewise. | |
244 | * bfd/elf32-s390.c: Likewise. | |
245 | * bfd/elf32-score.c: Likewise. | |
246 | * bfd/elf32-score7.c: Likewise. | |
247 | * bfd/elf32-sh-symbian.c: Likewise. | |
248 | * bfd/elf32-sh.c: Likewise. | |
249 | * bfd/elf32-sh64.c: Likewise. | |
250 | * bfd/elf32-spu.c: Likewise. | |
251 | * bfd/elf32-tic6x.c: Likewise. | |
252 | * bfd/elf32-tilepro.c: Likewise. | |
253 | * bfd/elf32-v850.c: Likewise. | |
254 | * bfd/elf32-vax.c: Likewise. | |
255 | * bfd/elf32-visium.c: Likewise. | |
256 | * bfd/elf32-xc16x.c: Likewise. | |
257 | * bfd/elf32-xstormy16.c: Likewise. | |
258 | * bfd/elf32-xtensa.c: Likewise. | |
259 | * bfd/elf64-alpha.c: Likewise. | |
260 | * bfd/elf64-hppa.c: Likewise. | |
261 | * bfd/elf64-ia64-vms.c: Likewise. | |
262 | * bfd/elf64-mmix.c: Likewise. | |
263 | * bfd/elf64-ppc.c: Likewise. | |
264 | * bfd/elf64-s390.c: Likewise. | |
265 | * bfd/elf64-sh64.c: Likewise. | |
266 | * bfd/elf64-x86-64.c: Likewise. | |
267 | * bfd/elflink.c: Likewise. | |
268 | * bfd/elfnn-aarch64.c: Likewise. | |
269 | * bfd/elfnn-ia64.c: Likewise. | |
270 | * bfd/elfxx-mips.c: Likewise. | |
271 | * bfd/elfxx-sparc.c: Likewise. | |
272 | * bfd/elfxx-tilegx.c: Likewise. | |
273 | * bfd/i386linux.c: Likewise. | |
274 | * bfd/linker.c: Likewise. | |
275 | * bfd/m68klinux.c: Likewise. | |
276 | * bfd/pdp11.c: Likewise. | |
277 | * bfd/pe-mips.c: Likewise. | |
278 | * bfd/peXXigen.c: Likewise. | |
279 | * bfd/reloc.c: Likewise. | |
280 | * bfd/reloc16.c: Likewise. | |
281 | * bfd/sparclinux.c: Likewise. | |
282 | * bfd/sunos.c: Likewise. | |
283 | * bfd/vms-alpha.c: Likewise. | |
284 | * bfd/xcofflink.c: Likewise. | |
285 | ||
fe875424 AM |
286 | 2015-08-18 Alan Modra <[email protected]> |
287 | ||
288 | PR 18667 | |
289 | * Makefile.am: Use $(SED) in place of sed throughout. | |
290 | * Makefile.in: Regenerate. | |
291 | ||
43417696 AM |
292 | 2015-08-18 Alan Modra <[email protected]> |
293 | ||
294 | * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't redefine .TOC. | |
295 | if already defined, and set linker_def. | |
296 | (ppc64_elf_set_toc): Use .TOC. value if defined other than by | |
297 | the backend. | |
298 | ||
9b57267f AM |
299 | 2015-08-14 Alan Modra <[email protected]> |
300 | ||
301 | PR ld/18759 | |
302 | * elf32-or1k.c: Revert 2015-08-11 change. | |
303 | ||
8efa2874 L |
304 | 2015-08-13 H.J. Lu <[email protected]> |
305 | ||
306 | PR ld/18801 | |
307 | * elf32-i386.c (elf_i386_size_dynamic_sections): Issue an error | |
308 | for read-only segment with dynamic IFUNC relocations. | |
309 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Likewise. | |
310 | ||
40fc1451 SD |
311 | 2015-08-12 Simon Dardis <[email protected]> |
312 | ||
313 | * elfxx-mips.c (STUB_MOVE): Change to use 'or' only. | |
314 | (mips_o32_exec_plt0_entry, mips_n32_exec_plt0_entry, | |
315 | mips_n64_exec_plt0_entry, micromips_insn32_o32_exec_plt0_entry): | |
316 | Update to use 'or' instead of 'addu/daddu'. | |
317 | (_bfd_mips_elf_finish_dynamic_symbol): Update usage of STUB_MOVE. | |
318 | (move_insns_32): Reorder table. | |
319 | ||
0eace210 L |
320 | 2015-08-11 H.J. Lu <[email protected]> |
321 | ||
322 | * elf32-i386.c (elf_i386_relocate_section): Properly skip IFUNC | |
323 | relocations in debug sections. | |
324 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
325 | ||
c674f5cd JW |
326 | 2015-08-11 Jiong Wang <[email protected]> |
327 | ||
328 | * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Improve warning | |
329 | message for R_AARCH64_LD64_GOTPAGE_LO15/R_AARCH64_LD32_GOTPAGE_LO14. | |
330 | ||
9331eea1 JW |
331 | 2015-08-11 Jiong Wang <[email protected]> |
332 | ||
333 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): New. | |
334 | (aarch64_can_relax_tls): Use the new IS_AARCH64_TLS_RELAX_RELOC. | |
335 | ||
f678ded7 JW |
336 | 2015-08-11 Jiong Wang <[email protected]> |
337 | ||
338 | * bfd/elfnn-aarch64.c (aarch64_type_of_stub): New parameter "sym_sec". | |
339 | Loose the check for symbol from ABS section. | |
340 | (elfNN_aarch64_size_stubs): Pass sym_sec. | |
341 | ||
07f9ddfe JW |
342 | 2015-08-11 Jiong Wang <[email protected]> |
343 | ||
344 | PR ld/18668 | |
345 | * elfnn-aarch64.c (aarch64_type_of_stub): Update destination for | |
346 | calls go through plt stub. | |
347 | (elfNN_aarch64_final_link_relocate): Adjust code logic for CALL26, | |
348 | JUMP26 relocation to support inserting veneer for call to plt stub. | |
349 | ||
40fbed84 JW |
350 | 2015-08-11 Jiong Wang <[email protected]> |
351 | ||
352 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize | |
353 | BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12. | |
354 | (aarch64_reloc_got_type): Likewise. | |
355 | (elfNN_aarch64_final_link_relocate): Likewise. | |
356 | (elfNN_aarch64_relocate_section): Likewise. | |
357 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
358 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
359 | ||
70151fb5 JW |
360 | 2015-08-11 Jiong Wang <[email protected]> |
361 | ||
362 | * reloc.c (BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12): New entry. | |
363 | * bfd-in2.h: Regenerate. | |
364 | * libbfd.h: Regenerate. | |
365 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for | |
366 | BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12. | |
367 | ||
73f925cc JW |
368 | 2015-08-11 Jiong Wang <[email protected]> |
369 | ||
370 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize | |
371 | BFD_RELOC_AARCH64_TLSLD_ADD_LO12_NC. | |
372 | (aarch64_reloc_got_type): Likewise. | |
373 | (elfNN_aarch64_final_link_relocate): Likewise. | |
374 | (elfNN_aarch64_relocate_section): Likewise. | |
375 | (elfNN_aarch64_gc_sweep_hook): Likewise. | |
376 | (elfNN_aarch64_check_relocs): Likewise. | |
377 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
378 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
379 | ||
a12fad50 JW |
380 | 2015-08-11 Jiong Wang <[email protected]> |
381 | ||
382 | * reloc.c (BFD_RELOC_AARCH64_TLSLD_ADD_LO12_NC): New entry. | |
383 | * bfd-in2.h: Regenerate. | |
384 | * libbfd.h: Regenerate. | |
385 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for | |
386 | BFD_RELOC_AARCH64_TLSLD_ADD_LO12_NC. | |
387 | ||
f69e4920 JW |
388 | 2015-08-11 Jiong Wang <[email protected]> |
389 | ||
390 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize | |
391 | BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21. | |
392 | (aarch64_reloc_got_type): Likewise. | |
393 | (elfNN_aarch64_final_link_relocate): Likewise. | |
394 | (elfNN_aarch64_relocate_section): Likewise. | |
395 | (elfNN_aarch64_gc_sweep_hook): Likewise. | |
396 | (elfNN_aarch64_check_relocs): Likewise. | |
397 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
398 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
399 | ||
1107e076 JW |
400 | 2015-08-11 Jiong Wang <[email protected]> |
401 | ||
402 | * reloc.c (BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21): New entry. | |
403 | * bfd-in2.h: Regenerate. | |
404 | * libbfd.h: Regenerate. | |
405 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for | |
406 | BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21. | |
407 | ||
97dc35c8 L |
408 | 2015-08-11 H.J. Lu <[email protected]> |
409 | ||
410 | PR ld/18808 | |
411 | * elf32-i386.c (elf_i386_relocate_section): Skip IFUNC | |
412 | relocations in debug sections. | |
413 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
414 | ||
dbac553d PZ |
415 | 2015-08-11 Peter Zotov <[email protected]> |
416 | ||
417 | PR ld/18759 | |
418 | * elf32-or1k.c (R_OR1K_32_PCREL): Set pcrel_offset to TRUE. | |
419 | (R_OR1K_16_PCREL): Likewise. | |
420 | (R_OR1K_8_PCREL): Likewise. | |
421 | ||
4b0e8a5f NC |
422 | 2015-08-11 Nick Clifton <[email protected]> |
423 | ||
4c0160b8 NC |
424 | PR binutils/18747 |
425 | * coff-sh.c (_bfd_sh_align_load_span): Fix typo when setting | |
426 | opcode count. | |
427 | ||
4b0e8a5f NC |
428 | PR binutils/18758 |
429 | * elf.c (_bfd_elf_setup_sections): Add checks for corrupt section | |
430 | group information. | |
431 | * peicode.h (pe_ILF_make_a_section): Ensure alignment of the | |
432 | used_by_bfd pointer. | |
433 | (pe_ILF_build_a_bfd): Ensure alignment of vars.data pointer. | |
434 | ||
64140f86 L |
435 | 2015-08-11 H.J. Lu <[email protected]> |
436 | ||
437 | * elf.c (_bfd_elf_copy_private_bfd_data): Fix a typo. | |
438 | ||
422f1182 L |
439 | 2015-08-10 H.J. Lu <[email protected]> |
440 | ||
441 | * elf-bfd.h (elf_symbol_version): New enum. | |
442 | (elf_link_hash_entry): Replace hidden with versioned. | |
443 | * elflink.c (_bfd_elf_merge_symbol): Don't look for symbol | |
444 | version if the symbol is unversioned. Initialize versioned. | |
445 | (_bfd_elf_add_default_symbol): Don't look for symbol version | |
446 | if the symbol is unversioned or hidden. Initialize versioned. | |
447 | (elf_collect_hash_codes): Don't look for symbol version if the | |
448 | symbol is unversioned. | |
449 | (elf_collect_gnu_hash_codes): Likewise. | |
450 | (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise. | |
451 | (_bfd_elf_link_hash_copy_indirect): Check versioned instead of | |
452 | hidden. | |
453 | (elf_link_output_extsym): Likewise. | |
454 | ||
d4ac1f87 L |
455 | 2015-08-07 H.J. Lu <[email protected]> |
456 | ||
457 | PR binutils/18785 | |
458 | * elf.c (_bfd_elf_copy_private_bfd_data): When copying the | |
459 | sh_link and sh_info fields in stripped section headers, we also | |
64140f86 | 460 | check if the sh_type, sh_flags, sh_addralign and sh_entsize |
d4ac1f87 L |
461 | fields of the output section match the output. Since |
462 | --only-keep-debug turns all non-debug sections into SHT_NOBITS | |
463 | sections, the output SHT_NOBITS type matches any input type. | |
464 | ||
6e33951e L |
465 | 2015-08-07 H.J. Lu <[email protected]> |
466 | ||
467 | PR ld/18720 | |
468 | * elflink.c (_bfd_elf_merge_symbol): Add a parameter to indicate | |
469 | if the new symbol matches the existing one. The new hidden | |
470 | versioned symbol matches the existing symbol if they have the | |
471 | same symbol version. Update the existing symbol only if they | |
472 | match. | |
473 | (_bfd_elf_add_default_symbol): Update call to | |
474 | _bfd_elf_merge_symbol. | |
475 | (_bfd_elf_link_assign_sym_version): Don't set the hidden field | |
476 | here. | |
477 | (elf_link_add_object_symbols): Override a definition only if the | |
478 | new symbol matches the existing one. | |
479 | (_bfd_elf_link_hash_copy_indirect): Don't copy any references to | |
480 | the hidden versioned symbol. | |
481 | (elf_link_output_extsym): Bind a symbol locally when linking | |
482 | executable if it is locally defined, hidden versioned, not | |
483 | referenced by shared library and not exported. Turn on | |
422f1182 | 484 | VERSYM_HIDDEN only if the hidden versioned symbol is defined |
6e33951e L |
485 | locally. |
486 | ||
63b9bbb7 NC |
487 | 2015-08-05 Nick Clifton <[email protected]> |
488 | ||
489 | * elf.c (_bfd_elf_copy_private_bfd_data): Copy the sh_link and | |
490 | sh_info fields of sections whose type has been changed to | |
491 | SHT_NOBITS. | |
492 | ||
7e27a9d5 YK |
493 | 2015-08-04 Yuriy M. Kaminskiy" <[email protected]> |
494 | Tyler Hicks <[email protected]> | |
495 | ||
496 | PR binutils/18750 | |
497 | * ihex.c (ihex_scan): Fixes incorrect escape sequence in error message | |
498 | and stack overflow when char is signed and \200-\376 was in place of hex | |
499 | digit; also fixes \377 was handled as EOF instead of "incorrect character". | |
500 | (ihex_read_section): Changed for consistency. | |
501 | (ihex_bad_byte): Prevent (now impossible to trigger) stack | |
502 | overflow and incorrect escape sequence handling. | |
503 | * srec.c (srec_bad_byte): Likewise. | |
504 | ||
cb1c8103 HPN |
505 | 2015-08-03 Hans-Peter Nilsson <[email protected]> |
506 | ||
507 | * elf32-cris.c (cris_elf_relocate_section) | |
508 | (elf_cris_finish_dynamic_symbol, cris_elf_check_relocs) | |
509 | (elf_cris_discard_excess_dso_dynamics): Use SYMBOLIC_BIND, not | |
4122b413 | 510 | just link_info->symbolic, to check if a symbol should be bound |
cb1c8103 HPN |
511 | symbolically. |
512 | ||
c6e8a9a8 L |
513 | 2015-07-30 H.J. Lu <[email protected]> |
514 | ||
515 | PR ld/18735 | |
516 | * elflink.c (_bfd_elf_add_default_symbol): Add the default | |
517 | symbol if not performing a relocatable link. | |
518 | (elf_link_add_object_symbols): Adjust the default symbol if | |
519 | not performing a relocatable link. | |
520 | ||
e77e648e L |
521 | 2015-07-29 H.J. Lu <[email protected]> |
522 | ||
523 | * elflink.c (elf_link_add_object_symbols): Remove | |
524 | !info->relocatable check for info->executable. Add | |
525 | !info->relocatable check for !info->executable. | |
526 | (elf_link_output_extsym): Remove | |
527 | !info->relocatable check for info->executable. | |
528 | ||
11509220 HPN |
529 | 2015-07-29 Hans-Peter Nilsson <[email protected]> |
530 | ||
531 | * mmo.c (mmo_write_symbols_and_terminator): Skip symbol-type | |
532 | assignment loop for bfd plugin objects. | |
533 | ||
e5654c0f AM |
534 | 2015-07-28 Alan Modra <[email protected]> |
535 | ||
536 | * elf.c (_bfd_elf_map_sections_to_segments): Do not make a new | |
537 | segment for loaded sections after nonloaded sections if the | |
538 | sections are on the same page. | |
539 | ||
d6f1bafa IB |
540 | 2015-07-28 Iain Buclaw <[email protected]> |
541 | ||
542 | * configure.in: Add asprintf and vasprintf to AC_CHECK_DECLS. | |
543 | * config.in, configure: Regenerate. | |
544 | ||
37a42ee9 L |
545 | 2015-07-27 H.J. Lu <[email protected]> |
546 | ||
547 | * configure: Regenerated. | |
548 | ||
79559014 NC |
549 | 2015-07-27 Nick Clifton <[email protected]> |
550 | ||
551 | * elf32-msp430.c (uses_large_model): New function. | |
552 | (msp430_elf_eh_frame_address_size): New function. | |
553 | (elf_backend_eh_frame_address_size): Define. | |
554 | ||
32f573bc SN |
555 | 2015-07-27 Szabolcs Nagy <[email protected]> |
556 | ||
557 | PR ld/18705 | |
558 | * elfnn-aarch64.c (elf_backend_extern_protected_data): Define. | |
559 | ||
b68a20d6 SN |
560 | 2015-07-27 Szabolcs Nagy <[email protected]> |
561 | ||
562 | PR ld/18705 | |
563 | * elf32-arm.c (elf_backend_extern_protected_data): Define. | |
564 | ||
18d9555c L |
565 | 2015-07-25 H.J. Lu <[email protected]> |
566 | ||
567 | PR ld/18718 | |
568 | * elflink.c (elf_link_output_extsym): Check symbol version | |
569 | section check only if not linking executable, the symbol is | |
570 | referenced by shared library or not locally defined. | |
571 | ||
a496fbc8 AM |
572 | 2015-07-25 Thomas Preud'homme <[email protected]> |
573 | ||
574 | * elf32-arm.c (elf32_arm_final_link_relocate): Use SYMBOLIC_BIND to | |
575 | check if a symbol should be bound symbolically. | |
576 | * elf32-hppa.c (elf32_hppa_check_relocs, | |
577 | elf32_hppa_adjust_dynamic_symbol, elf32_hppa_relocate_section, | |
578 | elf32_hppa_finish_dynamic_symbol): Likewise. | |
579 | * elf32-m68k.c (elf_m68k_check_relocs, | |
580 | elf_m68k_relocate_section): Likewise. | |
581 | * elf32-nios2.c (nios2_elf32_relocate_section, | |
582 | nios2_elf32_check_relocs, allocate_dynrelocs): Likewise. | |
583 | * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol, | |
584 | elf32_tic6x_relocate_section): Likewise. | |
585 | ||
91cb26da AM |
586 | 2015-07-24 Alan Modra <[email protected]> |
587 | ||
588 | * elf.c (_bfd_elf_assign_file_positions_for_non_load): Use .rela | |
589 | prefix for reloc section corresponding to rela section associated | |
590 | with renamed debug section. | |
591 | ||
2fb9328d AM |
592 | 2015-07-24 Alan Modra <[email protected]> |
593 | ||
594 | * section.c (bfd_get_section_by_name_if): Iterate over entire hash | |
595 | chain. | |
596 | ||
d5cff5df JM |
597 | 2015-07-23 Joseph Myers <[email protected]> |
598 | ||
599 | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections) | |
600 | <DT_MIPS_RLD_MAP_REL>: Add target address to host address | |
601 | difference, not to host pointer. | |
602 | ||
bb854a36 AM |
603 | 2015-07-22 Alan Modra <[email protected]> |
604 | ||
605 | * elf64-ppc.c (opd_entry_value): Remove assertion. Instead, | |
606 | return -1 if symbol referenced is not defined. Tidy. | |
607 | ||
f2d7e0f4 AM |
608 | 2015-07-20 Alan Modra <[email protected]> |
609 | ||
610 | * po/SRC-POTFILES.in: Regenerate. | |
611 | ||
4c0a9a6f JW |
612 | 2015-07-17 Jiong Wang <[email protected]> |
613 | ||
614 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Sort alphabetically. | |
615 | (IS_AARCH64_TLSDESC_RELOC): Sort alphabetically. | |
616 | ||
77a69ff8 JW |
617 | 2015-07-16 Jiong Wang <[email protected]> |
618 | ||
619 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize | |
620 | BFD_RELOC_AARCH64_TLSLD_ADR_PREL21. | |
621 | (aarch64_reloc_got_type): Ditto. | |
622 | (elfNN_aarch64_final_link_relocate): Ditto. | |
623 | (elfNN_aarch64_relocate_section): Ditto. | |
624 | (elfNN_aarch64_gc_sweep_hook): Ditto. | |
625 | (elfNN_aarch64_check_relocs): Ditto. | |
626 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto. | |
627 | (_bfd_aarch64_elf_resolve_relocation): Ditto. | |
628 | ||
6c37fedc JW |
629 | 2015-07-16 Jiong Wang <[email protected]> |
630 | ||
631 | * reloc.c (BFD_RELOC_AARCH64_TLSLD_ADR_PREL21): New entry. | |
632 | * bfd-in2.h: Regenerate. | |
633 | * libbfd.h: Regenerate. | |
634 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for | |
635 | BFD_RELOC_AARCH64_TLSLD_ADR_PREL21. | |
636 | ||
88988473 L |
637 | 2015-07-10 H.J. Lu <[email protected]> |
638 | ||
639 | PR binutils/18656 | |
640 | * bfd.c (bfd_convert_section_size): New function. | |
641 | (bfd_convert_section_contents): Likewise. | |
642 | * bfd-in2.h: Regenerated. | |
643 | ||
de231f20 CM |
644 | 2015-07-09 Catherine Moore <[email protected]> |
645 | ||
646 | * elflink.c (bfd_elf_size_dynamic_sections): Call to | |
647 | _bfd_elf_maybe_strip_eh_frame_hdr should be before | |
648 | bed->elf_backend_size_dynamic_sections. | |
649 | ||
328e7bfd DC |
650 | 2015-07-08 Pitchumani Sivanupandi <[email protected]> |
651 | ||
652 | * elf32-avr.c: Add 32 bit PC relative relocation for AVR target. | |
653 | ||
92a9c616 RS |
654 | 2015-07-05 Richard Sandiford <[email protected]> |
655 | ||
656 | * elf64-ppc.c (toc_adjusting_stub_needed): Use the symbol value | |
657 | plus addend rather than the original st_value when looking up | |
658 | entries in opd->adjust. | |
659 | ||
0f088b2a KT |
660 | 2015-07-03 Kai Tietz <[email protected]> |
661 | Nick Clifton <[email protected]> | |
662 | ||
663 | PR ld/11539 | |
664 | * coffcode.h (coff_bfd_gc_sections): Define default | |
665 | to bfd_coff_gc_sections function. | |
666 | (coff_gc_mark_hook_fn): New type. | |
667 | * coffgen.c (init_reloc_cookie): Copy and adjust coff | |
668 | related code about gc-sections from elflink.c to here. | |
669 | (fini_reloc_cookie): Likewise. | |
670 | (init_reloc_cookie_rels): Likewise. | |
671 | (fini_reloc_cookie_rels): Likewise. | |
672 | (init_reloc_cookie_for_section): Likewise. | |
673 | (fini_reloc_cookie_for_section): Likewise. | |
674 | (_bfd_coff_gc_mark_hook): Likewise. | |
675 | (_bfd_coff_gc_mark_rsec): Likewise. | |
676 | (_bfd_coff_gc_mark_reloc): Likewise. | |
677 | (_bfd_coff_gc_mark): Likewise. | |
678 | (_bfd_coff_gc_mark_extra_sections): Likewise. | |
679 | (coff_gc_sweep_symbol_info): Likewise. | |
680 | (coff_gc_sweep_symbol): Likewise. | |
681 | (gc_sweep_hook_fn): Likewise. | |
682 | (coff_gc_sweep): Likewise. | |
683 | (bfd_coff_gc_sections): Likewise. | |
684 | (_bfd_coff_gc_keep): Likewise. | |
685 | * libcoff-in.h (coff_reloc_cookie): New struct. | |
686 | (bfd_coff_gc_sections): New prototype. | |
687 | * libcoff.h: Regenerate. | |
688 | ||
8c163c5a SL |
689 | 2015-07-01 Sandra Loosemore <[email protected]> |
690 | Cesar Philippidis <[email protected]> | |
691 | ||
692 | * bfd-in2.h: Regenerated. | |
693 | * elf32-nios2.c (elf_nios2_howto_table_rel): Rename to... | |
694 | (elf_nios2_r1_howto_table_rel): This. | |
695 | (elf_nios2_r2_howto_table_rel): New. | |
696 | (BFD_IS_R2): New. | |
697 | (lookup_howto): Add ABFD parameter. Adjust to look up in either | |
698 | the R1 or R2 relocation table, as determined by ABFD. | |
699 | (nios2_reloc_map): Add R2 relocations. | |
700 | (nios2_elf32_bfd_reloc_type_lookup): Do lookup using lookup_howto. | |
701 | Pass it the ABFD parameter. | |
702 | (nios2_elf32_bfd_reloc_name_lookup): Use ABFD to decide whether to | |
703 | return an R1 or R2 relocation. | |
704 | (nios2_elf32_info_to_howto): Do lookup using lookup_howto. | |
705 | Pass it the ABFD parameter. | |
706 | (nios2_elf32_do_call26_relocate): Check for alignment on a 4-byte | |
707 | boundary. | |
708 | (nios2_elf32_relocate_section): Adjust call to lookup_howto. | |
709 | * libbfd.h: Regenerated. | |
710 | * reloc.c (BFD_RELOC_NIOS2_R2_S12): New. | |
711 | (BFD_RELOC_NIOS2_R2_I10_1_PCREL): New. | |
712 | (BFD_RELOC_NIOS2_R2_T1I7_1_PCREL): New. | |
713 | (BFD_RELOC_NIOS2_R2_T1I7_2): New. | |
714 | (BFD_RELOC_NIOS2_R2_T2I4): New. | |
715 | (BFD_RELOC_NIOS2_R2_T2I4_1): New. | |
716 | (BFD_RELOC_NIOS2_R2_T2I4_2): New. | |
717 | (BFD_RELOC_NIOS2_R2_X1I7_2): New. | |
718 | (BFD_RELOC_NIOS2_R2_X2L5): New. | |
719 | (BFD_RELOC_NIOS2_R2_F1I5_2): New. | |
720 | (BFD_RELOC_NIOS2_R2_L5I4X1): New. | |
721 | (BFD_RELOC_NIOS2_R2_T1X1I6): New. | |
722 | (BFD_RELOC_NIOS2_R2_T1X1I6_2): New. | |
723 | ||
965b1d80 SL |
724 | 2015-07-01 Sandra Loosemore <[email protected]> |
725 | Cesar Philippidis <[email protected]> | |
726 | ||
727 | * archures.c (bfd_mach_nios2r1, bfd_mach_nios2r2): New. | |
728 | * bfd-in2.h: Regenerated. | |
729 | * cpu-nios2.c (nios2_compatible): New. | |
730 | (N): Use nios2_compatible instead of bfd_default_compatible. | |
731 | (NIOS2R1_NEXT, NIOS2R2_NEXT): Define. | |
732 | (arch_info_struct): New. | |
733 | (bfd_nios2_arch): Chain to NIOS2R1_NEXT. | |
734 | * elf32-nios2.c (is_nios2_elf): New. | |
735 | (nios2_elf32_merge_private_bfd_data): New. | |
736 | (nios2_elf32_object_p): New. | |
737 | (bfd_elf32_bfd_merge_private_bfd_data): Define. | |
738 | (elf_backend_object_p): Define. | |
739 | ||
dfc87947 L |
740 | 2015-07-01 H.J. Lu <[email protected]> |
741 | ||
742 | * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Refactor. | |
743 | ||
5ee4a1ca NC |
744 | 2015-06-30 Nick Clifton <[email protected]> |
745 | ||
746 | PR binutils/18570 | |
747 | * elf-attrs.c (obj_attr_size): Use an unsigned int type for the tag. | |
748 | (write_obj_attribute): Likewise. | |
749 | (elf_new_obj_attr): Likewise. | |
750 | (bfd_elf_get_obj_attr_int): Likewise. | |
751 | (bfd_elf_add_obj_attr_int): Likewise. | |
752 | (bfd_elf_add_obj_attr_string): Likewise. | |
753 | (bfd_elf_add_obj_attr_int_string): Likewise. | |
754 | (gnu_obj_attrs_arg_type): Likewise. | |
755 | (_bfd_elf_obj_attrs_arg_type): Likewise. | |
756 | (_bfd_elf_parse_attributes): Likewise. | |
757 | (_bfd_elf_merge_unknown_attribute_list): Likewise. | |
758 | * elf-bfd.h (struct obj_attribute_list): Likewise. | |
759 | Update prototypes. | |
760 | ||
ee0c0c50 L |
761 | 2015-06-28 H.J. Lu <[email protected]> |
762 | ||
763 | * bfd-in.h (compressed_debug_section_type): Remove | |
764 | COMPRESS_DEBUG_ZLIB. | |
765 | * bfd-in2.h : Regenerated. | |
766 | ||
a5499fa4 MF |
767 | 2015-06-26 Matthew Fortune <[email protected]> |
768 | ||
769 | * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Use executable | |
770 | instead of !shared to indicate an application vs shared library. | |
771 | (_bfd_mips_elf_size_dynamic_sections): Likewise. | |
772 | (_bfd_mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP_REL. | |
773 | (_bfd_mips_elf_get_target_dtag): Likewise. | |
774 | ||
3f307074 DD |
775 | 2015-06-25 DJ Delorie <[email protected]> |
776 | ||
777 | * elf32-msp430.c (msp430_final_link_relocate): Fix comments. Fix | |
778 | REL loads to match RELA stores. | |
779 | ||
946748d5 L |
780 | 2015-06-25 H.J. Lu <[email protected]> |
781 | ||
782 | * elf.c (_bfd_elf_compute_section_file_positions): Don't | |
783 | initialize sh_size for .shstrtab here. | |
784 | ||
ef10c3ac L |
785 | 2015-06-25 H.J. Lu <[email protected]> |
786 | ||
787 | PR gas/18451 | |
788 | * elf-bfd.h (elf_sym_strtab): New. | |
789 | (elf_link_hash_table): Add strtabcount, strtabsize and | |
790 | strtab. | |
791 | (_bfd_elf_stringtab_init): Removed. | |
792 | * elf.c (_bfd_elf_stringtab_init): Removed. | |
793 | (_bfd_elf_compute_section_file_positions): Replace | |
794 | bfd_strtab_hash/_bfd_elf_stringtab_init/_bfd_stringtab_free/ | |
795 | _bfd_stringtab_size with | |
796 | elf_strtab_hash/_bfd_elf_strtab_init/_bfd_elf_strtab_free/ | |
797 | _bfd_elf_strtab_size. Use _bfd_elf_strtab_add, | |
798 | _bfd_elf_strtab_finalize and _bfd_elf_strtab_offset to get | |
799 | st_name. | |
800 | (swap_out_syms): Likewise. | |
801 | * elflink.c (elf_final_link_info): Replace bfd_strtab_hash | |
802 | with elf_strtab_hash. Remove symbuf, symbuf_count, | |
803 | symbuf_size and shndxbuf_size. | |
804 | (elf_link_flush_output_syms): Removed. | |
805 | (elf_link_output_sym): Renamed to ... | |
806 | (elf_link_output_symstrtab): This. Replace _bfd_stringtab_add | |
807 | with _bfd_elf_strtab_add. Don't flush symbols to the file nor | |
808 | swap out symbols. | |
809 | (elf_link_swap_symbols_out): New. | |
810 | (elf_link_output_extsym): Replace elf_link_output_sym with | |
811 | elf_link_output_symstrtab. | |
812 | (elf_link_input_bfd): Likewise. | |
813 | (elf_final_link_free): Replace _bfd_stringtab_free with | |
814 | _bfd_elf_strtab_free. Remove symbuf. | |
815 | (bfd_elf_final_link): Replace _bfd_elf_stringtab_init with | |
816 | _bfd_elf_strtab_init. Don't set symbuf, symbuf_count, | |
817 | symbuf_size nor shndxbuf_size. Initialize strtabsize and | |
818 | strtab. Initialize symshndxbuf to -1 when number of sections | |
819 | >= 64K. Replace elf_link_output_sym/elf_link_output_sym with | |
820 | elf_link_output_symstrtab/elf_link_output_symstrtab. Don't | |
821 | call elf_link_flush_output_syms. Call _bfd_elf_strtab_finalize | |
822 | and elf_link_swap_symbols_out. Replace _bfd_stringtab_size | |
823 | and _bfd_stringtab_emit with _bfd_elf_strtab_size and | |
824 | _bfd_elf_strtab_emit. | |
825 | ||
7cc152be L |
826 | 2015-06-24 H.J. Lu <[email protected]> |
827 | ||
828 | * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Silence older | |
829 | GCC warning. | |
830 | ||
7c1e8d3e L |
831 | 2015-06-24 H.J. Lu <[email protected]> |
832 | ||
833 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Always allocate | |
834 | space for the first .plt entry. | |
835 | (elf_i386_size_dynamic_sections): Always add DT_PLTGOT for .plt | |
836 | section. Add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL only if | |
837 | there are PLT relocations. | |
838 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Always | |
839 | allocate space for the first .plt entry. | |
840 | (elf_x86_64_size_dynamic_sections): Always add DT_PLTGOT for | |
841 | .plt section. Add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL only if | |
842 | there are PLT relocations. | |
843 | ||
59cab532 L |
844 | 2015-06-24 H.J. Lu <[email protected]> |
845 | ||
846 | PR ld/18591 | |
847 | * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Don't convert | |
848 | R_X86_64_GOTPCREL to R_X86_64_PC32 if it will cause relocation | |
849 | overflow. | |
850 | ||
c2170589 JW |
851 | 2015-06-23 Jiong Wang <[email protected]> |
852 | ||
853 | * elfnn-aarch64.c (aarch64_readonly_dynrelocs): New function. | |
854 | (elfNN_aarch64_size_dynamic_sections): Traverse hash table to check | |
855 | relocations against read-only sections. | |
856 | ||
75c11999 NC |
857 | 2015-06-18 Nick Clifton <[email protected]> |
858 | ||
859 | PR 18481 | |
860 | * elf32-arm.c (R_ARM_TLS_LE32): Set the special function to NULL. | |
861 | ||
56f40832 JT |
862 | 2015-06-15 Jon Turney <[email protected]> |
863 | ||
864 | * bfd.c: Change struct bfd_build_id to use bfd_size_type. | |
865 | * bfd-in2.h : Regenerate. | |
866 | ||
1d5c94cb AM |
867 | 2015-06-16 Alan Modra <[email protected]> |
868 | ||
869 | * elf32-ppc.c (ppc_elf_relocate_section): Correct binary search of | |
870 | dynamic relocs. | |
871 | ||
c74f7d1c JT |
872 | 2015-06-10 Jon Turney <[email protected]> |
873 | ||
874 | * elf-bfd.h : Remove struct elf_build_id. | |
875 | * bfd.c : Add struct bfd_build_id. | |
876 | * bfd-in2.h: Regenerate. | |
877 | * elf.c (elfobj_grok_gnu_build_id): Update to use bfd_build_id. | |
878 | * libpei.h: Add protoype and macros for | |
879 | bfd_XXi_slurp_codeview_record. | |
880 | * peXXigen.c (_bfd_XXi_slurp_codeview_record): Make public | |
881 | * peicode.h (pe_bfd_read_buildid): Add. | |
882 | (pe_bfd_object_p): Use pe_bfd_read_buildid(). | |
883 | ||
87f5fbcc RL |
884 | 2015-06-15 Renlin Li <[email protected]> |
885 | ||
886 | * reloc.c (BFD_RELOC_AARCH64_LD64_GOTOFF_LO15): New entry. | |
887 | * bfd-in2.h: Regenerate. | |
888 | * libbfd.h: Regenerate. | |
889 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for | |
890 | BFD_RELOC_AARCH64_LD64_GOTOFF_LO15. | |
891 | ||
3a062fa1 AM |
892 | 2015-06-15 Alan Modra <[email protected]> |
893 | ||
894 | * cofflink.c (_bfd_coff_generic_relocate_section): Revert | |
895 | 2014-03-26 change. Call _bfd_clear_contents for relocs against | |
896 | local and global symbols defined in discarded input sections. | |
897 | ||
1ade7175 NC |
898 | 2015-06-05 Nick Clifton <[email protected]> |
899 | ||
900 | * elf32-msp430.c (rl78_sym_diff_handler): New function. | |
901 | (msp430_howto_table): Use the new function for the SYM_DIFF reloc. | |
902 | (msp430x_howto_table): Likewise. | |
903 | ||
f8b44781 AM |
904 | 2015-06-05 Alan Modra <[email protected]> |
905 | ||
906 | * elf64-ppc.c (ppc_elf_relocate_section): Move dynamic text | |
907 | relocs with insns moved by --ppc476-workaround. Correct | |
908 | output of REL16 relocs. | |
909 | ||
7018c030 JW |
910 | 2015-06-01 Jiong Wang <[email protected]> |
911 | ||
912 | * elfnn-aarch64.c (aarch64_reloc_got_type): Support | |
913 | BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14. | |
914 | (elfNN_aarch64_final_link_relocate): Ditto. | |
915 | (elfNN_aarch64_gc_swap_hook): Ditto. | |
916 | (elfNN_aarch64_check_relocs): Ditto. | |
917 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto. | |
918 | ||
3d715ce4 JW |
919 | 2015-06-01 Jiong Wang <[email protected]> |
920 | ||
921 | * reloc.c (BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14): New entry. | |
922 | * bfd-in2.h: Regenerate. | |
923 | * libbfd.h: Regenerate. | |
924 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for | |
925 | BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14. | |
926 | ||
36e6c140 JW |
927 | 2015-06-01 Jiong Wang <[email protected]> |
928 | ||
929 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Set overflow type to | |
930 | complain_overflow_unsigned for BFD_RELOC_AARCH64_TLSLE_ADD_LO12. | |
931 | * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Don't use | |
932 | PGOFF for BFD_RELOC_AARCH64_TLSLE_ADD_LO12. | |
933 | ||
99ad26cb JW |
934 | 2015-06-01 Jiong Wang <[email protected]> |
935 | ||
936 | * elfnn-aarch64.c (aarch64_reloc_got_type): Support | |
937 | BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15. | |
938 | (elfNN_aarch64_final_link_relocate): Ditto. | |
939 | (elfNN_aarch64_gc_swap_hook): Ditto. | |
940 | (elfNN_aarch64_check_relocs): Ditto. | |
941 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto. | |
942 | ||
a921b5bd JW |
943 | 2015-06-01 Jiong Wang <[email protected]> |
944 | ||
945 | * reloc.c (BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15): New entry. | |
946 | * bfd-in2.h: Regenerate. | |
947 | * libbfd.h: Regenerate. | |
948 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for | |
949 | BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15. | |
950 | ||
2f0c68f2 CM |
951 | 2015-05-28 Catherine Moore <[email protected]> |
952 | Bernd Schmidt <[email protected]> | |
953 | Paul Brook <[email protected]> | |
954 | ||
955 | bfd/ | |
956 | * bfd-in2.h: Regenerated. | |
957 | * elf-bfd.h (DWARF2_EH_HDR, COMPACT_EH_HDR): Define. | |
958 | (COMPACT_EH_CANT_UNWIND_OPCODE): Define. | |
959 | (dwarf_eh_frame_hdr_info): Move dwarf-specific fields from | |
960 | eh_frame_hdr_info. | |
961 | (compact_eh_frame_hdr_info): Declare. | |
962 | (eh_frame_hdr_info): Redeclare with union for dwarf-specific | |
963 | fields and compact-eh fields. | |
964 | (elf_backend_data): Add cant_unwind_opcode and compact_eh_encoding. | |
965 | (bfd_elf_section_data): Add eh_frame_entry_field. | |
966 | (elf_section_eh_frame_entry): Define. | |
967 | (bfd_elf_parse_eh_frame_entries): Declare. | |
968 | (_bfd_elf_parse_eh_frame_entry): Declare. | |
969 | (_bfd_elf_end_eh_frame_parsing): Declare. | |
970 | (_bfd_elf_write_section_eh_frame_entry): Declare. | |
971 | (_bfd_elf_eh_frame_entry_present): Declare. | |
972 | (_bfd_elf_section_for_symbol): Declare. | |
973 | * elf-eh-frame.c (bfd_elf_discard_eh_frame_entry): New function. | |
974 | (bfd_elf_record_eh_frame_entry): New function. | |
975 | (_bfd_elf_parse_eh_frame_entry): New function. | |
976 | (_bfd_elf_parse_eh_frame): Update hdr_info field references. | |
977 | (cmp_eh_frame_hdr): New function. | |
978 | (add_eh_frame_hdr_terminator): New function. | |
979 | (_bfd_elf_end_eh_frame_parsing): New function. | |
980 | (find_merged_cie): Update hdr_info field references. | |
981 | (_bfd_elf_discard_section_eh_frame): Likewise. | |
982 | (_bfd_elf_discard_section_eh_frame_hdr): Add Compact EH support. | |
983 | (_bfd_elf_eh_frame_entry_present): New function. | |
984 | (_bfd_elf_maybe_strip_eh_frame_hdr): Add Compact EH support. | |
985 | (_bfd_elf_write_section_eh_frame_entry): New function. | |
986 | (_bfd_elf_write_section_eh_frame): Update hdr_info field references. | |
987 | (_bfd_elf_fixup_eh_frame_hdr): New function. | |
988 | (write_compact_eh_frame_hdr): New function. | |
989 | (write_dwarf_eh_frame_hdr): New function. | |
990 | (_bfd_elf_write_section_eh_frame_hdr): Add Compact EH support. | |
991 | * elflink.c (_bfd_elf_section_for_symbol): New function. | |
992 | (elf_section_ignore_discarded_relocs): Add Compact EH support. | |
993 | (elf_link_input_bfd): Likewise. | |
994 | (bfd_elf_final_link): Likewise. | |
995 | (_bfd_elf_gc_mark): Likewise. | |
996 | (bfd_elf_parse_eh_frame_entries): New function. | |
997 | (bfd_elf_gc_sections): Add Compact EH support. | |
998 | (bfd_elf_discard_info): Likewise. | |
999 | * elfxx-mips.c: Include dwarf2.h. | |
1000 | (_bfd_mips_elf_compact_eh_encoding): New function. | |
1001 | (_bfd_mips_elf_cant_unwind_opcode): New function. | |
1002 | * elfxx-mips.h (_bfd_mips_elf_compact_eh_encoding): Declare. | |
1003 | (_bfd_mips_elf_cant_unwind_opcode): Declare. | |
1004 | (elf_backend_compact_eh_encoding): Define. | |
1005 | (elf_backend_cant_unwind_opcode): Define. | |
1006 | * elfxx-target.h (elf_backend_compact_eh_encoding): Provide default. | |
1007 | (elf_backend_cant_unwind_opcode): Provide default. | |
1008 | (elf_backend_data elfNN_bed): Add elf_backend_compact_eh_encoding and | |
1009 | elf_backend_cant_unwind_opcode. | |
1010 | * section.c (SEC_INFO_TYPE_EH_FRAME_ENTRY): Add definition. | |
1011 | ||
8ded2ddc L |
1012 | 2015-05-27 H.J. Lu <[email protected]> |
1013 | ||
1014 | PR binutils/18458 | |
1015 | * elf32-i386.c (elf_i386_check_relocs): Create .plt.got section | |
1016 | for now binding only if pointer equality isn't needed. | |
1017 | (elf_i386_allocate_dynrelocs): Use .plt.got section for now | |
1018 | binding only if pointer equality isn't needed. | |
1019 | * elf64-x86-64.c (elf_x86_64_check_relocs): Create .plt.got | |
1020 | section for now binding only if pointer equality isn't needed. | |
1021 | (elf_x86_64_allocate_dynrelocs): Use .plt.got section for now | |
1022 | binding only if pointer equality isn't needed. | |
1023 | ||
fca6ae69 L |
1024 | 2015-05-26 H.J. Lu <[email protected]> |
1025 | ||
1026 | PR binutils/18437 | |
1027 | * elf32-i386.c (elf_i386_get_plt_sym_val): Skip extra relocations | |
1028 | in .rel.plt/.rela.plt. | |
1029 | * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise. | |
1030 | ||
ce336788 JW |
1031 | 2015-05-19 Jiong Wang <[email protected]> |
1032 | ||
1033 | * elfnn-aarch64.c (aarch64_tls_transition_without_check): Sort | |
1034 | relocation case labels alphabetically. | |
1035 | (elfNN_aarch64_final_link_relocate): Ditto. | |
1036 | (elfNN_aarch64_tls_relax): Ditto. | |
1037 | (elfNN_aarch64_relocate_section): Ditto. | |
1038 | (elfNN_aarch64_gc_sweep_hook): Ditto. | |
1039 | (elfNN_aarch64_check_relocs): Ditto. | |
1040 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto. | |
1041 | (_bfd_aarch64_elf_resolve_relocation): Ditto. | |
1042 | ||
80de0c6d JW |
1043 | 2015-05-18 Jiong Wang <[email protected]> |
1044 | ||
1045 | * elfnn-aarch64.c (elfNN_aarch64_adjust_dynamic_symbol): Rewrite | |
1046 | comments. | |
1047 | ||
25070364 L |
1048 | 2015-05-16 H.J. Lu <[email protected]> |
1049 | ||
1050 | * elf32-i386.c (elf_i386_check_relocs): Create .plt.got section | |
1051 | for now binding. | |
1052 | (elf_i386_allocate_dynrelocs): Use .plt.got section for now | |
1053 | binding. | |
1054 | * elf64-x86-64.c (elf_x86_64_check_relocs): Create .plt.got | |
1055 | section for now binding. | |
1056 | (elf_x86_64_allocate_dynrelocs): Use .plt.got section for now | |
1057 | binding. | |
1058 | ||
dab394de L |
1059 | 2015-05-14 H.J. Lu <[email protected]> |
1060 | ||
1061 | * bfd.c (bfd_update_compression_header): Also write the zlib | |
1062 | header if the SHF_COMPRESSED bit cleared.. | |
1063 | (bfd_check_compression_header): Return the uncompressed size. | |
1064 | * compress.c (decompress_contents): Don't skip the zlib header. | |
1065 | (bfd_compress_section_contents): Properly handle ELFCOMPRESS_ZLIB, | |
1066 | which doesn't have the zlib header. | |
1067 | (bfd_init_section_decompress_status): Likewise. | |
1068 | (bfd_get_full_section_contents): Updated. | |
1069 | (bfd_is_section_compressed): Likewise. | |
1070 | (bfd_is_section_compressed_with_header): Return the uncompressed | |
1071 | size. | |
1072 | * elf.c (_bfd_elf_make_section_from_shdr): Updated. | |
1073 | * bfd-in2.h: Regenerated. | |
1074 | ||
fdc3b1b1 JW |
1075 | 2015-05-14 Jiong Wang <[email protected]> |
1076 | ||
1077 | * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Remove overflow | |
1078 | check restrictions. | |
1079 | ||
e6c9a083 MF |
1080 | 2015-05-14 Max Filippov <[email protected]> |
1081 | ||
1082 | * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Treat PLT reference | |
1083 | as GOT reference when plt.refcount is not positive. | |
1084 | ||
a3747075 L |
1085 | 2015-05-12 H.J. Lu <[email protected]> |
1086 | ||
1087 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate space | |
1088 | for the first .plt entry only if needed. | |
1089 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
1090 | ||
bf64a951 L |
1091 | 2015-05-11 H.J. Lu <[email protected]> |
1092 | ||
1093 | * Makefile.am (ALL_MACHINES): Add cpu-iamcu.lo. | |
1094 | (ALL_MACHINES_CFILES): Likewise. | |
1095 | * archures.c (bfd_mach_iamcu): New. | |
1096 | (bfd_mach_i386_iamcu): Likewise. | |
1097 | (bfd_mach_i386_iamcu_intel_syntax): Likewise. | |
1098 | (bfd_iamcu_arch): Likewise. | |
1099 | (bfd_archures_list): Add &bfd_iamcu_arch. | |
1100 | * config.bfd (targ_selvecs): Add iamcu_elf32_vec to | |
1101 | i386_elf32_vec. | |
1102 | (targ_archs): Add bfd_iamcu_arch if needed. | |
1103 | * configure.ac: Support iamcu_elf32_vec. | |
1104 | * cpu-iamcu.c: New file. | |
1105 | * elf32-i386.c (elf32_iamcu_elf_object_p): New function. | |
1106 | Add support for iamcu_elf32_vec and elf32_iamcu_bed. | |
1107 | * targets.c (iamcu_elf32_vec): New. | |
1108 | (_bfd_target_vector): Add iamcu_elf32_vec. | |
1109 | * Makefile.in: Regenerated. | |
1110 | * bfd-in2.h: Likewise. | |
1111 | * configure: Likewise. | |
1112 | ||
22abe556 L |
1113 | 2015-05-11 H.J. Lu <[email protected]> |
1114 | ||
1115 | * elfcode.h (elf_object_p): Replace EM_486 with EM_IAMCU. | |
1116 | ||
4b71eec6 L |
1117 | 2015-05-10 H.J. Lu <[email protected]> |
1118 | ||
1119 | * elf32-i386.c (elf_i386_convert_mov_to_lea): Replace input_bfd | |
1120 | and output_bfd with abfd. | |
1121 | * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise. | |
1122 | ||
9ac47a43 TS |
1123 | 2015-05-06 Toni Spets <[email protected]> |
1124 | ||
1125 | PR ld/18372 | |
1126 | * peXXigen.c (rsrc_process_section): Skip discarded resource | |
1127 | sections. | |
1128 | ||
b633b725 L |
1129 | 2015-05-01 H.J. Lu <[email protected]> |
1130 | ||
1131 | * config.bfd: Support i[3-7]86-*-elf*. | |
1132 | ||
914082d1 L |
1133 | 2015-04-30 H.J. Lu <[email protected]> |
1134 | ||
1135 | * elf32-i386.c (elf_backend_post_process_headers): Undef for | |
1136 | Solaris 2. | |
1137 | ||
153a2776 NC |
1138 | 2015-04-30 Nick Clifton <[email protected]> |
1139 | ||
1140 | PR 18317 | |
1141 | * elf32-mep.c (MEPREL): Use bfd_elf_generic_reloc instead of | |
1142 | mep_reloc. | |
1143 | (mep_reloc): Delete unused function. | |
1144 | ||
a93d5cb1 NC |
1145 | 2015-04-29 Nick Clifton <[email protected]> |
1146 | ||
1147 | PR 17099 | |
1148 | * coff-i386.c (coff_i386_rtype_to_howto): Allow absolute PCRLONG | |
1149 | relocs. | |
1150 | ||
643f7afb AK |
1151 | 2015-04-27 Andreas Krebbel <[email protected]> |
1152 | ||
1153 | * elf-s390-common.c (elf_s390_merge_obj_attributes): New function. | |
1154 | * elf32-s390.c (elf32_s390_merge_private_bfd_data): Call | |
1155 | elf_s390_merge_obj_attributes. | |
1156 | * elf64-s390.c (elf64_s390_merge_private_bfd_data): New function. | |
1157 | ||
b53b1bed JW |
1158 | 2015-04-24 Jiong Wang <[email protected]> |
1159 | ||
1160 | PR ld/18270 | |
1161 | * elfnn-aarch64.c (elfNN_aarch64_size_dynamic): Count local symbol for | |
1162 | GOT_NORMAL for both sgot/srelgot section. | |
1163 | (elfNN_aarch64_final_link_relocate): Relocate against GOT entry address | |
1164 | and generate necessary runtime relocation for GOT entry. | |
1165 | ||
69b52ab8 L |
1166 | 2015-04-24 H.J. Lu <[email protected]> |
1167 | ||
1168 | PR binutils/18209 | |
1169 | * archive.c (_bfd_get_elt_at_filepos): Copy is_linker_input. | |
1170 | ||
dcbd20eb JW |
1171 | 2015-04-24 Jiong Wang <[email protected]> |
1172 | ||
1173 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Reject | |
1174 | PC-relative relocation for external symbol. | |
1175 | ||
de13ef81 NC |
1176 | 2015-04-24 Nick Clifton <[email protected]> |
1177 | ||
1178 | PR 18313 | |
1179 | * compress.c (decompress_contents): Zero initialse the z_stream | |
1180 | structure. | |
1181 | ||
b1fa9dd6 NC |
1182 | 2015-04-24 Nick Clifton <[email protected]> |
1183 | ||
1184 | * elf.c (_bfd_elf_is_local_label_name): Extend test for assembler | |
1185 | local labels to include local labels with a numeric suffix and | |
1186 | fake symbols. | |
1187 | ||
9361e630 L |
1188 | 2015-04-24 H.J. Lu <[email protected]> |
1189 | ||
1190 | PR binutils/18316 | |
1191 | * section.c (SEC_MEP_VLIW): New. | |
1192 | * bfd-in2.h: Regenerated. | |
1193 | ||
3e19fb8f L |
1194 | 2015-04-23 H.J. Lu <[email protected]> |
1195 | ||
1196 | PR ld/18277 | |
1197 | * compress.c (bfd_compress_section_contents): Remove the | |
1198 | write_compress argument. | |
1199 | (bfd_init_section_compress_status): Updated. | |
1200 | (bfd_compress_section): Likewise. | |
1201 | * elf.c (_bfd_elf_set_reloc_sh_name): New. | |
1202 | (_bfd_elf_init_reloc_shdr): Add delay_st_name_p. Set sh_name | |
1203 | to (unsigned int) -1 if delay_st_name_p is TRUE. Use | |
1204 | _bfd_elf_set_reloc_sh_name. | |
1205 | (elf_fake_sections): Don't rename DWARF debug section for | |
1206 | linker output if it will be compressed. Instead, set | |
1207 | delay_st_name_p to TRUE and pass it to _bfd_elf_init_reloc_shdr. | |
1208 | (assign_section_numbers): Call _bfd_elf_strtab_addref only if | |
1209 | sh_name != (unsigned int) -1. Don't finalize nor assign | |
1210 | shstrtab section here. Delay setting output section names to | |
1211 | _bfd_elf_write_object_contents. | |
1212 | (_bfd_elf_compute_section_file_positions): Update comments on | |
1213 | sh_offset for shstrtab section. | |
1214 | (assign_file_positions_for_non_load_sections): Set sh_offset to | |
1215 | -1 for shstrtab section. | |
1216 | (assign_file_positions_except_relocs): Likewise. | |
1217 | (_bfd_elf_assign_file_positions_for_non_load): Set up sh_name | |
1218 | when compressing DWARF debug sections. Place shstrtab section | |
1219 | after DWARF debug sections have been compressed. | |
1220 | (_bfd_elf_write_object_contents): Setting sh_name for output | |
1221 | sections. | |
1222 | ||
f6fe1ccd L |
1223 | 2015-04-23 H.J. Lu <[email protected]> |
1224 | ||
1225 | PR binutils/18209 | |
1226 | * bfd.c (bfd): Add is_linker_input. | |
1227 | * elf.c (convert_debug_to_zdebug): New. | |
1228 | (convert_zdebug_to_debug): Likewise. | |
1229 | (_bfd_elf_make_section_from_shdr): Don't convert .debug_* to | |
1230 | .zdebug_* here. Use convert_zdebug_to_debug. Set SEC_ELF_RENAME. | |
1231 | (_bfd_elf_init_reloc_shdr): Pass a pointer to section name | |
1232 | instead of a pointer to section. | |
1233 | (elf_fake_sections): Rename the section name if SEC_ELF_RENAME | |
1234 | is set. | |
1235 | * section.c (SEC_ELF_RENAME): New. | |
1236 | * bfd-in2.h: Regenerated. | |
1237 | ||
a27e685f AM |
1238 | 2015-04-23 Alan Modra <[email protected]> |
1239 | ||
1240 | * elf64-ppc.c (TOC_BASE_ALIGN): Define. | |
1241 | (ppc64_elf_next_toc_section): Align multi-got toc base. | |
1242 | (ppc64_elf_set_toc): Likewise initial toc base and .TOC. symbol. | |
1243 | ||
d5597ebc L |
1244 | 2015-04-22 H.J. Lu <[email protected]> |
1245 | ||
1246 | PR ld/18289 | |
1247 | * elf32-i386.c (elf_i386_link_hash_entry): Add gotoff_ref. | |
1248 | (elf_i386_link_hash_newfunc): Initialize gotoff_ref to 0. | |
1249 | (elf_i386_create_dynamic_sections): Always allow copy relocs for | |
1250 | building executables. | |
1251 | (elf_i386_copy_indirect_symbol): Also copy gotoff_ref. | |
1252 | (elf_i386_check_relocs): Set gotoff_ref for R_386_GOTOFF. | |
1253 | (elf_i386_adjust_dynamic_symbol): Also allocate copy relocs for | |
1254 | PIE and R_386_GOTOFF. | |
1255 | (elf_i386_relocate_section): Allow R_386_GOTOFF in executable. | |
1256 | ||
e9702963 L |
1257 | 2015-04-20 H.J. Lu <[email protected]> |
1258 | ||
1259 | * elf.c (assign_section_numbers): Always set up sh_name. | |
1260 | ||
e06efbf1 L |
1261 | 2015-04-20 H.J. Lu <[email protected]> |
1262 | ||
1263 | * elf.c (assign_file_positions_for_non_load_sections): Iterate | |
1264 | sections by pointer. | |
1265 | (_bfd_elf_assign_file_positions_for_non_load): Likewise. | |
1266 | ||
0ce398f1 L |
1267 | 2015-04-14 H.J. Lu <[email protected]> |
1268 | ||
1269 | * bfd-in.h (compressed_debug_section_type): New. | |
1270 | * compress.c (bfd_compress_section_contents): Add an argument | |
1271 | for linker write compression and always generate .zdebug_* | |
1272 | section when linking. | |
1273 | (bfd_init_section_compress_status): Pass FALSE to | |
1274 | bfd_compress_section_contents. | |
1275 | (bfd_compress_section): New function. | |
1276 | * elf.c (elf_fake_sections): For linking, set SEC_ELF_COMPRESS | |
1277 | on DWARF debug sections if COMPRESS_DEBUG is set and rename | |
1278 | section if COMPRESS_DEBUG_GABI_ZLIB isn't set. | |
1279 | (assign_file_positions_for_non_load_sections): Set sh_offset | |
1280 | to -1 if SEC_ELF_COMPRESS is set. | |
1281 | (assign_file_positions_except_relocs): Likwise. | |
1282 | (_bfd_elf_assign_file_positions_for_relocs): Renamed to ... | |
1283 | (_bfd_elf_assign_file_positions_for_non_load): This. Change | |
1284 | return time to bfd_boolean. Compress the section if | |
1285 | SEC_ELF_COMPRESS is set. | |
1286 | (_bfd_elf_write_object_contents): Updated. | |
1287 | (_bfd_elf_set_section_contents): Write section contents to | |
1288 | the buffer if SEC_ELF_COMPRESS is set. | |
1289 | * merge.c: Include "elf-bfd.h". | |
1290 | (sec_merge_emit): Add arguments for contents and offset. Write | |
1291 | to contents with offset if contents isn't NULL. | |
1292 | (_bfd_write_merged_section): Write section contents to the | |
1293 | buffer if SEC_ELF_COMPRESS is set. Pass contents and | |
1294 | output_offset to sec_merge_emit. | |
1295 | * elflink.c (bfd_elf_final_link): Allocate the buffer for | |
1296 | output section contents if SEC_ELF_COMPRESS is set. | |
1297 | * section.c (SEC_ELF_COMPRESS): New. | |
1298 | * bfd-in2.h: Regenerated. | |
1299 | ||
95b57ade AM |
1300 | 2015-04-15 Alan Modra <[email protected]> |
1301 | ||
1302 | * elf32-rl78.c (rl78_elf_relocate_section): Typo fix. | |
1303 | ||
6ff71e76 NC |
1304 | 2015-04-14 Nick Clifton <[email protected]> |
1305 | ||
1306 | * elf32-rl78.c (RL78_OP_REL): New macro. | |
1307 | (rl78_elf_howto_table): Use it for complex relocs. | |
1308 | (get_symbol_value): Handle the cases when the info or status | |
1309 | arguments are NULL. | |
1310 | (get_romstart): Cache the status returned by get_symbol_value. | |
1311 | (get_ramstart): Likewise. | |
1312 | (RL78_STACK_PUSH): Generate an error message if the stack | |
1313 | overflows. | |
1314 | (RL78_STACK_POP): Likewise for underflows. | |
1315 | (rl78_compute_complex_reloc): New function. Contains the basic | |
1316 | processing code for all RL78 complex relocs. | |
1317 | (rl78_special_reloc): New function. Provides special reloc | |
1318 | handling for complex relocs. | |
1319 | (rl78_elf_relocate_section): Use rl78_compute_complex_reloc. | |
1320 | (rl78_offset_for_reloc): Likewise. | |
1321 | ||
889c2a67 L |
1322 | 2015-04-14 H.J. Lu <[email protected]> |
1323 | ||
1324 | PR ld/pr17709 | |
1325 | * elflink.c (_bfd_elf_adjust_dynamic_copy): Check | |
1326 | info->extern_protected_data when warning copy relocs against | |
1327 | protected symbols. | |
1328 | (_bfd_elf_symbol_refs_local_p): Check info->extern_protected_data | |
1329 | when checking protected non-function symbols. | |
1330 | ||
97de3545 JB |
1331 | 2015-04-13 John Baldwin <[email protected]> |
1332 | ||
1333 | * elf.c (elfcore_grok_note): Recognize NT_X86_XSTATE on | |
1334 | FreeBSD. | |
1335 | (elfcore_write_xstatereg): Use correct note name on FreeBSD. | |
1336 | ||
f0bf6bfd L |
1337 | 2015-04-13 H.J. Lu <[email protected]> |
1338 | ||
1339 | PR ld/18250 | |
1340 | * elflink.c (elf_link_is_defined_archive_symbol): Return FALSE | |
1341 | if the object has been claimed by plugin. | |
1342 | ||
e3c0e327 L |
1343 | 2015-04-11 H.J. Lu <[email protected]> |
1344 | ||
1345 | * elf32-i386.c (elf_i386_relocate_section): Replace SYMBOLIC_BIND | |
1346 | with SYMBOL_REFERENCES_LOCAL when checking R_386_GOTOFF against | |
1347 | protected data symbol when building shared library. | |
1348 | * elf64-x86-64.c (elf_x86_64_relocate_section): Check | |
1349 | R_X86_64_GOTOFF64 against undefined symbol and replace | |
1350 | SYMBOLIC_BIND with SYMBOL_REFERENCES_LOCAL when checking | |
1351 | R_X86_64_GOTOFF64 against protected data symbol when building | |
1352 | shared library. | |
1353 | ||
3d949995 L |
1354 | 2015-04-10 H.J. Lu <[email protected]> |
1355 | ||
1356 | PR ld/pr17709 | |
1357 | * elf32-i386.c (elf_i386_relocate_section): Also check R_386_GOTOFF | |
1358 | against protected data symbol when building shared library. | |
1359 | * elf64-x86-64.c (elf_x86_64_relocate_section): Also check | |
1360 | R_X86_64_GOTOFF64 against protected data symbol when building | |
1361 | shared library. | |
1362 | ||
f7483970 L |
1363 | 2015-04-10 H.J. Lu <[email protected]> |
1364 | ||
1365 | PR ld/pr15228 | |
1366 | PR ld/pr17709 | |
1367 | * elf-bfd.h (elf_backend_data): Add extern_protected_data. | |
1368 | * elf32-i386.c (elf_backend_extern_protected_data): New. | |
1369 | Defined to 1. | |
1370 | * elf64-x86-64.c (elf_backend_extern_protected_data): Likewise. | |
1371 | * elflink.c (_bfd_elf_adjust_dynamic_copy): Don't error on | |
1372 | copy relocs against protected symbols if extern_protected_data | |
1373 | is true. | |
1374 | (_bfd_elf_symbol_refs_local_p): Don't return true on protected | |
1375 | non-function symbols if extern_protected_data is true. | |
1376 | * elfxx-target.h (elf_backend_extern_protected_data): New. | |
1377 | Default to 0. | |
1378 | (elfNN_bed): Initialize extern_protected_data with | |
1379 | elf_backend_extern_protected_data. | |
1380 | ||
030aeb75 L |
1381 | 2015-04-10 H.J. Lu <[email protected]> |
1382 | ||
1383 | * compress.c (bfd_compress_section_contents): Replace bfd_malloc | |
1384 | and free with bfd_alloc and bfd_release on compressed buffer. | |
1385 | Release buffer if compressed section isn't smaller. | |
1386 | ||
d07a1b05 AM |
1387 | 2015-04-10 Alan Modra <[email protected]> |
1388 | ||
1389 | PR ld/18222 | |
1390 | * elflink.c (_bfd_elf_adjust_dynamic_copy): Don't report an error | |
1391 | on adding a protected visibility variable to .dynbss. | |
1392 | ||
8d2ea2a8 AM |
1393 | 2015-04-10 Alan Modra <[email protected]> |
1394 | ||
1395 | Revert 2015-03-05 H.J. Lu <[email protected]> | |
1396 | PR ld/pr15228 | |
1397 | PR ld/pr17709 | |
1398 | * elf-bfd.h (elf_backend_data): Delete extern_protected_data. | |
1399 | * elf32-i386.c (elf_backend_extern_protected_data): Delete. | |
1400 | * elf64-x86-64.c (elf_backend_extern_protected_data): Likewise. | |
1401 | * elflink.c (_bfd_elf_adjust_dynamic_copy): Remove | |
1402 | extern_protected_data test. | |
1403 | (_bfd_elf_symbol_refs_local_p): Likewise. | |
1404 | * elfxx-target.h (elf_backend_extern_protected_data): Delete. | |
1405 | (elfNN_bed): Delete elf_backend_extern_protected_data init. | |
1406 | ||
18ece1de L |
1407 | 2015-04-09 H.J. Lu <[email protected]> |
1408 | ||
1409 | * compress.c (bfd_compress_section_contents): Update comments. | |
1410 | (bfd_init_section_decompress_status): Likewise. | |
1411 | (bfd_init_section_compress_status): Likewise. | |
1412 | ||
cd6faa73 L |
1413 | 2015-04-09 H.J. Lu <[email protected]> |
1414 | ||
1415 | * elfxx-target.h (TARGET_BIG_SYM): Add BFD_COMPRESS_GABI to | |
1416 | object_flags. | |
1417 | (TARGET_LITTLE_SYM): Likewise. | |
1418 | ||
19424843 MF |
1419 | 2015-04-09 Max Filippov <[email protected]> |
1420 | ||
1421 | * elf32-xtensa.c (splay-tree.h): include header. | |
1422 | (text_action_struct): drop next pointer. | |
1423 | (text_action_list_struct): drop head pointer, add count and | |
1424 | tree fields. | |
1425 | (find_fill_action): instead of linear search in text_action_list | |
1426 | search in the tree. | |
1427 | (text_action_compare, action_first, action_next): new functions. | |
1428 | (text_action_add, text_action_add_literal): instead of linear | |
1429 | search and insertion insert new node into the tree. | |
1430 | (removed_by_actions): pass additional parameter: action_list, | |
1431 | use it to traverse the tree. | |
1432 | (offset_with_removed_text): pass additional action_list parameter | |
1433 | to removed_by_actions. | |
1434 | (map_action_fn_context): new typedef. | |
1435 | (map_action_fn_context_struct): new structure. | |
1436 | (map_action_fn): new function. | |
1437 | (map_removal_by_action): use splay_tree_foreach to build map. | |
1438 | (find_insn_action): replace linear search in text_action_list | |
1439 | with series of splay_tree_lookups. | |
1440 | (print_action, print_action_list_fn): new functions. | |
1441 | (print_action_list): use splay_tree_foreach. | |
1442 | (init_xtensa_relax_info): drop action_list.head initialization. | |
1443 | Initialize the tree. | |
1444 | (compute_text_actions): use non-zero action_list_count instead of | |
1445 | non-NULL action list. | |
1446 | (xlate_map_context): new typedef. | |
1447 | (xlate_map_context_struct): new structure. | |
1448 | (xlate_map_fn): new function. | |
1449 | (build_xlate_map): use splay_tree_foreach to build map. | |
1450 | (action_remove_bytes_fn): new function. | |
1451 | (relax_section): use zero action_list_count instead of NULL | |
1452 | action list. Use splay_tree_foreach to count final section size. | |
1453 | Drop unused variable 'removed'. | |
1454 | ||
1455 | 2015-04-09 Max Filippov <[email protected]> | |
1456 | ||
1457 | * elf32-xtensa.c (removed_literal_map_entry): new typedef. | |
1458 | (removed_literal_map_entry_struct): new structure. | |
1459 | (removed_literal_list_struct): add new fields: n_map and map. | |
1460 | (map_removed_literal, removed_literal_compare): new functions. | |
1461 | (find_removed_literal): build index array for literals ordered | |
1462 | by VMA, use binary search to find removed literal. | |
1463 | ||
1464 | 2015-04-09 Max Filippov <[email protected]> | |
1465 | ||
1466 | * elf32-xtensa.c (removal_by_action_entry_struct, | |
1467 | removal_by_action_map_struct): new structures. | |
1468 | (removal_by_action_entry, removal_by_action_map): new typedefs. | |
1469 | (text_action_list_struct): add new field: map. | |
1470 | (map_removal_by_action, removed_by_actions_map, | |
1471 | offset_with_removed_text_map): new functions. | |
1472 | (relax_section): replace offset_with_removed_text with | |
1473 | offset_with_removed_text_map. | |
1474 | (translate_reloc, relax_property_section, relax_section_symbols): | |
1475 | replace removed_by_actions with removed_by_actions_map. | |
1476 | ||
1477 | 2015-04-09 Max Filippov <[email protected]> | |
1478 | ||
1479 | * elf32-xtensa.c (reloc_range_list, reloc_range_list_entry, | |
1480 | reloc_range): new typedef. | |
1481 | (reloc_range_list_struct, reloc_range_list_entry_struct, | |
1482 | reloc_range_struct): new structures. | |
1483 | (reloc_range_compare, build_reloc_ranges, | |
1484 | reloc_range_list_append, reloc_range_list_remove, | |
1485 | reloc_range_list_update_range, free_reloc_range_list): new | |
1486 | functions. | |
1487 | (compute_text_actions): precompute relocation opcodes before the | |
1488 | loop. Add relevant_relocs variable, initialize it before the | |
1489 | loop, pass it to the check_section_ebb_pcrels_fit. | |
1490 | (check_section_ebb_pcrels_fit): add new parameter: | |
1491 | relevant_relocs. Update address range in the relevant_relocs if | |
1492 | it's non-NULL and iterate only over relevant relocations. | |
1493 | ||
3525236c NC |
1494 | 2015-04-09 Nick Clifton <[email protected]> |
1495 | ||
1496 | * elf32-rx.c (describe_flags): Report the settings of the string | |
1497 | insn using bits. | |
1498 | (rx_elf_merge_private_bfd_data): Handle merging of the string insn | |
1499 | using bits. | |
1500 | ||
51509926 L |
1501 | 2015-04-08 H.J. Lu <[email protected]> |
1502 | ||
1503 | * compress.c (bfd_compress_section_contents): Work around a GCC | |
1504 | uninitialized warning bug fixed in GCC 4.7. | |
1505 | ||
151411f8 L |
1506 | 2015-04-08 H.J. Lu <[email protected]> |
1507 | ||
1508 | * archive.c (_bfd_get_elt_at_filepos): Also copy BFD_COMPRESS_GABI | |
1509 | bit. | |
1510 | * bfd.c (bfd::flags): Increase size to 18 bits. | |
1511 | (BFD_COMPRESS_GABI): New. | |
1512 | (BFD_FLAGS_SAVED): Add BFD_COMPRESS_GABI. | |
1513 | (BFD_FLAGS_FOR_BFD_USE_MASK): Likewise. | |
1514 | (bfd_update_compression_header): New fuction. | |
1515 | (bfd_check_compression_header): Likewise. | |
1516 | (bfd_get_compression_header_size): Likewise. | |
1517 | (bfd_is_section_compressed_with_header): Likewise. | |
1518 | * compress.c (MAX_COMPRESSION_HEADER_SIZE): New. | |
1519 | (bfd_compress_section_contents): Return the uncompressed size if | |
1520 | the full section contents is compressed successfully. Support | |
1521 | converting from/to .zdebug* sections. | |
1522 | (bfd_get_full_section_contents): Call | |
1523 | bfd_get_compression_header_size to get compression header size. | |
1524 | (bfd_is_section_compressed): Renamed to ... | |
1525 | (bfd_is_section_compressed_with_header): This. Add a pointer | |
1526 | argument to return compression header size. | |
1527 | (bfd_is_section_compressed): Use it. | |
1528 | (bfd_init_section_decompress_status): Call | |
1529 | bfd_get_compression_header_size to get compression header size. | |
1530 | Return FALSE if uncompressed section size is 0. | |
1531 | * elf.c (_bfd_elf_make_section_from_shdr): Support converting | |
1532 | from/to .zdebug* sections. | |
1533 | * bfd-in2.h: Regenerated. | |
1534 | ||
87070c08 AM |
1535 | 2015-04-07 Alan Modra <[email protected]> |
1536 | ||
1537 | * elf.c (_bfd_elf_get_reloc_section): Allow for .got.plt being | |
1538 | mapped to output .got section. | |
1539 | ||
d3e454b9 AM |
1540 | 2015-04-07 Alan Modra <[email protected]> |
1541 | ||
1542 | * elf32-ppc.c (struct ppc_elf_link_hash_entry): Add has_addr16_ha | |
1543 | and has_addr16_lo. Make has_sda_refs a bitfield. | |
1544 | (ppc_elf_check_relocs): Set new flags. | |
1545 | (ppc_elf_link_hash_table_create): Update default_params. | |
1546 | (ppc_elf_adjust_dynamic_symbol): Clear protected_def in cases | |
1547 | where we won't be making .dynbss entries or editing code. Set | |
1548 | params->pic_fixup when we'll edit code for protected var access. | |
1549 | (allocate_dynrelocs): Allocate got entry for edited code and | |
1550 | discard dyn_relocs. | |
1551 | (struct ppc_elf_relax_info): Add picfixup_size. | |
1552 | (ppc_elf_relax_section): Rename struct one_fixup to struct | |
1553 | one_branch_fixup. Rename fixups to branch_fixups. Size space for | |
1554 | pic fixups. | |
1555 | (ppc_elf_relocate_section): Edit non-PIC accessing protected | |
1556 | visibility variables to PIC. Don't emit dyn_relocs for code | |
1557 | we've edited. | |
1558 | * elf32-ppc.h (struct ppc_elf_params): Add pic_fixup. | |
1559 | ||
ffa54770 NC |
1560 | 2015-04-07 Nick Clifton <[email protected]> |
1561 | ||
1562 | * elf.c (_bfd_elf_is_local_label_name): Treat assembler generated | |
1563 | local labels as local. | |
1564 | ||
4aa90cc0 L |
1565 | 2015-04-06 H.J. Lu <[email protected]> |
1566 | ||
1567 | * compress.c (get_uncompressed_size): Removed. | |
1568 | (bfd_compress_section_contents): Use bfd_putb64 to write | |
1569 | uncompressed section size. | |
1570 | (bfd_init_section_decompress_status): Replace | |
1571 | get_uncompressed_size with bfd_getb64. | |
1572 | ||
68f5ff89 L |
1573 | 2015-04-04 H.J. Lu <[email protected]> |
1574 | ||
1575 | * elf.c (_bfd_elf_init_private_section_data): Also preserve the | |
1576 | SHF_COMPRESSED bit if not decompress. | |
1577 | ||
8bed4e0f L |
1578 | 2015-04-04 H.J. Lu <[email protected]> |
1579 | ||
1580 | * compress.c (get_uncompressed_size): New. Extracted from ... | |
1581 | (bfd_init_section_decompress_status): This. Use it. | |
1582 | ||
15c7659f AT |
1583 | 2015-04-02 Andrew Turner <[email protected]> |
1584 | ||
1585 | * config.bfd: Add aarch64-*-freebsd* target triple. | |
1586 | ||
39f3de7c L |
1587 | 2015-04-02 H.J. Lu <[email protected]> |
1588 | ||
1589 | * configure: Regenerated. | |
1590 | ||
4106101c MS |
1591 | 2015-04-01 Tejas Belagod <[email protected]> |
1592 | Marcus Shawcroft <[email protected]> | |
1593 | Jiong Wang <[email protected]> | |
1594 | ||
1595 | * bfd-in.h (bfd_elf64_aarch64_set_options) | |
1596 | (bfd_elf32_aarch64_set_options): Add parameter. | |
1597 | * bfd-in2.h: Regenerated. | |
1598 | * elfnn-aarch64.c (aarch64_erratum_843419_stub) | |
1599 | (_bfd_aarch64_adrp_p, _bfd_aarch64_erratum_843419_sequence_p) | |
1600 | (_bfd_aarch64_erratum_843419_stub_name) | |
1601 | (_bfd_aarch64_erratum_843419_fixup) | |
1602 | (_bfd_aarch64_erratum_843419_scan) | |
1603 | (_bfd_aarch64_erratum_843419_branch_to_stub) | |
1604 | (_bfd_aarch64_erratum_843419_p): Define. | |
1605 | (enum elf_aarch64_stub_type): Define | |
1606 | aarch64_stub_erratum_843419_veneer. | |
1607 | (struct elf_aarch64_stub_hash_entry): Define adrp_offset. | |
1608 | (struct elf_aarch64_link_hash_table): Define fix_erratum_843419 | |
1609 | and fix_erratum_843419_adr. | |
1610 | (stub_hash_newfunc): Initialize adrp_offset; | |
1611 | (_bfd_aarch64_add_stub_entry_after): Define. | |
1612 | (aarch64_map_one_stub, aarch64_build_one_stub) | |
1613 | (aarch64_size_one_stub): Handle | |
1614 | aarch64_stub_erratum_843419_veneer. | |
1615 | (_bfd_aarch64_resize_stubs): Round stub section size. | |
1616 | (elfNN_aarch64_size_stubs): Add scan for 843419. | |
1617 | (bfd_elfNN_aarch64_set_options): Add parameter. Initialize | |
1618 | fix_erratum_843419 and fix_erratum_843419_adr. | |
1619 | (struct erratum_835769_branch_to_stub_data): Add info. | |
1620 | (elfNN_aarch64_write_section): Initialise info. Handle 843419. | |
1621 | (elfNN_aarch64_size_dynamic_sections): Handle 843419. | |
1622 | * elfxx-aarch64.c (_bfd_aarch64_decode_adrp_imm) | |
1623 | (_bfd_aarch64_sign_extend): Define. | |
1624 | (reencode_adr_imm): Remove static. Rename to: | |
1625 | (_bfd_aarch64_reencode_adr_imm): Define. | |
1626 | (_bfd_aarch64_elf_put_addend): Call _bfd_aarch64_reencode_adr_imm. | |
1627 | * elfxx-aarch64.h (AARCH64_ADR_OP, AARCH64_ADRP_OP) | |
1628 | (AARCH64_ADRP_OP_MASK, _bfd_aarch64_sign_extend) | |
1629 | (_bfd_aarch64_decode_adrp_imm, _bfd_aarch64_reencode_adr_imm): | |
1630 | Define. | |
1631 | ||
afa59b79 L |
1632 | 2015-04-01 H.J. Lu <[email protected]> |
1633 | ||
1634 | * configure: Regenerated. | |
1635 | ||
6036f486 ES |
1636 | 2015-03-31 Ed Schouten <[email protected]> |
1637 | ||
1638 | * config.bfd (targ_defvec): Set to x86_64_elf64_cloudabi_vec | |
1639 | for x86_64-*-cloudabi*. | |
1640 | * configure.ac: Handle x86_64_elf64_cloudabi_vec. | |
1641 | * configure: Regenerated. | |
1642 | * elf64-x86-64.c (TARGET_LITTLE_SYM): Support x86_64-*-cloudabi*. | |
1643 | (TARGET_LITTLE_NAME): Likewise. | |
1644 | (ELF_OSABI): Likewise. | |
1645 | (elf64_bed): Likewise. | |
1646 | * targets.c (x86_64_elf64_cloudabi_vec): New. | |
1647 | (_bfd_target_vector): Add x86_64_elf64_cloudabi_vec. | |
1648 | ||
9ae46699 L |
1649 | 2015-03-31 H.J. Lu <[email protected]> |
1650 | ||
1651 | * configure.ac: Revert the AM_ZLIB change. | |
1652 | * Makefile.in: Regenerated. | |
1653 | * aclocal.m4: Likewise. | |
1654 | * configure: Likewise. | |
1655 | * doc/Makefile.in: Likewise. | |
1656 | ||
bd53a53a L |
1657 | 2015-03-30 H.J. Lu <[email protected]> |
1658 | ||
1659 | PR ld/18169 | |
1660 | * elf-bfd.h (elf_backend_data): Add get_reloc_section. | |
1661 | (_bfd_elf_get_reloc_section): New. | |
1662 | * elf.c (_bfd_elf_get_reloc_section): Likewise. | |
1663 | (assign_section_numbers): Call get_reloc_section to look up the | |
1664 | section the relocs apply. | |
1665 | * elfxx-target.h (elf_backend_get_reloc_section): Likewise. | |
1666 | (elfNN_bed): Initialize get_reloc_section with | |
1667 | elf_backend_get_reloc_section. | |
1668 | ||
243340ad L |
1669 | 2015-03-29 H.J. Lu <[email protected]> |
1670 | ||
1671 | * Makefile.am (ZLIB): New. | |
1672 | (ZLIBINC): Likewise. | |
1673 | (AM_CFLAGS): Add $(ZLIBINC). | |
1674 | (libbfd_la_LIBADD): Add $(ZLIB). | |
1675 | * compress.c: Don't check HAVE_ZLIB_H to include <zlib.h>. | |
1676 | (decompress_contents): Don't check HAVE_ZLIB_H. | |
243340ad L |
1677 | (bfd_compress_section_contents): Likewise. |
1678 | (bfd_get_full_section_contents): Likewise. | |
1679 | (bfd_init_section_decompress_status): Likewise. | |
1680 | (bfd_init_section_compress_status): Likewise. | |
b51724e8 | 1681 | * configure.ac (AM_ZLIB): Removed. |
243340ad L |
1682 | (zlibdir): New. AC_SUBST. |
1683 | (zlibinc): Likewise. | |
1684 | Add --with-system-zlib. | |
1685 | * Makefile.in: Regenerated. | |
1686 | * acinclude.m4: Likewise. | |
1687 | * config.in: Likewise. | |
1688 | * configure: Likewise. | |
1689 | * doc/Makefile.in: Likewise. | |
1690 | ||
b8417128 AM |
1691 | 2015-03-27 Alan Modra <[email protected]> |
1692 | ||
1693 | PR ld/15228 | |
1694 | PR ld/18167 | |
1695 | * elflink.c (elf_merge_st_other): Add "sec" parameter. Don't set | |
1696 | protected_def when symbol section is read-only. Adjust all calls. | |
1697 | * elf-bfd.h (struct elf_link_hash_entry): Update protected_def comment. | |
1698 | ||
93ca8569 TB |
1699 | 2015-03-26 Tejas Belagod <[email protected]> |
1700 | ||
1701 | * elfnn-aarch64.c (aarch64_build_one_stub): Replace the call to generic | |
1702 | _bfd_final_link_relocate with aarch64_relocate. | |
1703 | ||
b19a8f85 L |
1704 | 2015-03-26 H.J. Lu <[email protected]> |
1705 | ||
1706 | PR ld/18160 | |
1707 | * elflink.c (elf_gc_sweep): Skip if relocation is incompatible. | |
1708 | (bfd_elf_gc_sections): Likewise. | |
1709 | ||
61865519 MS |
1710 | 2015-03-25 Marcus Shawcroft <[email protected]> |
1711 | ||
1712 | * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Adjust stub section | |
1713 | size for initial branch. | |
1714 | (elfNN_aarch64_build_stubs): Write initial branch. | |
1715 | _bfd_aarch64_decode_(elfNN_aarch64_output_arch_local_syms): Write | |
1716 | mapping symbol on initial branch. | |
1717 | ||
d9ced15d | 1718 | 2015-03-25 Marcus Shawcroft <[email protected]> |
357d1523 MS |
1719 | |
1720 | * elfnn-aarch64.c (_bfd_aarch64_erratum_835769_scan): | |
1721 | Update erratum count. | |
1722 | ||
d422d1c4 SKS |
1723 | 2015-03-25 Senthil Kumar Selvaraj <[email protected]> |
1724 | ||
1725 | * elflink.c (_bfd_elf_gc_mark_extra_sections): Don't break on | |
1726 | first matching debug section. | |
1727 | ||
8d001214 L |
1728 | 2015-03-24 H.J. Lu <[email protected]> |
1729 | ||
1730 | PR gas/18087 | |
1731 | * compress.c (bfd_compress_section_contents): Don't write the | |
1732 | zlib header and set contents as well as compress_status if | |
1733 | compression didn't make the section smaller. | |
1734 | (bfd_init_section_compress_status): Don't check compression | |
1735 | size here. | |
1736 | ||
fc42baf3 NC |
1737 | 2015-03-24 Nick Clifton <[email protected]> |
1738 | ||
1739 | PR binutils/17512 | |
1740 | * coffgen.c (coff_get_normalized_symtab): Fix test for out of | |
1741 | range auxillary sections. | |
1742 | ||
fc6d53be MS |
1743 | 2015-03-24 Marcus Shawcroft <[email protected]> |
1744 | ||
1745 | * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Factor | |
1746 | code into: | |
1747 | (_bfd_aarch64_get_stub_for_link_section): Define. | |
1748 | ||
30068a6d MS |
1749 | 2015-03-24 Marcus Shawcroft <[email protected]> |
1750 | ||
1751 | * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Adjust | |
1752 | update of section_group[].stub_sec. | |
1753 | ||
5421cc6e MS |
1754 | 2015-03-24 Marcus Shawcroft <[email protected]> |
1755 | ||
1756 | * elfnn-aarch64.c (struct aarch64_erratum_835769_fix) Remove. | |
1757 | (erratum_835769_scan) Drop fix_table_size_p and fixes_p arguments. | |
1758 | Delete fixes, fix_table_size and associated code. Call | |
1759 | _bfd_aarch64_add_stub_entry_in_group. Rename to... | |
1760 | (bfd_aarch64_erratum_835769_scan): Define. | |
1761 | (elfNN_aarch64_size_stubs): Delete erratum_835769_fixes, | |
1762 | erratum_835769_fix_table_size, i and associated code. Relocate | |
1763 | call to _bfd_aarch64_erratum_835769_scan. Delete adhoc stub size | |
1764 | correction. Delete construction of stub entry from | |
1765 | erratum_835769_fixes array. | |
1766 | ||
e572930b MS |
1767 | 2015-03-24 Marcus Shawcroft <[email protected]> |
1768 | ||
1769 | * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Use | |
1770 | _bfd_aarch64_add_stub_entry_in_group. | |
1771 | ||
8131c122 AM |
1772 | 2015-03-24 Alan Modra <[email protected]> |
1773 | ||
1774 | * elf64-ppc.c (ppc64_elf_relocate_section): Report overflow to | |
1775 | stubs, even those for undefined weak symbols. Otherwise, don't | |
1776 | report relocation overflow on branches to undefined strong | |
1777 | symbols. Fix memory leak. | |
1778 | * elf32-ppc.c (ppc_elf_relocate_section): Don't report relocation | |
1779 | overflow on branches to undefined strong symbols. | |
1780 | ||
c53ed7cf KS |
1781 | 2015-03-23 Keith Seitz <[email protected]> |
1782 | ||
1783 | * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Add | |
1784 | missing ';'. | |
1785 | ||
94a75bde MS |
1786 | 2015-03-23 Marcus Shawcroft <[email protected]> |
1787 | ||
1788 | * elfnn-aarch64.c (erratum_835769_scan): Factor stub name | |
1789 | construction into... | |
1790 | (_bfd_aarch64_erratum_835769_stub_name): Define. | |
1791 | ||
13f622ec MS |
1792 | 2015-03-23 Marcus Shawcroft <[email protected]> |
1793 | ||
1794 | * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Factor out | |
1795 | stub resize code into... | |
1796 | (bfd_aarch64_resize_stubs): Define. | |
1797 | ||
66585675 MS |
1798 | 2015-03-23 Marcus Shawcroft <[email protected]> |
1799 | ||
1800 | * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Factor stub | |
1801 | creation code into... | |
1802 | (bfd_aarch64_create_stub_section): Define. | |
1803 | ||
ef857521 MS |
1804 | 2015-03-23 Marcus Shawcroft <[email protected]> |
1805 | ||
1806 | * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Rename | |
1807 | from elf_aarch64_create_or_find_stub_sec. | |
1808 | (_bfd_aarch64_add_stub_entry_in_group): Rename from | |
1809 | elfNN_aarch64_add_stub. Call | |
1810 | _bfd_aarch64_create_or_find_stub_sec. | |
1811 | (elfNN_aarch64_size_stubs, elfNN_aarch64_size_stubs): Call | |
1812 | _bfd_aarch64_add_stub_entry_in_group. | |
1813 | ||
2144188d MS |
1814 | 2015-03-23 Marcus Shawcroft <[email protected]> |
1815 | ||
1816 | * elfnn-aarch64.c (erratum_835769_scan) Add comment. Reverse | |
1817 | sense of boolean return. | |
1818 | (elfNN_aarch64_size_stubs): Adjust for above. | |
1819 | ||
4c77202d MS |
1820 | 2015-03-23 Marcus Shawcroft <[email protected]> |
1821 | ||
1822 | * elfnn-aarch64.c (elf_aarch64_create_or_find_stub_sec): | |
1823 | Remove unused parameter. | |
1824 | (elfNN_aarch64_size_stubs): Adjust for above. | |
1825 | ||
9b9971aa MS |
1826 | 2015-03-23 Marcus Shawcroft <[email protected]> |
1827 | ||
1828 | * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Remove bfd_indx. | |
1829 | ||
e2cdef47 MS |
1830 | 2015-03-23 Marcus Shawcroft <[email protected]> |
1831 | ||
1832 | * elfnn-aarch64.c (aarch64_erratum_835769_fixes) | |
1833 | (num_aarch64_erratum_835769_fixes): Remove. | |
1834 | (elfNN_aarch64_size_stubs): Remove assignments to above. | |
1835 | ||
3d14faea MS |
1836 | 2015-03-23 Marcus Shawcroft <[email protected]> |
1837 | ||
23956543 MS |
1838 | * elfnn-aarch64.c (aarch64_mem_op_p): Update comment. Rename rtn |
1839 | to rt2. | |
3d14faea MS |
1840 | (aarch64_erratum_seqeunce): Rename rtn to rt2. |
1841 | ||
f872121a MS |
1842 | 2015-03-23 Marcus Shawcroft <[email protected]> |
1843 | ||
1844 | * elfnn-aarch64.c (elfNN_aarch64_write_section): Adjust layout. | |
1845 | ||
1740ba0c NC |
1846 | 2015-03-19 Nick Clifton <[email protected]> |
1847 | ||
1848 | * elf32-rl78.c (rl78_cpu_name): New function. Prints the name of | |
1849 | the RL78 core based upon the flags. | |
1850 | (rl78_elf_merge_private_bfd_data): Handle merging of G13 and G14 | |
1851 | flags. | |
1852 | (rl78_elf_print_private_bfd_data): Use rl78_cpu_name. | |
1853 | (elf32_rl78_machine): Always return bfd_mach_rl78. | |
1854 | ||
e2575e05 NC |
1855 | 2015-03-19 Nick Clifton <[email protected]> |
1856 | ||
1857 | PR 18078 | |
1858 | * compress.c (bfd_compress_section_contents): Do not define this | |
1859 | function if it is not used. | |
1860 | ||
0b0732e1 L |
1861 | 2015-03-18 H.J. Lu <[email protected]> |
1862 | ||
1863 | * compress.c (bfd_compress_section_contents): Make it static. | |
1864 | * bfd/bfd-in2.h: Regenerated. | |
1865 | ||
27aaeda0 NC |
1866 | 2015-03-18 Eric Youngdale <[email protected]> |
1867 | ||
1868 | PR ld/16598 | |
1869 | * peicode.h (pe_ILF_build_a_bfd): Add support for creating relocs | |
1870 | suitable for the AMD64. | |
1871 | ||
273a4985 JT |
1872 | 2015-03-18 Jon Turney <[email protected]> |
1873 | Nick Clifton <[email protected]> | |
1874 | ||
1875 | PR binutils/18087 | |
1876 | * coffgen.c (make_a_section_from_file): Only prepend a z to a | |
1877 | debug section's name if the section was actually compressed. | |
1878 | * elf.c (_bfd_elf_make_section_from_shdr): Likewise. | |
1879 | * compress.c (bfd_init_section_compress_status): Do not compress | |
1880 | the section if doing so would make it bigger. In such cases leave | |
1881 | the section alone and return COMPRESS_SECTION_NONE. | |
1882 | ||
c4b0b099 AM |
1883 | 2015-03-17 Alan Modra <[email protected]> |
1884 | ||
1885 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return count of 0 | |
1886 | on nothing to do, before malloc of returned symbol array. | |
1887 | ||
9c761a55 NC |
1888 | 2015-03-16 Nick Clifton <[email protected]> |
1889 | ||
1890 | * elf32-rx.c (elf32_rx_relax_delete_bytes): If the relocs are not | |
1891 | stored in the elf_section_data structure then load them as | |
1892 | necessary. | |
1893 | ||
b9005ba7 AK |
1894 | 2015-03-14 Andreas Krebbel <[email protected]> |
1895 | ||
1896 | * elf-s390-common.c (elf_s390_elf_sort_relocs_p): Don't sort | |
1897 | relocs against code sections. | |
1898 | * elf32-s390.c: Define elf_backend_sort_relocs_p. | |
1899 | * elf64-s390.c: Likewise. | |
1900 | ||
1079403c AM |
1901 | 2015-03-11 Alan Modra <[email protected]> |
1902 | ||
1903 | * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Examine stubs in | |
1904 | reverse order. Account for larger size of __tls_get_addr_opt stub. | |
1905 | ||
a5721edd JW |
1906 | 2015-03-10 Yuri Gribov <[email protected]> |
1907 | ||
1908 | PR ld/16572 | |
1909 | * elf32-arm.c (elf32_arm_final_link_relocate): Remove support for | |
1910 | ELF_ARM_HASENTRY. | |
1911 | (elf32_arm_print_private_bfd_data): Likewise. | |
1912 | ||
65164438 NC |
1913 | 2015-03-06 Nick Clifton <[email protected]> |
1914 | ||
1915 | PR binutils/17765 | |
1916 | * elflink.c (put_value): Like previous delta, but for the 32-bit | |
1917 | case. | |
1918 | ||
41cd1ad1 NC |
1919 | 2015-03-05 Nick Clifton <[email protected]> |
1920 | ||
1921 | PR binutils/17765 | |
1922 | * elflink.c (put_value): Avoid using an undefined shift | |
1923 | operation. | |
1924 | ||
ca3fe95e L |
1925 | 2015-03-05 H.J. Lu <[email protected]> |
1926 | ||
1927 | PR ld/pr15228 | |
1928 | PR ld/pr17709 | |
1929 | * elf-bfd.h (elf_backend_data): Add extern_protected_data. | |
1930 | * elf32-i386.c (elf_backend_extern_protected_data): New. | |
1931 | Defined to 1. | |
1932 | * elf64-x86-64.c (elf_backend_extern_protected_data): Likewise. | |
1933 | * elflink.c (_bfd_elf_adjust_dynamic_copy): Don't error on | |
1934 | copy relocs against protected symbols if extern_protected_data | |
1935 | is true. | |
1936 | (_bfd_elf_symbol_refs_local_p): Don't return true on protected | |
1937 | non-function symbols if extern_protected_data is true. | |
1938 | * elfxx-target.h (elf_backend_extern_protected_data): New. | |
1939 | Default to 0. | |
1940 | (elfNN_bed): Initialize extern_protected_data with | |
1941 | elf_backend_extern_protected_data. | |
1942 | ||
425bd9e1 NC |
1943 | 2015-03-05 Nick Clifton <[email protected]> |
1944 | ||
1945 | PR binutils/18025 | |
1946 | * coffgen.c (coff_find_nearest_line_with_names): If the dwarf2 | |
1947 | lookup fails, check for an address bias in the dwarf info, and if | |
1948 | one exists, retry the lookup with the biased value. | |
1949 | * dwarf2.c (_bfd_dwarf2_find_symbol_bias): New function. | |
1950 | Determines if a bias exists bewteen the addresses of functions | |
1951 | based on DWARF information vs symbol table information. | |
1952 | * libbfd-in.h (_bfd_dwarf2_find_symbol_bias): Prototype. | |
1953 | * libbfd.h: Regenerate. | |
1954 | ||
8ef229f3 MS |
1955 | 2015-03-04 Marcus Shawcroft <[email protected]> |
1956 | ||
1957 | * elfxx-aarch64.c (decode_add_imm, decode_movw_imm) | |
1958 | (decode_tst_branch_ofs_14, decode_ld_lit_ofs_19) | |
1959 | (decode_cond_branch_ofs_19, decode_branch_ofs_26): Remove. | |
1960 | ||
8e2fe09f MS |
1961 | 2015-03-04 Marcus Shawcroft <[email protected]> |
1962 | ||
1963 | * elfnn-aarch64.c (aarch64_build_one_stub): Call abort. | |
1964 | (aarch64_size_one_stub): Likewise. | |
1965 | (aarch64_map_one_stub): Likewise. | |
1966 | ||
df88b702 AA |
1967 | 2015-03-04 Andreas Arnez <[email protected]> |
1968 | ||
1969 | * cpu-s390.c (N): New macro. | |
1970 | (bfd_s390_31_arch): New. Define only if default target word size | |
1971 | is 64 bits. Otherwise define... | |
1972 | (bfd_390_64_arch): ...this. Make static. | |
1973 | (bfd_s390_arch): Define according to the default target word size. | |
1974 | Let the 'next' field point to the alternate arch. | |
1975 | ||
e09ab7ac RS |
1976 | 2015-03-04 Richard Sandiford <[email protected]> |
1977 | ||
1978 | PR gas/17843 | |
1979 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Expect | |
1980 | R_AARCH64_TLSLE_MOVW_TPREL_G0_NC and R_AARCH64_TLSLE_MOVW_TPREL_G1_NC | |
1981 | to be used with MOVK rather than MOVZ. | |
1982 | ||
71eef2bd DD |
1983 | 2015-03-03 DJ Delorie <[email protected]> |
1984 | ||
1985 | * elf32-rl78.c (rl78_elf_relax_section): Only relax ADDR16's if | |
1986 | there's a symbol. | |
1987 | ||
f01f1741 AM |
1988 | 2015-02-28 Alan Modra <[email protected]> |
1989 | ||
1990 | * elf32-ppc.c (ppc_elf_tls_setup): Set no_tls_get_addr_opt if | |
1991 | not PLT_NEW. | |
1992 | ||
c1d11331 L |
1993 | 2015-02-27 H.J. Lu <[email protected]> |
1994 | ||
1995 | * elf32-i386.c (need_convert_mov_to_lea): New. | |
1996 | (elf_i386_check_relocs): Set need_convert_mov_to_lea if needed. | |
1997 | (elf_i386_convert_mov_to_lea): Return TRUE if | |
1998 | need_convert_mov_to_lea is unset. | |
1999 | * elf64-x86-64.c (need_convert_mov_to_lea): New. | |
2000 | (elf_x86_64_check_relocs): Set need_convert_mov_to_lea if needed. | |
2001 | (elf_x86_64_convert_mov_to_lea): Return TRUE if | |
2002 | need_convert_mov_to_lea is unset. | |
2003 | ||
cdb602b1 NC |
2004 | 2015-02-27 Nick Clifton <[email protected]> |
2005 | ||
2006 | PR binutils/17910 | |
2007 | * coffgen.c (_bfd_coff_internal_syment_name): Only check for | |
2008 | string length overflow when the string table length is actually | |
2009 | set. | |
2010 | ||
96c20bc1 MS |
2011 | 2015-02-27 Marcus Shawcroft <[email protected]> |
2012 | ||
2013 | * bfd/bfd-in2.h: Regenerate. | |
2014 | * bfd/libbfd.h: Regenerate. | |
2015 | ||
1ada945d MS |
2016 | 2015-02-26 Marcus Shawcroft <[email protected]> |
2017 | ||
2018 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix | |
2019 | TLSDESC_LD_PREL19 field width and masks. | |
2020 | (aarch64_tls_transition_without_check) | |
2021 | (aarch64_reloc_got_type, elfNN_aarch64_final_link_relocate) | |
2022 | (elfNN_aarch64_tls_relax, elfNN_aarch64_relocate_section) | |
2023 | (elfNN_aarch64_gc_sweep_hook, elfNN_aarch64_check_relocs): Handle | |
2024 | BFD_RELOC_AARCH64_TLSDESC_LD_PREL19. | |
2025 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend) | |
2026 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
2027 | ||
389b8029 MS |
2028 | 2015-02-26 Marcus Shawcroft <[email protected]> |
2029 | ||
73920eed MS |
2030 | * elfnn-aarch64.c (IS_AARCH64_TLSDESC_RELOC): Reorder R_TYPE |
2031 | tests. | |
389b8029 MS |
2032 | (aarch64_tls_transition_without_check) |
2033 | (aarch64_reloc_got_type, elfNN_aarch64_final_link_relocate) | |
2034 | (elfNN_aarch64_tls_relax, elfNN_aarch64_relocate_section) | |
2035 | (elfNN_aarch64_gc_sweep_hook, elfNN_aarch64_check_relocs): Handle | |
2036 | BFD_RELOC_AARCH64_TLSDESC_ADR_PREL21. | |
2037 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend) | |
2038 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
2039 | * reloc.c (BFD_RELOC_AARCH64_TLSGD_ADR_PREL21): Define. | |
2040 | ||
3c12b054 MS |
2041 | 2015-02-26 Marcus Shawcroft <[email protected]> |
2042 | ||
2043 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC) | |
2044 | (elfNN_aarch64_howto_table, aarch64_tls_transition_without_check) | |
2045 | (aarch64_reloc_got_type, elfNN_aarch64_final_link_relocate) | |
2046 | (elfNN_aarch64_tls_relax, elfNN_aarch64_relocate_section) | |
2047 | (elfNN_aarch64_gc_sweep_hook, elfNN_aarch64_check_relocs): Handle | |
2048 | BFD_RELOC_AARCH64_TLSGD_ADR_PREL21. | |
2049 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend) | |
2050 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
2051 | * reloc.c (BFD_RELOC_AARCH64_TLSGD_ADR_PREL21): Define. | |
2052 | ||
043bf05a MS |
2053 | 2015-02-26 Marcus Shawcroft <[email protected]> |
2054 | ||
2055 | * elfnn-aarch64.c: (TLSIE_LD_GOTTREL_PREL19): Fix HOWTO bit field width. | |
2056 | (aarch64_tls_transition_without_check, aarch64_reloc_got_type) | |
2057 | (elfNN_aarch64_final_link_relocate, elfNN_aarch64_tls_relax) | |
2058 | (elfNN_aarch64_relocate_section, elfNN_aarch64_gc_sweep_hook) | |
2059 | (elfNN_aarch64_check_relocs): Handle | |
2060 | BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19. | |
2061 | ||
2062 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend) | |
2063 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
2064 | ||
7366006f MS |
2065 | 2015-02-26 Marcus Shawcroft <[email protected]> |
2066 | ||
2067 | * elfnn-aarch64.c: (TLSDESC_CALL): Fix HOWTO bit field width. | |
2068 | ||
07875fbc MS |
2069 | 2015-02-26 Marcus Shawcroft <[email protected]> |
2070 | ||
2071 | * elfnn-aarch64.c (TLSLE_MOVW_TPREL_G2) | |
2072 | (TLSLE_MOVW_TPREL_G1, TLSLE_MOVW_TPREL_G1_NC) | |
2073 | (TLSLE_MOVW_TPREL_G0, TLSLE_MOVW_TPREL_G0_NC): Fix bit field | |
2074 | width. | |
2075 | ||
49d8f92c MS |
2076 | 2015-02-26 Marcus Shawcroft <[email protected]> |
2077 | ||
2078 | * elfnn-aarch64.c: (TLSIE_MOVW_GOTTPREL_G0_NC): Fix HOWTO bit | |
2079 | field width. | |
2080 | ||
c86934ce NC |
2081 | 2015-02-26 Nick Clifton <[email protected]> |
2082 | ||
2083 | PR binutils/17512 | |
2084 | * coffcode.h (coff_compute_section_file_positions): Report | |
2085 | negative page sizes. | |
2086 | * elf.c (elf_fake_sections): Handle excessive alignmment powers. | |
2087 | (assign_file_positions_for_non_load_sections): Replace assertion | |
2088 | with an error message. | |
2089 | (rewrite_elf_program_header): Handle excessive segment | |
2090 | alignments. | |
2091 | * mach-o.c (bfd_mach_o_read_section_32): Likewise. | |
2092 | (bfd_mach_o_read_section_64): Likewise. | |
2093 | * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Use %B to | |
2094 | print a bfd name, not %A. | |
2095 | ||
bd4d2eaa AM |
2096 | 2015-02-26 Alan Modra <[email protected]> |
2097 | ||
2098 | * elf64-ppc.c (plt_stub_size, build_plt_stub): Don't build | |
2099 | thread-safe stubs for iplt. | |
2100 | (build_tls_get_addr_stub): Restore r2 immediately after call. | |
2101 | ||
99654aaf TG |
2102 | 2015-02-26 Terry Guo <[email protected]> |
2103 | ||
2104 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Update how we | |
2105 | merge Tag_ABI_HardFP_use. | |
2106 | ||
a127494f AM |
2107 | 2015-02-26 Alan Modra <[email protected]> |
2108 | ||
2109 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Heed -z nocopyreloc. | |
2110 | Use text relocs rather than giving an error on trying to use | |
2111 | .dynbss for protected shared lib vars. | |
2112 | * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise. | |
2113 | ||
bac13f5a AB |
2114 | 2015-02-25 Andrew Burgess <[email protected]> |
2115 | ||
2116 | * elf32-avr.c (struct elf_avr_section_data): New structure. | |
2117 | (struct avr_relax_info): New structure. | |
2118 | (elf_avr_new_section_hook): New function. | |
2119 | (struct elf_avr_section_data): Add relax_info. | |
2120 | (get_avr_relax_info): New function. | |
2121 | (init_avr_relax_info): New function. | |
2122 | (elf32_avr_relax_delete_bytes): Find next property record before | |
2123 | deleting bytes. When deleting don't move bytes beyond the next | |
2124 | property record. | |
2125 | (avr_elf32_assign_records_to_section): New function. | |
2126 | (avr_property_record_compare): New function. | |
2127 | (avr_load_all_property_sections): New function. | |
2128 | (elf32_avr_relax_section): Load property data. After relaxing the | |
2129 | section, move any .align directives that have enough deleted bytes | |
2130 | before them. | |
2131 | (bfd_elf32_new_section_hook): Define. | |
2132 | ||
137c83d6 AB |
2133 | 2015-02-25 Andrew Burgess <[email protected]> |
2134 | ||
2135 | * elf32-avr.h (struct avr_property_header): New strucure. | |
2136 | (avr_elf32_load_property_records): Declare. | |
2137 | (avr_elf32_property_record_name): Declare. | |
2138 | * elf32-avr.c: Add bfd_stdint.h include. | |
2139 | (retrieve_local_syms): New function. | |
2140 | (get_elf_r_symndx_section): New function. | |
2141 | (get_elf_r_symndx_offset): New function. | |
2142 | (internal_reloc_compare): New function. | |
2143 | (struct avr_find_section_data): New structure. | |
2144 | (avr_is_section_for_address): New function. | |
2145 | (avr_find_section_for_address): New function. | |
2146 | (avr_elf32_load_records_from_section): New function. | |
2147 | (avr_elf32_load_property_records): New function. | |
2148 | (avr_elf32_property_record_name): New function. | |
2149 | ||
fdd410ac AB |
2150 | 2015-02-25 Andrew Burgess <[email protected]> |
2151 | ||
2152 | * elf32-avr.h (AVR_PROPERTY_RECORD_SECTION_NAME): Define. | |
2153 | (AVR_PROPERTY_RECORDS_VERSION): Define. | |
2154 | (AVR_PROPERTY_SECTION_HEADER_SIZE): Define. | |
2155 | (struct avr_property_record): New structure. | |
2156 | ||
685080f2 NC |
2157 | 2015-02-24 Nick Clifton <[email protected]> |
2158 | ||
2159 | * elf32-v850.c (v850_set_note): New function. Creates a Renesas | |
2160 | style note entry. | |
2161 | (v850_elf_make_note_section): New function. Creates a note | |
2162 | section. | |
2163 | (v850_elf_create_sections): New function. Create a note section | |
2164 | if one is not already present. | |
2165 | (v850_elf_set_note): New function. Adds a note to a bfd. | |
2166 | (v850_elf_copy_private_bfd_data): New function. Copies V850 | |
2167 | notes. | |
2168 | (v850_elf_merge_notes): New function. Merges V850 notes. | |
2169 | (print_v850_note): New function. Displays a V850 note. | |
2170 | (v850_elf_print_notes): New function. Displays all notes attached | |
2171 | to a bfd. | |
2172 | (v850_elf_merge_private_bfd_data): Call v850_elf_merge_notes. | |
2173 | (v850_elf_print_private_bfd_data): Call v850_elf_print_notes. | |
2174 | (v850_elf_fake_sections): Set the type of the V850 note section. | |
2175 | * bfd-in.h (v850_elf_create_sections): Add prototype. | |
2176 | (v850_elf_set_note): Add prototype. | |
2177 | * bfd-in2.h: Regenerate. | |
2178 | ||
31593e1b NC |
2179 | 2015-02-24 Nick Clifton <[email protected]> |
2180 | ||
2181 | * configure.ac (AC_CHECK_HEADERS): Add wctype.h. | |
2182 | * configure: Regenerate. | |
2183 | * config.in: Regenerate. | |
2184 | * peXXigen.c: Include wctype.h if HAVE_WCTYPE_H is defined. | |
2185 | (u16_mbtowc): Use wint_t types if HAVE_WCTYPE_H is defined. | |
2186 | (rsrc_cmp): Use towlower instead of wcsncasecmp if HAVE_WCTYPE_H | |
2187 | is defined. | |
2188 | ||
3ad797fd NC |
2189 | 2015-02-24 Nick Clifton <[email protected]> |
2190 | ||
2191 | * pdp11.c (set_section_contents): Pad the .text and .data sections | |
2192 | to their aligned sizes. | |
2193 | ||
5518c738 YS |
2194 | 2015-02-23 Yoshinori Sato <[email protected]> |
2195 | ||
2196 | * config.bfd: Add h8300-*-linux. | |
2197 | * configure.ac: Add h8300_elf32_linux_vec. | |
2198 | * configure: Regenerate. | |
2199 | * elf32-h8300.c: Likewise. | |
2200 | * targets.c(_bfd_target_vector): Likewise. | |
2201 | ||
cb967f0d NC |
2202 | 2015-02-23 Nick Clifton <[email protected]> |
2203 | ||
2204 | PR 17914 | |
2205 | * cpu-w65.c: Correct typos in license notice. | |
2206 | ||
0f8f0c57 NC |
2207 | PR 17940 |
2208 | * elf32-msp430.c (msp430_elf_relax_delete_bytes): Adjust debug | |
2209 | symbols at end of sections. Adjust function sizes. | |
2210 | ||
4ef9f41a AA |
2211 | 2015-02-20 Andreas Arnez <[email protected]> |
2212 | ||
2213 | * elf-bfd.h (elfcore_write_s390_vxrs_low): Add prototype. | |
2214 | (elfcore_write_s390_vxrs_high): Likewise. | |
2215 | * elf.c (elfcore_grok_s390_vxrs_low): New function. | |
2216 | (elfcore_grok_s390_vxrs_high): New function. | |
2217 | (elfcore_grok_note): Call them. | |
2218 | (elfcore_write_s390_vxrs_low): New function. | |
2219 | (elfcore_write_s390_vxrs_high): New function. | |
2220 | (elfcore_write_register_note): Call them. | |
2221 | ||
837914ee BD |
2222 | 2015-02-19 Branko Drevensek <[email protected]> |
2223 | ||
2224 | PR 17995 | |
2225 | * verilog.c (verilog_write_record): Correct buffer size. | |
2226 | ||
cf18fda4 AM |
2227 | 2015-02-19 Alan Modra <[email protected]> |
2228 | ||
2229 | * elflink.c (_bfd_elf_define_linkage_sym): Set 'bed' earlier. | |
2230 | ||
d983c8c5 AM |
2231 | 2015-02-19 Alan Modra <[email protected]> |
2232 | ||
2233 | PR ld/4317 | |
2234 | * elflink.c (elf_link_input_bfd): Drop undefined local syms. | |
2235 | (elf_link_output_extsym): Drop local and global undefined syms. | |
2236 | Tidy. Expand comment. | |
2237 | ||
2ec55de3 AM |
2238 | 2015-02-17 Alan Modra <[email protected]> |
2239 | ||
2240 | PR ld/17975 | |
2241 | * elflink.c (struct elf_outext_info): Remove need_second_pass | |
2242 | and second_pass. | |
2243 | (elf_link_output_extsym): Delete code handling second forced | |
2244 | local pass. Move code emitting NULL STT_FILE symbol later, so | |
2245 | that it can be omitted if forced local is stripped. Don't | |
2246 | emit the NULL STT_FILE if no file symbols have been output. | |
2247 | (bfd_elf_final_link): Remove second forced local pass. | |
2248 | * elf32-ppc.c (add_stub_sym): Set linker_def on linker syms. | |
2249 | (ppc_elf_size_dynamic_sections): Likewise. | |
2250 | * elf64-ppc.c (ppc_build_one_stub): Likewise. | |
2251 | (build_global_entry_stubs): Likewise. | |
2252 | (ppc64_elf_build_stubs): Likewise. | |
2253 | ||
6dfb72b9 L |
2254 | 2015-02-16 H.J. Lu <[email protected]> |
2255 | ||
2256 | PR ld/17975 | |
2257 | * elflink.c (elf_link_output_extsym): Only check filesym_count | |
2258 | when outputting a NULL FILE symbol. Set second_pass_sym to | |
2259 | h->forced_local && !h->root.linker_def. | |
2260 | ||
576fa883 L |
2261 | 2015-02-15 H.J. Lu <[email protected]> |
2262 | ||
2263 | * elf32-i386.c (elf_i386_always_size_sections): Set root.linker_def | |
2264 | on _TLS_MODULE_BASE_. | |
2265 | * elf64-x86-64.c (elf_x86_64_always_size_sections): Likewise. | |
2266 | ||
62f8d217 AM |
2267 | 2015-02-15 Alan Modra <[email protected]> |
2268 | ||
2269 | * dwarf2.c (read_rangelist): Correct buffer overflow check | |
2270 | Whitespace throughout file. | |
2271 | ||
ce875075 AM |
2272 | 2015-02-14 Alan Modra <[email protected]> |
2273 | ||
2274 | PR ld/17973 | |
2275 | * bfd.c (struct bfd): Add lto_output. | |
2276 | * linker.c (_bfd_handle_already_linked): Explicitly test for | |
2277 | objects added by the lto plugin. | |
2278 | * opncls.c (_bfd_new_bfd_contained_in): Copy lto_output and | |
2279 | no_export flags from archive. | |
2280 | * archive.c (open_nested_file): New function, setting lto_output | |
2281 | and no_export, extracted from.. | |
2282 | (find_nested_archive): ..here. Flip params. Rename from | |
2283 | _bfd_find_nested_archive. | |
2284 | (_bfd_get_elt_at_filepos): Correct var typo. Use open_nested_file. | |
2285 | (_bfd_look_for_bfd_in_cache): Copy no_export. | |
2286 | * elflink.c (elf_link_add_object_symbols): Remove now unnecessary | |
2287 | my_archive->no_export test. | |
2288 | (elf_link_input_bfd): Drop existing lto_output STT_FILE syms. | |
2289 | Don't use the file name when adding lto_output STT_FILE sym. | |
2290 | * bfd-in2.h: Regenerate. | |
2291 | ||
451dfd38 AM |
2292 | 2015-02-13 Alan Modra <[email protected]> |
2293 | ||
2294 | PR binutils/17512 | |
2295 | * elf64-ppc.c (opd_entry_value): Tighten offset check. Remove | |
2296 | now redundant assert. | |
2297 | ||
dbb3fbbb NC |
2298 | 2015-02-12 Nick Clifton <[email protected]> |
2299 | ||
2300 | PR binutils/17512 | |
2301 | * dwarf.c (read_1_byte, read_1_signed_byte, read_2_bytes) | |
2302 | (read_4_bytes, read_8_bytes, read_n_bytes, read_string) | |
2303 | (read_indirect_string, read_alt_indirect_string) | |
2304 | (read_alt_indirect_ref, read_address, read_abbrevs) | |
2305 | (read_attribute_value, read_attribute, decode_line_info) | |
2306 | (find_abstract_instance_name, read_rangelist) | |
2307 | (scan_unit_for_symbols, parse_comp_unit) | |
2308 | (_bfd_dwarf2_find_nearest_line): Harden DWARF reading code. Pass | |
2309 | end pointers to reading functions and check for offsets taking | |
2310 | pointers out of range. Replace calls to read_*_leb128 with calls | |
2311 | to safe_read_leb128. | |
2312 | ||
2313 | (* elf64-ppc.c (opd_entry_value): Add a check for an overlarge | |
2314 | offset. | |
2315 | * syms.c (_bfd_stab_section_find_nearest_line): Add checks for | |
2316 | computed file_name address being before the start of the string | |
2317 | table. | |
2318 | ||
b9dc5a87 L |
2319 | 2015-02-11 H.J. Lu <[email protected]> |
2320 | ||
2321 | PR ld/17878 | |
2322 | * bfd.c (bfd_plugin_format): New. | |
2323 | (bfd): Add plugin_format and plugin_dummy_bfd. | |
2324 | * plugin.c (try_load_plugin): Take a pointer to bfd_boolean | |
2325 | argument to return TRUE if any plugin is found. Set plugin_format. | |
2326 | (has_plugin): New. | |
2327 | (bfd_plugin_target_p): New. | |
2328 | (bfd_plugin_specified_p): Likewise. | |
2329 | (bfd_plugin_target_p): Likewise. | |
2330 | (register_ld_plugin_object_p): Likewise. | |
2331 | (bfd_plugin_set_plugin): Set has_plugin. | |
2332 | (load_plugin): Cache try_load_plugin result. | |
2333 | (bfd_plugin_object_p): Try ld_plugin_object_p first. Check | |
2334 | plugin_format. | |
2335 | * plugin.h (bfd_plugin_target_p): New. | |
2336 | (bfd_plugin_specified_p): Likewise. | |
2337 | (register_ld_plugin_object_p): Likewise. | |
2338 | * bfd-in2.h: Regenerated. | |
2339 | ||
55172d69 PA |
2340 | 2015-02-11 Pedro Alves <[email protected]> |
2341 | ||
2342 | * libbfd-in.h [__cplusplus]: Open extern "C" scope. | |
2343 | * libcoff-in.h [__cplusplus]: Open extern "C" scope. | |
2344 | * libbfd.h: Regenerate. | |
2345 | * libcoff.h: Regenerate. | |
2346 | ||
2347 | * elf-bfd.h [__cplusplus]: Wrap in extern "C". | |
2348 | * mach-o.h [__cplusplus]: Wrap in extern "C". | |
2349 | * som.h [__cplusplus]: Wrap in extern "C". | |
2350 | ||
77ef8654 NC |
2351 | 2015-02-10 Nick Clifton <[email protected]> |
2352 | ||
2353 | PR binutils/17512 | |
2354 | * coffcode.h (styp_to_sec_flags): Use an unsigned long type to | |
2355 | hold the flag bits. | |
2356 | * peXXigen.c (pe_print_reloc): Use unsigned types to hold the | |
2357 | size and number of relocs. | |
2358 | (pe_print_debugdata): Use a 32-bit aligned buffer to store the | |
2359 | codeview record. | |
2360 | * versados.c (process_otr): Check the esdid value before using it | |
2361 | to access the EDATA. | |
2362 | ||
35181b3e EM |
2363 | 2015-02-09 Ed Maste <[email protected]> |
2364 | ||
2365 | * elf32-i386.c (elf_i386_get_plt_sym_val): Avoid incrementing | |
2366 | uninitialized and unused variable. | |
2367 | * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise. | |
2368 | ||
989f9879 AM |
2369 | 2015-02-09 Alan Modra <[email protected]> |
2370 | ||
2371 | * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault on NULL | |
2372 | tls_sec. | |
2373 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. | |
2374 | * elflink.c (elf_link_output_extsym): Don't assert on NULL tls_sec. | |
2375 | ||
ca4be51c AM |
2376 | 2015-02-09 Alan Modra <[email protected]> |
2377 | ||
2378 | * elflink.c: Whitespace, formatting fixes. | |
2379 | (elf_link_input_bfd): Clarify comment. | |
2380 | (elf_link_output_extsym): Exclude symbols in linker created | |
2381 | sections when testing for plugin symbols. | |
2382 | ||
1952c5cd L |
2383 | 2015-02-07 H.J. Lu <[email protected]> |
2384 | ||
2385 | PR ld/17935 | |
2386 | * elf32-i386.c (elf_i386_readonly_dynrelocs): Also issue a | |
2387 | warning for relocation in readonly section for -z text. | |
2388 | (elf_i386_size_dynamic_sections): Likewise. | |
2389 | * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise. | |
2390 | (elf_x86_64_size_dynamic_sections): Likewise. | |
2391 | ||
9e2dec47 L |
2392 | 2015-02-06 H.J. Lu <[email protected]> |
2393 | ||
2394 | PR ld/12365 | |
2395 | PR ld/14272 | |
2396 | * elflink.c (_bfd_elf_fix_symbol_flags): Revert the last change. | |
2397 | (elf_link_input_bfd): Mark the plugin symbol undefined if it is | |
2398 | referenced from a non-IR file. | |
2399 | ||
5929c344 NC |
2400 | 2015-02-06 Nick Clifton <[email protected]> |
2401 | ||
2402 | PR binutils/17512 | |
2403 | * peXXigen.c (rsrc_print_resource_entries): Add range check for | |
2404 | addresses that wrap around the address space. | |
2405 | (rsrc_parse_entry): Likewise. | |
2406 | ||
60f79275 L |
2407 | 2015-02-03 H.J. Lu <[email protected]> |
2408 | ||
2409 | PR ld/12365 | |
2410 | PR ld/14272 | |
2411 | * elflink.c (_bfd_elf_fix_symbol_flags): Mark the plugin symbol | |
2412 | undefined if it is referenced from a non-IR file. | |
2413 | ||
64d29018 NC |
2414 | 2015-02-03 Nick Clifton <[email protected]> |
2415 | ||
2416 | PR binutils/17512 | |
2417 | * ecoff.c: Use bfd_alloc2 to allocate space for structure arrays. | |
2418 | (_bfd_ecoff_slurp_symbol_table): Check for a negative symbol | |
2419 | index or an out of range fdr index. | |
2420 | * elf-m10300.c (mn10300_info_to_howto): Fix typo in error message. | |
2421 | * elf32-arc.c (arc_info_to_howto_rel): Likewise. | |
2422 | * elf32-avr.c (avr_info_to_howto_rela): Likewise. | |
2423 | * elf32-cr16.c (elf_cr16_info_to_howto): Likewise. | |
2424 | * elf32-cr16c.c (elf_cr16c_info_to_howto_rel): Likewise. | |
2425 | * elf32-cris.c (cris_info_to_howto_rela): Likewise. | |
2426 | * elf32-crx.c (elf_crx_info_to_howto): Likewise. | |
2427 | * elf32-d10v.c (d10v_info_to_howto_rel): Likewise. | |
2428 | * elf32-d30v.c (d30v_info_to_howto_rel): Likewise. | |
2429 | * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise. | |
2430 | * elf32-fr30.c (fr30_info_to_howto_rela): Likewise. | |
2431 | * elf32-frv.c (frv_info_to_howto_rela): Likewise. | |
2432 | * elf32-i370.c (i370_elf_info_to_howto): Likewise. | |
2433 | * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise. | |
2434 | * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise. | |
2435 | * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise. | |
2436 | * elf32-lm32.c (lm32_info_to_howto_rela): Likewise. | |
2437 | * elf32-m32c.c (m32c_info_to_howto_rela): Likewise. | |
2438 | * elf32-m32r.c (m32r_info_to_howto_rel): Likewise. | |
2439 | * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise. | |
2440 | * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise. | |
2441 | * elf32-mcore.c (mcore_elf_info_to_howto): Likewise. | |
2442 | * elf32-mep.c (mep_info_to_howto_rela): Likewise. | |
2443 | * elf32-metag.c (metag_info_to_howto_rela): Likewise. | |
2444 | * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise. | |
2445 | * elf32-moxie.c (moxie_info_to_howto_rela): Likewise. | |
2446 | * elf32-msp430.c (msp430_info_to_howto_rela): Likewise. | |
2447 | * elf32-mt.c (mt_info_to_howto_rela): Likewise. | |
2448 | * elf32-nds32.c (nds32_info_to_howto_rel): Likewise. | |
2449 | * elf32-or1k.c (or1k_info_to_howto_rela): Likewise. | |
2450 | * elf32-pj.c (pj_elf_info_to_howto): Likewise. | |
2451 | * elf32-ppc.c (ppc_elf_info_to_howto): Likewise. | |
2452 | * elf32-rl78.c (rl78_info_to_howto_rela): Likewise. | |
2453 | * elf32-rx.c (rx_info_to_howto_rela): Likewise. | |
2454 | * elf32-sh.c (sh_elf_info_to_howto): Likewise. | |
2455 | * elf32-spu.c (spu_elf_info_to_howto): Likewise. | |
2456 | * elf32-v850.c (v850_elf_perform_relocation): Likewise. | |
2457 | * elf32-vax.c (rtype_to_howto): Likewise. | |
2458 | * elf32-visium.c (visium_info_to_howto_rela): Likewise. | |
2459 | * elf32-xgate.c (xgate_info_to_howto_rel): Likewise. | |
2460 | * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise. | |
2461 | * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise. | |
2462 | * elf64-mmix.c (mmix_info_to_howto_rela): Likewise. | |
2463 | * mach-o.c: Use bfd_alloc2 to allocate space for structure arrays. | |
2464 | (bfd_mach_o_canonicalize_one_reloc): Fix check on out | |
2465 | of range symbol indicies. | |
2466 | (bfd_mach_o_canonicalize_relocs): Check for out of range alloc. | |
2467 | (bfd_mach_o_canonicalize_dynamic_reloc): Likewise. | |
2468 | (bfd_mach_o_build_dysymtab): Likewise. | |
2469 | (bfd_mach_o_write_symtab_content): Set the string table size to | |
2470 | zero upon error. | |
2471 | (bfd_mach_o_read_symtab_symbols): Reset the nsyms value if the | |
2472 | read fails. | |
2473 | * peXXigen.c (pe_print_edata): Check for numeric overflow in edt | |
2474 | fields. | |
2475 | * tekhex.c (first_phase): Check for src pointer reaching end of | |
2476 | buffer. | |
2477 | ||
3a635617 WN |
2478 | 2015-02-03 Will Newton <[email protected]> |
2479 | ||
46b87d49 WN |
2480 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): |
2481 | Set st_value to zero for undefined symbols if the reference | |
2482 | is weak or pointer_equality_needed is FALSE. | |
2483 | ||
3a635617 WN |
2484 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Improve |
2485 | comment discussing why we clear st_value for some symbols. | |
2486 | ||
0c4bd9d9 KLC |
2487 | 2015-02-02 Kuan-Lin Chen <[email protected]> |
2488 | ||
2489 | * elf32-nds32.c (nds32_get_section_contents): Add one more argument. | |
2490 | (nds32_elf_relocate_section): Do not relocate R_NDS32_LONGJUMP7. | |
2491 | ||
b86ac8e3 AM |
2492 | 2015-01-29 Alan Modra <[email protected]> |
2493 | ||
2494 | * elf64-ppc.c (ppc64_elf_relocate_section): Correct GOT_TLSLD | |
2495 | optimization. Tidy mask for GOT_TLSGD optimization. | |
2496 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. Correct | |
2497 | location of nop zapping high insn too. | |
2498 | ||
dbd1e97e AM |
2499 | 2015-01-28 Alan Modra <[email protected]> |
2500 | ||
2501 | * elf64-ppc.h (struct ppc64_elf_params): Add "object_in_toc". | |
2502 | * elf64-ppc.c (ppc64_elf_add_symbol_hook): Assume that global symbols | |
2503 | in .toc indicate xlc compiled code that might require a rw .toc. | |
2504 | ||
3f8107ab AM |
2505 | 2015-01-28 James Bowman <[email protected]> |
2506 | ||
2507 | * Makefile.am: Add FT32 files. | |
2508 | * archures.c (enum bfd_architecture): Add bfd_arch_ft32. | |
2509 | (bfd_mach_ft32): Define. | |
2510 | (bfd_ft32_arch): Declare. | |
2511 | (bfd_archures_list): Add bfd_ft32_arch. | |
2512 | * config.bfd: Handle FT32. | |
2513 | * configure.ac: Likewise. | |
2514 | * cpu-ft32.c: New file. | |
2515 | * elf32-ft32.c: New file. | |
2516 | * reloc.c (BFD_RELOC_FT32_10, BFD_RELOC_FT32_20, BFD_RELOC_FT32_17, | |
2517 | BFD_RELOC_FT32_18): Define. | |
2518 | * targets.c (_bfd_target_vector): Add ft32_elf32_vec. | |
2519 | * bfd-in2.h: Regenerate. | |
2520 | * libbfd.h: Regenerate. | |
2521 | * Makefile.in: Regenerate. | |
2522 | * configure: Regenerate. | |
2523 | * po/SRC-POTFILES.in: Regenerate. | |
2524 | ||
37e3922e NC |
2525 | 2015-01-27 Nick Clifton <[email protected]> |
2526 | ||
2527 | PR binutils/17512 | |
2528 | * pdp11.c (aout_get_external_symbols): Return false if there are | |
2529 | no symbols. | |
2530 | ||
877a8638 NC |
2531 | * dwarf2.c (concat_filename): Check for an empty directory table. |
2532 | (scan_unit_for_symbols): Check for reading off the end of the | |
2533 | unit. | |
2534 | (parse_comp_unit): Check for a DW_AT_comp_dir attribute with a | |
2535 | non-string form. | |
2536 | * elf64-ppc.c (opd_entry_value): Fail if there are no relocs | |
2537 | available. | |
2538 | ||
18393a2e KLC |
2539 | 2015-01-26 Kuan-Lin Chen <[email protected]> |
2540 | ||
2541 | * elf32-nds32.c (nds32_elf_pick_relax): Fix again setting. | |
2542 | ||
055173ca DD |
2543 | 2015-01-22 DJ Delorie <[email protected]> |
2544 | ||
2545 | * elf32-m32c.c (m32c_apply_reloc_24): New. | |
2546 | (m32c_elf_howto_table): Use it for R_M32C_24. | |
2547 | (m32c_elf_relocate_section): Handle R_M32C_24 specially. | |
2548 | ||
4e5cb37e NC |
2549 | 2015-01-22 Nick Clifton <[email protected]> |
2550 | ||
2551 | PR binutils/17512 | |
2552 | * coffcode.h (handle_COMDAT): When searching for the section | |
2553 | symbol, make sure that there is space left in the symbol table. | |
2554 | * vms-alpha.c (_bfd_vms_slurp_ehdr): Add range checks. | |
2555 | ||
86eafac0 NC |
2556 | 2015-01-21 Nick Clifton <[email protected]> |
2557 | ||
2558 | PR binutils/17512 | |
2559 | * coffcode.h (coff_set_arch_mach_hook): Check return value from | |
2560 | bfd_malloc. | |
2561 | (coff_slurp_line_table): Return FALSE if the line number | |
2562 | information was corrupt. | |
2563 | (coff_slurp_symbol_table): Return FALSE if the symbol information | |
2564 | was corrupt. | |
2565 | * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Always | |
2566 | initialise the fields of the dyld_info structure. | |
2567 | (bfd_mach_o_build_exec_seg_command): Replace assertion with an | |
2568 | error message and a return value. | |
2569 | (bfd_mach_o_layout_commands): Change the function to boolean. | |
2570 | Return FALSE if the function fails. | |
2571 | (bfd_mach_o_build_commands): Fail if bfd_mach_o_layout_commands | |
2572 | fails. | |
2573 | (bfd_mach_o_read_command): Fail if an unrecognised command is | |
2574 | encountered. | |
2575 | * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Set bfd_error if the | |
2576 | read fails. | |
2577 | (slurp_symtab): Check the return from bfd_malloc. | |
2578 | (_bfd_XX_bfd_copy_private_bfd_data_common): Fail if the copy | |
2579 | encountered an error. | |
2580 | (_bfd_XXi_final_link_postscript): Fail if a section could not be | |
2581 | copied. | |
2582 | * peicode.h (pe_bfd_object_p): Fail if the header could not be | |
2583 | swapped in. | |
2584 | * tekhex.c (first_phase): Fail if the section is too big. | |
2585 | * versados.c (struct esdid): Add content_size field. | |
2586 | (process_otr): Use and check the new field. | |
2587 | (versados_get_section_contents): Check that the section exists and | |
2588 | that the requested data is available. | |
2589 | ||
03d5b773 CLT |
2590 | 2015-01-20 Chung-Lin Tang <[email protected]> |
2591 | ||
2592 | * elf32-nios2.c (elf_backend_default_execstack): Define as 0. | |
2593 | ||
1c9177d9 AM |
2594 | 2015-01-20 Alan Modra <[email protected]> |
2595 | ||
2596 | PR ld/17615 | |
2597 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Don't drop | |
2598 | ELF_COMMON_DEF syms. | |
2599 | ||
c4621b33 AM |
2600 | 2015-01-19 Alan Modra <[email protected]> |
2601 | ||
3e2aa5bb | 2602 | PR ld/17615 |
c4621b33 AM |
2603 | * elf-bfd.h (ELF_COMMON_DEF_P): Note that this might be true for |
2604 | linker script assignments too. | |
2605 | * elflink.c (elf_gc_sweep_symbol): Don't drop ELF_COMMON_DEF syms. | |
2606 | (bfd_elf_gc_mark_dynamic_ref_symbol): Similarly. | |
2607 | ||
0ba38529 AM |
2608 | 2015-01-19 Alan Modra <[email protected]> |
2609 | ||
2610 | * elf32-bfin.c (bfin_bfd_reloc_type_lookup): Correct loop iteration | |
2611 | to allow return of first howto. | |
2612 | * elf32-fr30.c (fr30_reloc_type_lookup): Likewise. | |
2613 | * elf32-m32c.c (m32c_reloc_type_lookup): Likewise. | |
2614 | * elf32-moxie.c (moxie_reloc_type_lookup): Likewise. | |
2615 | * elf32-or1k.c (or1k_reloc_type_lookup): Likewise. | |
2616 | * elf32-rl78.c (rl78_reloc_type_lookup): Likewise. | |
2617 | * elf32-rx.c (rx_reloc_type_lookup): Likewise. | |
2618 | * elf32-tilepro.c (tilepro_reloc_type_lookup): Likewise. | |
2619 | * elf32-xstormy16.c (xstormy16_reloc_type_lookup): Likewise. | |
2620 | * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise. | |
2621 | * elf32-nios2.c (nios2_reloc_map): Add mapping for R_NIOS2_NONE. | |
2622 | * elf32-spu.c (spu_elf_bfd_to_reloc_type): Allow return of R_SPU_NONE. | |
2623 | (spu_elf_reloc_type_lookup): Adjust to suit. | |
2624 | ||
6346d5ca AM |
2625 | 2015-01-19 Alan Modra <[email protected]> |
2626 | ||
2627 | * bfd-in.h (bfd_get_section_limit_octets): New define, extracted from.. | |
2628 | (bfd_get_section_limit): ..here. | |
2629 | * reloc.c (bfd_perform_relocation): Correct bfd_reloc_outofrange check. | |
2630 | (bfd_install_relocation, _bfd_final_link_relocate): Add same check here. | |
2631 | * elf32-sh.c (sh_elf_reloc): Correct bfd_reloc_outofrange check. | |
2632 | * elf32-ppc.c (ppc_elf_addr16_ha_reloc): Remove duplicated | |
2633 | bfd_reloc_outofrange check. | |
2634 | * bfd-in2.h: Regenerate. | |
2635 | ||
2636 | * cpu-ns32k.c (_bfd_do_ns32k_reloc_contents): Return bfd_reloc_ok | |
2637 | on zero size relocs. | |
2638 | * ecoff.c (ecoff_reloc_link_order): Likewise. | |
2639 | * elf32-nds32.c (nds32_relocate_contents): Likewise. | |
2640 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
2641 | ||
2642 | * reloc.c (_bfd_relocate_contents): Don't bomb on zero size relocs. | |
2643 | (_bfd_clear_contents): Likewise. | |
2644 | * elfxx-mips.c (mips_elf_obtain_contents): Likewise. | |
2645 | (mips_elf_perform_relocation): Likewise. | |
2646 | ||
2647 | * aoutx.h (aout_link_reloc_link_order): Allow for NULL return | |
2648 | from malloc on zero size alloc. | |
2649 | * cofflink.c (_bfd_coff_reloc_link_order): Likewise. | |
2650 | * elflink.c (elf_reloc_link_order): Likewise. | |
2651 | * linker.c (_bfd_generic_reloc_link_order): Likewise. | |
2652 | * pdp11.c (aout_link_reloc_link_order): Likewise. | |
2653 | * xcofflink.c (xcoff_reloc_link_order): Likewise. | |
2654 | ||
2655 | * aoutx.h (howto_table_ext): Ensure NONE relocs have size 3, | |
2656 | bitsize 0, and complain_overflow_dont. | |
2657 | * coff-sparc.c (coff_sparc_howto_table): Likewise. | |
2658 | * elf-hppa.h (elf_hppa_howto_table): Likewise. | |
2659 | * elf-m10200.c (elf_mn10200_howto_table): Likewise. | |
2660 | * elf-m10300.c (elf_mn10300_howto_table): Likewise. | |
2661 | * elf32-arc.c (elf_arc_howto_table): Likewise. | |
2662 | * elf32-arm.c (elf32_arm_howto_table_1): Likewise. | |
2663 | * elf32-avr.c (elf_avr_howto_table): Likewise. | |
2664 | * elf32-bfin.c (bfin_howto_table): Likewise. | |
2665 | * elf32-cr16.c (cr16_elf_howto_table): Likewise. | |
2666 | * elf32-cris.c (cris_elf_howto_table): Likewise. | |
2667 | * elf32-crx.c (crx_elf_howto_table): Likewise. | |
2668 | * elf32-d10v.c (elf_d10v_howto_table): Likewise. | |
2669 | * elf32-d30v.c (elf_d30v_howto_table): Likewise. | |
2670 | * elf32-dlx.c (dlx_elf_howto_table): Likewise. | |
2671 | * elf32-epiphany.c (epiphany_elf_howto_table): Likewise. | |
2672 | * elf32-fr30.c (fr30_elf_howto_table): Likewise. | |
2673 | * elf32-frv.c (elf32_frv_howto_table): Likewise. | |
2674 | * elf32-h8300.c (h8_elf_howto_table): Likewise. | |
2675 | * elf32-i370.c (i370_elf_howto_raw): Likewise. | |
2676 | * elf32-i386.c (elf_howto_table): Likewise. | |
2677 | * elf32-i860.c (elf32_i860_howto_table): Likewise. | |
2678 | * elf32-i960.c (elf32_i960_relocate): Likewise. | |
2679 | * elf32-ip2k.c (ip2k_elf_howto_table): Likewise. | |
2680 | * elf32-iq2000.c (iq2000_elf_howto_table): Likewise. | |
2681 | * elf32-lm32.c (lm32_elf_howto_table): Likewise. | |
2682 | * elf32-m32c.c (m32c_elf_howto_table): Likewise. | |
2683 | * elf32-m32r.c (m32r_elf_howto_table): Likewise. | |
2684 | * elf32-m68hc11.c (elf_m68hc11_howto_table): Likewise. | |
2685 | * elf32-m68hc12.c (elf_m68hc11_howto_table): Likewise. | |
2686 | * elf32-m68k.c (howto_table): Likewise. | |
2687 | * elf32-mcore.c (mcore_elf_howto_raw): Likewise. | |
2688 | * elf32-mep.c (mep_elf_howto_table): Likewise. | |
2689 | * elf32-metag.c (elf_metag_howto_table): Likewise. | |
2690 | * elf32-microblaze.c (microblaze_elf_howto_raw): Likewise. | |
2691 | * elf32-mips.c (elf_mips_howto_table_rel): Likewise. | |
2692 | * elf32-moxie.c (moxie_elf_howto_table): Likewise. | |
2693 | * elf32-msp430.c (elf_msp430_howto_table): Likewise. | |
2694 | * elf32-mt.c (mt_elf_howto_table): Likewise. | |
2695 | * elf32-nds32.c (nds32_elf_howto_table): Likewise. | |
2696 | * elf32-nios2.c (elf_nios2_howto_table_rel): Likewise. | |
2697 | * elf32-or1k.c (or1k_elf_howto_table): Likewise. | |
2698 | * elf32-pj.c (pj_elf_howto_table): Likewise. | |
2699 | * elf32-ppc.c (ppc_elf_howto_raw): Likewise. | |
2700 | * elf32-rl78.c (rl78_elf_howto_table): Likewise. | |
2701 | * elf32-rx.c (rx_elf_howto_table): Likewise. | |
2702 | * elf32-s390.c (elf_howto_table): Likewise. | |
2703 | * elf32-score.c (elf32_score_howto_table): Likewise. | |
2704 | * elf32-score7.c (elf32_score_howto_table): Likewise. | |
2705 | * elf32-sh-relocs.h (R_SH_NONE): Likewise. | |
2706 | * elf32-spu.c (elf_howto_table): Likewise. | |
2707 | * elf32-tic6x.c (elf32_tic6x_howto_table): Likewise. | |
2708 | * elf32-tilepro.c (tilepro_elf_howto_table): Likewise. | |
2709 | * elf32-v850.c (v850_elf_howto_table): Likewise. | |
2710 | * elf32-vax.c (howto_table): Likewise. | |
2711 | * elf32-visium.c (visium_elf_howto_table): Likewise. | |
2712 | * elf32-xc16x.c (xc16x_elf_howto_table): Likewise. | |
2713 | * elf32-xgate.c (elf_xgate_howto_table): Likewise. | |
2714 | * elf32-xstormy16.c (xstormy16_elf_howto_table): Likewise. | |
2715 | * elf32-xtensa.c (elf_howto_table): Likewise. | |
2716 | * elf64-alpha.c (elf64_alpha_howto_table): Likewise. | |
2717 | * elf64-mips.c (mips_elf64_howto_table_rel): Likewise. | |
2718 | * elf64-mmix.c (elf_mmix_howto_table): Likewise. | |
2719 | * elf64-ppc.c (ppc64_elf_howto_raw): Likewise. | |
2720 | * elf64-s390.c (elf_howto_table): Likewise. | |
2721 | * elf64-sh64.c (sh_elf64_howto_table): Likewise. | |
2722 | * elf64-x86-64.c (x86_64_elf_howto_table): Likewise. | |
2723 | * elfn32-mips.c (elf_mips_howto_table_rel): Likewise. | |
2724 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Likewise. | |
2725 | (elfNN_aarch64_howto_none): Likewise. | |
2726 | * elfxx-ia64.c (ia64_howto_table): Likewise. | |
2727 | * elfxx-sparc.c (_bfd_sparc_elf_howto_table): Likewise. | |
2728 | * elfxx-tilegx.c (tilegx_elf_howto_table): Likewise. | |
2729 | * nlm32-sparc.c (nlm32_sparc_howto_table): Likewise. | |
2730 | ||
6333bc0d L |
2731 | 2015-01-15 H.J. Lu <[email protected]> |
2732 | ||
2733 | PR ld/17847 | |
2734 | * elf64-x86-64.c (elf_x86_64_relocate_section): Don't complain | |
2735 | about -fPIC if the symbol is undefined when building executable. | |
2736 | ||
cd21f5da NC |
2737 | 2015-01-15 Nick Clifton <[email protected]> |
2738 | ||
2739 | PR binutils/17512 | |
2740 | * elf-m10300.c (mn10300_info_to_howto): Replace assertion with an | |
2741 | error message. Never return an invalid howto pointer. | |
2742 | * elf32-cr16.c (cr16_info_to_howto): Likewise. | |
2743 | * elf32-crx.c (elf_crx_info_to_howto): Likewise. | |
2744 | * elf32-i370.c (i370_elf_info_to_howto): Likewise. | |
2745 | * elf32-mcore.c (mcore_elf_info_to_howto): Likewise. | |
2746 | * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise. | |
2747 | * elf32-mips.c (mips_elf32_rtype_to_howto): Likewise. | |
2748 | * elf32-pj.c (pj_elf_info_to_howto): Likewise. | |
2749 | * elf32-ppc.c (ppc_elf_info_to_howto): Likewise. | |
2750 | * elf32-spu.c (spu_elf_info_to_howto): Likewise. | |
2751 | * elf32-v850.c (v850_elf_info_to_howto_rela): Likewise. | |
2752 | * elf32-vax.c (rtype_to_howto): Likewise. | |
2753 | * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise. | |
2754 | * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise. | |
2755 | * elfn32-mips.c (sh_elf_info_to_howto): Likewise. | |
2756 | * elf32-sh.c (sh_elf_info_to_howto): Likewise. | |
2757 | (sh_elf_reloc): Check that the reloc is in range. | |
2758 | * reloc.c (bfd_perform_relocation): Check that the section is big | |
2759 | enough for the entire reloc. | |
2760 | (bfd_generic_get_relocated_section_contents): Report unexpected | |
2761 | return values from perform_reloc. | |
2762 | ||
2d071cfc NC |
2763 | 2015-01-15 Nick Clifton <[email protected]> |
2764 | ||
2765 | * elf32-msp430.c (msp430_elf_relax_section): Skip unhandled | |
2766 | relocs. Include PC-relative adjustment for R_MSP430X_ABS16 | |
2767 | relaxation. | |
2768 | ||
ca55926c AM |
2769 | 2015-01-15 Alan Modra <[email protected]> |
2770 | ||
2771 | * elflink.c (_bfd_elf_link_omit_section_dynsym): Return true for | |
2772 | any output section matching a linker created dynobj section. | |
2773 | ||
8539e4e8 AM |
2774 | 2015-01-15 Alan Modra <[email protected]> |
2775 | ||
2776 | PR 17842 | |
2777 | * elflink.c (elf_link_output_sym): Assert elf_onesymtab set. | |
2778 | (bfd_elf_final_link): Always create a symbol table when emit_relocs. | |
2779 | Don't assign symtab file position unless symbols will be output. | |
2780 | Merge blocks with condition in common. Don't call | |
2781 | elf_backend_output_arch_local_syms or elf_backend_output_arch_syms | |
2782 | unless other symbols are output. Move assignment of symtab_shndx | |
2783 | file position. Localize variable. | |
2784 | ||
52db4ec2 JW |
2785 | 2015-01-14 Jiong Wang <[email protected]> |
2786 | ||
2787 | * elf32-arm.c (elf32_arm_final_link_relocate): Reject R_ARM_32/_NOI when | |
2788 | trying to defer them to runtime. | |
2789 | ||
0941db69 JW |
2790 | 2015-01-13 Thomas Preud'homme <[email protected]> |
2791 | ||
2792 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use SYMBOLIC_BIND | |
2793 | to check if a symbol should be bound symbolically. | |
2794 | ||
0172429c JW |
2795 | 2015-01-13 Jiong Wang <[email protected]> |
2796 | ||
2797 | * elfnn-aarch64.c: (elfNN_aarch64_howto_table): Enable overflow check | |
2798 | for TLSLE_MOVW_TPREL_G2. | |
2799 | ||
bab91cce JW |
2800 | 2015-01-13 Jiong Wang <[email protected]> |
2801 | ||
2802 | PR ld/17415 | |
2803 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Mark | |
2804 | R_AARCH64_TLSLE_ADD_TPREL_HI12 as complain_overflow_unsigned. | |
2805 | * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Correct the | |
2806 | bit mask. | |
2807 | ||
3c758495 TG |
2808 | 2015-01-12 Terry Guo <[email protected]> |
2809 | ||
2810 | * elflink.c (_bfd_elf_gc_mark_debug_special_section_group): New | |
2811 | function. | |
2812 | (_bfd_elf_gc_mark_extra_sections): Use it. | |
2813 | ||
9d1d54d5 L |
2814 | 2015-01-11 H.J. Lu <[email protected]> |
2815 | ||
2816 | PR ld/17827 | |
2817 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): For PIE, | |
2818 | only discard space for pc-relative relocs symbols which turn | |
2819 | out to need copy relocs. | |
2820 | ||
c6e8e93a NC |
2821 | 2015-01-09 Nick Clifton <[email protected]> |
2822 | ||
2823 | * tekhex.c (getvalue): Fix thinko in test for correct extraction | |
2824 | of value. | |
2825 | (getsym): Return false if there was not enough data to extract the | |
2826 | symbol. | |
2827 | ||
400cf8cb AG |
2828 | 2015-01-09 Anthony Green <[email protected]> |
2829 | ||
2830 | * elf32-moxie.c (ELF_MACHINE_ALT1): Define. | |
2831 | ||
23d4663e NC |
2832 | 2015-01-08 Nick Clifton <[email protected]> |
2833 | ||
2834 | * elf32-msp430.c (msp430_elf_relax_section): Add relaxation of | |
2835 | 16-bit absolute BR instructions to 10-bit pc-relative JMP | |
2836 | instructions. | |
2837 | ||
063bb025 NC |
2838 | 2015-01-08 Nick Clifton <[email protected]> |
2839 | ||
2840 | PR binutils/17512 | |
2841 | * coffcode.h (coff_slurp_symbol_table): Return false if we failed | |
2842 | to load the line table. | |
2843 | * elf.c (_bfd_elf_map_sections_to_segments): Enforce a minimum | |
2844 | maxpagesize of 1. | |
2845 | * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Fail if | |
2846 | the Data Directory Size is too large. | |
2847 | ||
6f25f223 L |
2848 | 2015-01-06 H.J. Lu <[email protected]> |
2849 | ||
2850 | PR binutils/17512 | |
2851 | * elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocation. | |
2852 | * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise. | |
2853 | ||
85880250 NC |
2854 | 2015-01-06 Nick Clifton <[email protected]> |
2855 | ||
2856 | PR binutils/17512 | |
e7287c7f NC |
2857 | * mach-o.c (bfd_mach_o_read_symtab_strtab): Zero terminate the |
2858 | string table. | |
2859 | ||
ec93045b NC |
2860 | * reloc.c (bfd_get_reloc_size): Handle a reloc size of -1. |
2861 | (bfd_perform_relocation): Include the size of the reloc in the | |
2862 | test for an out of range relocation. | |
2863 | (bfd_generic_get_relocated_section_contents): Remove reloc range | |
2864 | test. | |
2865 | ||
85880250 NC |
2866 | * coff-i860.c (CALC_ADDEND): Always set an addend value. |
2867 | * tekhex.c (getvalue): Add an end pointer parameter. Use it to | |
2868 | avoid reading off the end of the buffer. | |
2869 | (getsym): Likewise. | |
2870 | (first_phase): Likewise. | |
2871 | (pass_over): Pass an end pointer to the invoked function. | |
2872 | ||
533d0af0 L |
2873 | 2015-01-05 H.J. Lu <[email protected]> |
2874 | ||
2875 | PR binutils/17512 | |
2876 | * elf32-i386.c (elf_i386_get_plt_sym_val): Return NULL on corrupt | |
2877 | input. | |
2878 | * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise. | |
2879 | ||
896ca098 NC |
2880 | 2015-01-05 Nick Clifton <[email protected]> |
2881 | ||
2882 | PR binutils/17512 | |
2883 | * archive.c (do_slurp_bsd_armap): Make sure that the parsed sized | |
2884 | is at least big enough for the header to be read. | |
2885 | * elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocs. | |
2886 | * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add range checks. | |
2887 | (bfd_mach_o_read_command): Prevetn duplicate error messages about | |
2888 | unrecognized commands. | |
2889 | * syms.c (_bfd_stab_section_find_nearest_line): Add range checks | |
2890 | when indexing into the string table. | |
2891 | ||
b90efa5b | 2892 | 2015-01-01 Alan Modra <[email protected]> |
ee3b52e9 | 2893 | |
b90efa5b | 2894 | Update year range in copyright notice of all files. |
ee3b52e9 | 2895 | |
b90efa5b | 2896 | For older changes see ChangeLog-2014 |
56882138 | 2897 | \f |
b90efa5b | 2898 | Copyright (C) 2015 Free Software Foundation, Inc. |
752937aa NC |
2899 | |
2900 | Copying and distribution of this file, with or without modification, | |
2901 | are permitted in any medium without royalty provided the copyright | |
2902 | notice and this notice are preserved. | |
2903 | ||
56882138 AM |
2904 | Local Variables: |
2905 | mode: change-log | |
2906 | left-margin: 8 | |
2907 | fill-column: 74 | |
2908 | version-control: never | |
2909 | End: |