]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
GOLD aarch64 warning fix
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
f2d7e0f4
AM
12015-07-20 Alan Modra <amodra@gmail.com>
2
3 * po/SRC-POTFILES.in: Regenerate.
4
4c0a9a6f
JW
52015-07-17 Jiong Wang <jiong.wang@arm.com>
6
7 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Sort alphabetically.
8 (IS_AARCH64_TLSDESC_RELOC): Sort alphabetically.
9
77a69ff8
JW
102015-07-16 Jiong Wang <jiong.wang@arm.com>
11
12 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize
13 BFD_RELOC_AARCH64_TLSLD_ADR_PREL21.
14 (aarch64_reloc_got_type): Ditto.
15 (elfNN_aarch64_final_link_relocate): Ditto.
16 (elfNN_aarch64_relocate_section): Ditto.
17 (elfNN_aarch64_gc_sweep_hook): Ditto.
18 (elfNN_aarch64_check_relocs): Ditto.
19 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto.
20 (_bfd_aarch64_elf_resolve_relocation): Ditto.
21
6c37fedc
JW
222015-07-16 Jiong Wang <jiong.wang@arm.com>
23
24 * reloc.c (BFD_RELOC_AARCH64_TLSLD_ADR_PREL21): New entry.
25 * bfd-in2.h: Regenerate.
26 * libbfd.h: Regenerate.
27 * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
28 BFD_RELOC_AARCH64_TLSLD_ADR_PREL21.
29
88988473
L
302015-07-10 H.J. Lu <hongjiu.lu@intel.com>
31
32 PR binutils/18656
33 * bfd.c (bfd_convert_section_size): New function.
34 (bfd_convert_section_contents): Likewise.
35 * bfd-in2.h: Regenerated.
36
de231f20
CM
372015-07-09 Catherine Moore <clm@codesourcery.com>
38
39 * elflink.c (bfd_elf_size_dynamic_sections): Call to
40 _bfd_elf_maybe_strip_eh_frame_hdr should be before
41 bed->elf_backend_size_dynamic_sections.
42
328e7bfd
DC
432015-07-08 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
44
45 * elf32-avr.c: Add 32 bit PC relative relocation for AVR target.
46
92a9c616
RS
472015-07-05 Richard Sandiford <richard.sandiford@arm.com>
48
49 * elf64-ppc.c (toc_adjusting_stub_needed): Use the symbol value
50 plus addend rather than the original st_value when looking up
51 entries in opd->adjust.
52
0f088b2a
KT
532015-07-03 Kai Tietz <ktietz@redhat.com>
54 Nick Clifton <nickc@redhat.com>
55
56 PR ld/11539
57 * coffcode.h (coff_bfd_gc_sections): Define default
58 to bfd_coff_gc_sections function.
59 (coff_gc_mark_hook_fn): New type.
60 * coffgen.c (init_reloc_cookie): Copy and adjust coff
61 related code about gc-sections from elflink.c to here.
62 (fini_reloc_cookie): Likewise.
63 (init_reloc_cookie_rels): Likewise.
64 (fini_reloc_cookie_rels): Likewise.
65 (init_reloc_cookie_for_section): Likewise.
66 (fini_reloc_cookie_for_section): Likewise.
67 (_bfd_coff_gc_mark_hook): Likewise.
68 (_bfd_coff_gc_mark_rsec): Likewise.
69 (_bfd_coff_gc_mark_reloc): Likewise.
70 (_bfd_coff_gc_mark): Likewise.
71 (_bfd_coff_gc_mark_extra_sections): Likewise.
72 (coff_gc_sweep_symbol_info): Likewise.
73 (coff_gc_sweep_symbol): Likewise.
74 (gc_sweep_hook_fn): Likewise.
75 (coff_gc_sweep): Likewise.
76 (bfd_coff_gc_sections): Likewise.
77 (_bfd_coff_gc_keep): Likewise.
78 * libcoff-in.h (coff_reloc_cookie): New struct.
79 (bfd_coff_gc_sections): New prototype.
80 * libcoff.h: Regenerate.
81
8c163c5a
SL
822015-07-01 Sandra Loosemore <sandra@codesourcery.com>
83 Cesar Philippidis <cesar@codesourcery.com>
84
85 * bfd-in2.h: Regenerated.
86 * elf32-nios2.c (elf_nios2_howto_table_rel): Rename to...
87 (elf_nios2_r1_howto_table_rel): This.
88 (elf_nios2_r2_howto_table_rel): New.
89 (BFD_IS_R2): New.
90 (lookup_howto): Add ABFD parameter. Adjust to look up in either
91 the R1 or R2 relocation table, as determined by ABFD.
92 (nios2_reloc_map): Add R2 relocations.
93 (nios2_elf32_bfd_reloc_type_lookup): Do lookup using lookup_howto.
94 Pass it the ABFD parameter.
95 (nios2_elf32_bfd_reloc_name_lookup): Use ABFD to decide whether to
96 return an R1 or R2 relocation.
97 (nios2_elf32_info_to_howto): Do lookup using lookup_howto.
98 Pass it the ABFD parameter.
99 (nios2_elf32_do_call26_relocate): Check for alignment on a 4-byte
100 boundary.
101 (nios2_elf32_relocate_section): Adjust call to lookup_howto.
102 * libbfd.h: Regenerated.
103 * reloc.c (BFD_RELOC_NIOS2_R2_S12): New.
104 (BFD_RELOC_NIOS2_R2_I10_1_PCREL): New.
105 (BFD_RELOC_NIOS2_R2_T1I7_1_PCREL): New.
106 (BFD_RELOC_NIOS2_R2_T1I7_2): New.
107 (BFD_RELOC_NIOS2_R2_T2I4): New.
108 (BFD_RELOC_NIOS2_R2_T2I4_1): New.
109 (BFD_RELOC_NIOS2_R2_T2I4_2): New.
110 (BFD_RELOC_NIOS2_R2_X1I7_2): New.
111 (BFD_RELOC_NIOS2_R2_X2L5): New.
112 (BFD_RELOC_NIOS2_R2_F1I5_2): New.
113 (BFD_RELOC_NIOS2_R2_L5I4X1): New.
114 (BFD_RELOC_NIOS2_R2_T1X1I6): New.
115 (BFD_RELOC_NIOS2_R2_T1X1I6_2): New.
116
965b1d80
SL
1172015-07-01 Sandra Loosemore <sandra@codesourcery.com>
118 Cesar Philippidis <cesar@codesourcery.com>
119
120 * archures.c (bfd_mach_nios2r1, bfd_mach_nios2r2): New.
121 * bfd-in2.h: Regenerated.
122 * cpu-nios2.c (nios2_compatible): New.
123 (N): Use nios2_compatible instead of bfd_default_compatible.
124 (NIOS2R1_NEXT, NIOS2R2_NEXT): Define.
125 (arch_info_struct): New.
126 (bfd_nios2_arch): Chain to NIOS2R1_NEXT.
127 * elf32-nios2.c (is_nios2_elf): New.
128 (nios2_elf32_merge_private_bfd_data): New.
129 (nios2_elf32_object_p): New.
130 (bfd_elf32_bfd_merge_private_bfd_data): Define.
131 (elf_backend_object_p): Define.
132
dfc87947
L
1332015-07-01 H.J. Lu <hongjiu.lu@intel.com>
134
135 * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Refactor.
136
5ee4a1ca
NC
1372015-06-30 Nick Clifton <nickc@redhat.com>
138
139 PR binutils/18570
140 * elf-attrs.c (obj_attr_size): Use an unsigned int type for the tag.
141 (write_obj_attribute): Likewise.
142 (elf_new_obj_attr): Likewise.
143 (bfd_elf_get_obj_attr_int): Likewise.
144 (bfd_elf_add_obj_attr_int): Likewise.
145 (bfd_elf_add_obj_attr_string): Likewise.
146 (bfd_elf_add_obj_attr_int_string): Likewise.
147 (gnu_obj_attrs_arg_type): Likewise.
148 (_bfd_elf_obj_attrs_arg_type): Likewise.
149 (_bfd_elf_parse_attributes): Likewise.
150 (_bfd_elf_merge_unknown_attribute_list): Likewise.
151 * elf-bfd.h (struct obj_attribute_list): Likewise.
152 Update prototypes.
153
ee0c0c50
L
1542015-06-28 H.J. Lu <hongjiu.lu@intel.com>
155
156 * bfd-in.h (compressed_debug_section_type): Remove
157 COMPRESS_DEBUG_ZLIB.
158 * bfd-in2.h : Regenerated.
159
a5499fa4
MF
1602015-06-26 Matthew Fortune <matthew.fortune@imgtec.com>
161
162 * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Use executable
163 instead of !shared to indicate an application vs shared library.
164 (_bfd_mips_elf_size_dynamic_sections): Likewise.
165 (_bfd_mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP_REL.
166 (_bfd_mips_elf_get_target_dtag): Likewise.
167
3f307074
DD
1682015-06-25 DJ Delorie <dj@redhat.com>
169
170 * elf32-msp430.c (msp430_final_link_relocate): Fix comments. Fix
171 REL loads to match RELA stores.
172
946748d5
L
1732015-06-25 H.J. Lu <hongjiu.lu@intel.com>
174
175 * elf.c (_bfd_elf_compute_section_file_positions): Don't
176 initialize sh_size for .shstrtab here.
177
ef10c3ac
L
1782015-06-25 H.J. Lu <hongjiu.lu@intel.com>
179
180 PR gas/18451
181 * elf-bfd.h (elf_sym_strtab): New.
182 (elf_link_hash_table): Add strtabcount, strtabsize and
183 strtab.
184 (_bfd_elf_stringtab_init): Removed.
185 * elf.c (_bfd_elf_stringtab_init): Removed.
186 (_bfd_elf_compute_section_file_positions): Replace
187 bfd_strtab_hash/_bfd_elf_stringtab_init/_bfd_stringtab_free/
188 _bfd_stringtab_size with
189 elf_strtab_hash/_bfd_elf_strtab_init/_bfd_elf_strtab_free/
190 _bfd_elf_strtab_size. Use _bfd_elf_strtab_add,
191 _bfd_elf_strtab_finalize and _bfd_elf_strtab_offset to get
192 st_name.
193 (swap_out_syms): Likewise.
194 * elflink.c (elf_final_link_info): Replace bfd_strtab_hash
195 with elf_strtab_hash. Remove symbuf, symbuf_count,
196 symbuf_size and shndxbuf_size.
197 (elf_link_flush_output_syms): Removed.
198 (elf_link_output_sym): Renamed to ...
199 (elf_link_output_symstrtab): This. Replace _bfd_stringtab_add
200 with _bfd_elf_strtab_add. Don't flush symbols to the file nor
201 swap out symbols.
202 (elf_link_swap_symbols_out): New.
203 (elf_link_output_extsym): Replace elf_link_output_sym with
204 elf_link_output_symstrtab.
205 (elf_link_input_bfd): Likewise.
206 (elf_final_link_free): Replace _bfd_stringtab_free with
207 _bfd_elf_strtab_free. Remove symbuf.
208 (bfd_elf_final_link): Replace _bfd_elf_stringtab_init with
209 _bfd_elf_strtab_init. Don't set symbuf, symbuf_count,
210 symbuf_size nor shndxbuf_size. Initialize strtabsize and
211 strtab. Initialize symshndxbuf to -1 when number of sections
212 >= 64K. Replace elf_link_output_sym/elf_link_output_sym with
213 elf_link_output_symstrtab/elf_link_output_symstrtab. Don't
214 call elf_link_flush_output_syms. Call _bfd_elf_strtab_finalize
215 and elf_link_swap_symbols_out. Replace _bfd_stringtab_size
216 and _bfd_stringtab_emit with _bfd_elf_strtab_size and
217 _bfd_elf_strtab_emit.
218
7cc152be
L
2192015-06-24 H.J. Lu <hongjiu.lu@intel.com>
220
221 * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Silence older
222 GCC warning.
223
7c1e8d3e
L
2242015-06-24 H.J. Lu <hongjiu.lu@intel.com>
225
226 * elf32-i386.c (elf_i386_allocate_dynrelocs): Always allocate
227 space for the first .plt entry.
228 (elf_i386_size_dynamic_sections): Always add DT_PLTGOT for .plt
229 section. Add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL only if
230 there are PLT relocations.
231 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Always
232 allocate space for the first .plt entry.
233 (elf_x86_64_size_dynamic_sections): Always add DT_PLTGOT for
234 .plt section. Add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL only if
235 there are PLT relocations.
236
59cab532
L
2372015-06-24 H.J. Lu <hongjiu.lu@intel.com>
238
239 PR ld/18591
240 * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Don't convert
241 R_X86_64_GOTPCREL to R_X86_64_PC32 if it will cause relocation
242 overflow.
243
c2170589
JW
2442015-06-23 Jiong Wang <jiong.wang@arm.com>
245
246 * elfnn-aarch64.c (aarch64_readonly_dynrelocs): New function.
247 (elfNN_aarch64_size_dynamic_sections): Traverse hash table to check
248 relocations against read-only sections.
249
75c11999
NC
2502015-06-18 Nick Clifton <nickc@redhat.com>
251
252 PR 18481
253 * elf32-arm.c (R_ARM_TLS_LE32): Set the special function to NULL.
254
56f40832
JT
2552015-06-15 Jon Turney <jon.turney@dronecode.org.uk>
256
257 * bfd.c: Change struct bfd_build_id to use bfd_size_type.
258 * bfd-in2.h : Regenerate.
259
1d5c94cb
AM
2602015-06-16 Alan Modra <amodra@gmail.com>
261
262 * elf32-ppc.c (ppc_elf_relocate_section): Correct binary search of
263 dynamic relocs.
264
c74f7d1c
JT
2652015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
266
267 * elf-bfd.h : Remove struct elf_build_id.
268 * bfd.c : Add struct bfd_build_id.
269 * bfd-in2.h: Regenerate.
270 * elf.c (elfobj_grok_gnu_build_id): Update to use bfd_build_id.
271 * libpei.h: Add protoype and macros for
272 bfd_XXi_slurp_codeview_record.
273 * peXXigen.c (_bfd_XXi_slurp_codeview_record): Make public
274 * peicode.h (pe_bfd_read_buildid): Add.
275 (pe_bfd_object_p): Use pe_bfd_read_buildid().
276
87f5fbcc
RL
2772015-06-15 Renlin Li <renlin.li@arm.com>
278
279 * reloc.c (BFD_RELOC_AARCH64_LD64_GOTOFF_LO15): New entry.
280 * bfd-in2.h: Regenerate.
281 * libbfd.h: Regenerate.
282 * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
283 BFD_RELOC_AARCH64_LD64_GOTOFF_LO15.
284
3a062fa1
AM
2852015-06-15 Alan Modra <amodra@gmail.com>
286
287 * cofflink.c (_bfd_coff_generic_relocate_section): Revert
288 2014-03-26 change. Call _bfd_clear_contents for relocs against
289 local and global symbols defined in discarded input sections.
290
1ade7175
NC
2912015-06-05 Nick Clifton <nickc@redhat.com>
292
293 * elf32-msp430.c (rl78_sym_diff_handler): New function.
294 (msp430_howto_table): Use the new function for the SYM_DIFF reloc.
295 (msp430x_howto_table): Likewise.
296
f8b44781
AM
2972015-06-05 Alan Modra <amodra@gmail.com>
298
299 * elf64-ppc.c (ppc_elf_relocate_section): Move dynamic text
300 relocs with insns moved by --ppc476-workaround. Correct
301 output of REL16 relocs.
302
7018c030
JW
3032015-06-01 Jiong Wang <jiong.wang@arm.com>
304
305 * elfnn-aarch64.c (aarch64_reloc_got_type): Support
306 BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14.
307 (elfNN_aarch64_final_link_relocate): Ditto.
308 (elfNN_aarch64_gc_swap_hook): Ditto.
309 (elfNN_aarch64_check_relocs): Ditto.
310 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto.
311
3d715ce4
JW
3122015-06-01 Jiong Wang <jiong.wang@arm.com>
313
314 * reloc.c (BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14): New entry.
315 * bfd-in2.h: Regenerate.
316 * libbfd.h: Regenerate.
317 * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
318 BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14.
319
36e6c140
JW
3202015-06-01 Jiong Wang <jiong.wang@arm.com>
321
322 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Set overflow type to
323 complain_overflow_unsigned for BFD_RELOC_AARCH64_TLSLE_ADD_LO12.
324 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Don't use
325 PGOFF for BFD_RELOC_AARCH64_TLSLE_ADD_LO12.
326
99ad26cb
JW
3272015-06-01 Jiong Wang <jiong.wang@arm.com>
328
329 * elfnn-aarch64.c (aarch64_reloc_got_type): Support
330 BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15.
331 (elfNN_aarch64_final_link_relocate): Ditto.
332 (elfNN_aarch64_gc_swap_hook): Ditto.
333 (elfNN_aarch64_check_relocs): Ditto.
334 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto.
335
a921b5bd
JW
3362015-06-01 Jiong Wang <jiong.wang@arm.com>
337
338 * reloc.c (BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15): New entry.
339 * bfd-in2.h: Regenerate.
340 * libbfd.h: Regenerate.
341 * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
342 BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15.
343
2f0c68f2
CM
3442015-05-28 Catherine Moore <clm@codesourcery.com>
345 Bernd Schmidt <bernds@codesourcery.com>
346 Paul Brook <paul@codesourcery.com>
347
348 bfd/
349 * bfd-in2.h: Regenerated.
350 * elf-bfd.h (DWARF2_EH_HDR, COMPACT_EH_HDR): Define.
351 (COMPACT_EH_CANT_UNWIND_OPCODE): Define.
352 (dwarf_eh_frame_hdr_info): Move dwarf-specific fields from
353 eh_frame_hdr_info.
354 (compact_eh_frame_hdr_info): Declare.
355 (eh_frame_hdr_info): Redeclare with union for dwarf-specific
356 fields and compact-eh fields.
357 (elf_backend_data): Add cant_unwind_opcode and compact_eh_encoding.
358 (bfd_elf_section_data): Add eh_frame_entry_field.
359 (elf_section_eh_frame_entry): Define.
360 (bfd_elf_parse_eh_frame_entries): Declare.
361 (_bfd_elf_parse_eh_frame_entry): Declare.
362 (_bfd_elf_end_eh_frame_parsing): Declare.
363 (_bfd_elf_write_section_eh_frame_entry): Declare.
364 (_bfd_elf_eh_frame_entry_present): Declare.
365 (_bfd_elf_section_for_symbol): Declare.
366 * elf-eh-frame.c (bfd_elf_discard_eh_frame_entry): New function.
367 (bfd_elf_record_eh_frame_entry): New function.
368 (_bfd_elf_parse_eh_frame_entry): New function.
369 (_bfd_elf_parse_eh_frame): Update hdr_info field references.
370 (cmp_eh_frame_hdr): New function.
371 (add_eh_frame_hdr_terminator): New function.
372 (_bfd_elf_end_eh_frame_parsing): New function.
373 (find_merged_cie): Update hdr_info field references.
374 (_bfd_elf_discard_section_eh_frame): Likewise.
375 (_bfd_elf_discard_section_eh_frame_hdr): Add Compact EH support.
376 (_bfd_elf_eh_frame_entry_present): New function.
377 (_bfd_elf_maybe_strip_eh_frame_hdr): Add Compact EH support.
378 (_bfd_elf_write_section_eh_frame_entry): New function.
379 (_bfd_elf_write_section_eh_frame): Update hdr_info field references.
380 (_bfd_elf_fixup_eh_frame_hdr): New function.
381 (write_compact_eh_frame_hdr): New function.
382 (write_dwarf_eh_frame_hdr): New function.
383 (_bfd_elf_write_section_eh_frame_hdr): Add Compact EH support.
384 * elflink.c (_bfd_elf_section_for_symbol): New function.
385 (elf_section_ignore_discarded_relocs): Add Compact EH support.
386 (elf_link_input_bfd): Likewise.
387 (bfd_elf_final_link): Likewise.
388 (_bfd_elf_gc_mark): Likewise.
389 (bfd_elf_parse_eh_frame_entries): New function.
390 (bfd_elf_gc_sections): Add Compact EH support.
391 (bfd_elf_discard_info): Likewise.
392 * elfxx-mips.c: Include dwarf2.h.
393 (_bfd_mips_elf_compact_eh_encoding): New function.
394 (_bfd_mips_elf_cant_unwind_opcode): New function.
395 * elfxx-mips.h (_bfd_mips_elf_compact_eh_encoding): Declare.
396 (_bfd_mips_elf_cant_unwind_opcode): Declare.
397 (elf_backend_compact_eh_encoding): Define.
398 (elf_backend_cant_unwind_opcode): Define.
399 * elfxx-target.h (elf_backend_compact_eh_encoding): Provide default.
400 (elf_backend_cant_unwind_opcode): Provide default.
401 (elf_backend_data elfNN_bed): Add elf_backend_compact_eh_encoding and
402 elf_backend_cant_unwind_opcode.
403 * section.c (SEC_INFO_TYPE_EH_FRAME_ENTRY): Add definition.
404
8ded2ddc
L
4052015-05-27 H.J. Lu <hongjiu.lu@intel.com>
406
407 PR binutils/18458
408 * elf32-i386.c (elf_i386_check_relocs): Create .plt.got section
409 for now binding only if pointer equality isn't needed.
410 (elf_i386_allocate_dynrelocs): Use .plt.got section for now
411 binding only if pointer equality isn't needed.
412 * elf64-x86-64.c (elf_x86_64_check_relocs): Create .plt.got
413 section for now binding only if pointer equality isn't needed.
414 (elf_x86_64_allocate_dynrelocs): Use .plt.got section for now
415 binding only if pointer equality isn't needed.
416
fca6ae69
L
4172015-05-26 H.J. Lu <hongjiu.lu@intel.com>
418
419 PR binutils/18437
420 * elf32-i386.c (elf_i386_get_plt_sym_val): Skip extra relocations
421 in .rel.plt/.rela.plt.
422 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
423
ce336788
JW
4242015-05-19 Jiong Wang <jiong.wang@arm.com>
425
426 * elfnn-aarch64.c (aarch64_tls_transition_without_check): Sort
427 relocation case labels alphabetically.
428 (elfNN_aarch64_final_link_relocate): Ditto.
429 (elfNN_aarch64_tls_relax): Ditto.
430 (elfNN_aarch64_relocate_section): Ditto.
431 (elfNN_aarch64_gc_sweep_hook): Ditto.
432 (elfNN_aarch64_check_relocs): Ditto.
433 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto.
434 (_bfd_aarch64_elf_resolve_relocation): Ditto.
435
80de0c6d
JW
4362015-05-18 Jiong Wang <jiong.wang@arm.com>
437
438 * elfnn-aarch64.c (elfNN_aarch64_adjust_dynamic_symbol): Rewrite
439 comments.
440
25070364
L
4412015-05-16 H.J. Lu <hongjiu.lu@intel.com>
442
443 * elf32-i386.c (elf_i386_check_relocs): Create .plt.got section
444 for now binding.
445 (elf_i386_allocate_dynrelocs): Use .plt.got section for now
446 binding.
447 * elf64-x86-64.c (elf_x86_64_check_relocs): Create .plt.got
448 section for now binding.
449 (elf_x86_64_allocate_dynrelocs): Use .plt.got section for now
450 binding.
451
dab394de
L
4522015-05-14 H.J. Lu <hongjiu.lu@intel.com>
453
454 * bfd.c (bfd_update_compression_header): Also write the zlib
455 header if the SHF_COMPRESSED bit cleared..
456 (bfd_check_compression_header): Return the uncompressed size.
457 * compress.c (decompress_contents): Don't skip the zlib header.
458 (bfd_compress_section_contents): Properly handle ELFCOMPRESS_ZLIB,
459 which doesn't have the zlib header.
460 (bfd_init_section_decompress_status): Likewise.
461 (bfd_get_full_section_contents): Updated.
462 (bfd_is_section_compressed): Likewise.
463 (bfd_is_section_compressed_with_header): Return the uncompressed
464 size.
465 * elf.c (_bfd_elf_make_section_from_shdr): Updated.
466 * bfd-in2.h: Regenerated.
467
fdc3b1b1
JW
4682015-05-14 Jiong Wang <jiong.wang@arm.com>
469
470 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Remove overflow
471 check restrictions.
472
e6c9a083
MF
4732015-05-14 Max Filippov <jcmvbkbc@gmail.com>
474
475 * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Treat PLT reference
476 as GOT reference when plt.refcount is not positive.
477
a3747075
L
4782015-05-12 H.J. Lu <hongjiu.lu@intel.com>
479
480 * elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate space
481 for the first .plt entry only if needed.
482 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
483
bf64a951
L
4842015-05-11 H.J. Lu <hongjiu.lu@intel.com>
485
486 * Makefile.am (ALL_MACHINES): Add cpu-iamcu.lo.
487 (ALL_MACHINES_CFILES): Likewise.
488 * archures.c (bfd_mach_iamcu): New.
489 (bfd_mach_i386_iamcu): Likewise.
490 (bfd_mach_i386_iamcu_intel_syntax): Likewise.
491 (bfd_iamcu_arch): Likewise.
492 (bfd_archures_list): Add &bfd_iamcu_arch.
493 * config.bfd (targ_selvecs): Add iamcu_elf32_vec to
494 i386_elf32_vec.
495 (targ_archs): Add bfd_iamcu_arch if needed.
496 * configure.ac: Support iamcu_elf32_vec.
497 * cpu-iamcu.c: New file.
498 * elf32-i386.c (elf32_iamcu_elf_object_p): New function.
499 Add support for iamcu_elf32_vec and elf32_iamcu_bed.
500 * targets.c (iamcu_elf32_vec): New.
501 (_bfd_target_vector): Add iamcu_elf32_vec.
502 * Makefile.in: Regenerated.
503 * bfd-in2.h: Likewise.
504 * configure: Likewise.
505
22abe556
L
5062015-05-11 H.J. Lu <hongjiu.lu@intel.com>
507
508 * elfcode.h (elf_object_p): Replace EM_486 with EM_IAMCU.
509
4b71eec6
L
5102015-05-10 H.J. Lu <hongjiu.lu@intel.com>
511
512 * elf32-i386.c (elf_i386_convert_mov_to_lea): Replace input_bfd
513 and output_bfd with abfd.
514 * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
515
9ac47a43
TS
5162015-05-06 Toni Spets <toni.spets@iki.fi>
517
518 PR ld/18372
519 * peXXigen.c (rsrc_process_section): Skip discarded resource
520 sections.
521
b633b725
L
5222015-05-01 H.J. Lu <hongjiu.lu@intel.com>
523
524 * config.bfd: Support i[3-7]86-*-elf*.
525
914082d1
L
5262015-04-30 H.J. Lu <hongjiu.lu@intel.com>
527
528 * elf32-i386.c (elf_backend_post_process_headers): Undef for
529 Solaris 2.
530
153a2776
NC
5312015-04-30 Nick Clifton <nickc@redhat.com>
532
533 PR 18317
534 * elf32-mep.c (MEPREL): Use bfd_elf_generic_reloc instead of
535 mep_reloc.
536 (mep_reloc): Delete unused function.
537
a93d5cb1
NC
5382015-04-29 Nick Clifton <nickc@redhat.com>
539
540 PR 17099
541 * coff-i386.c (coff_i386_rtype_to_howto): Allow absolute PCRLONG
542 relocs.
543
643f7afb
AK
5442015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
545
546 * elf-s390-common.c (elf_s390_merge_obj_attributes): New function.
547 * elf32-s390.c (elf32_s390_merge_private_bfd_data): Call
548 elf_s390_merge_obj_attributes.
549 * elf64-s390.c (elf64_s390_merge_private_bfd_data): New function.
550
b53b1bed
JW
5512015-04-24 Jiong Wang <jiong.wang@arm.com>
552
553 PR ld/18270
554 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic): Count local symbol for
555 GOT_NORMAL for both sgot/srelgot section.
556 (elfNN_aarch64_final_link_relocate): Relocate against GOT entry address
557 and generate necessary runtime relocation for GOT entry.
558
69b52ab8
L
5592015-04-24 H.J. Lu <hongjiu.lu@intel.com>
560
561 PR binutils/18209
562 * archive.c (_bfd_get_elt_at_filepos): Copy is_linker_input.
563
dcbd20eb
JW
5642015-04-24 Jiong Wang <jiong.wang@arm.com>
565
566 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Reject
567 PC-relative relocation for external symbol.
568
de13ef81
NC
5692015-04-24 Nick Clifton <nickc@redhat.com>
570
571 PR 18313
572 * compress.c (decompress_contents): Zero initialse the z_stream
573 structure.
574
b1fa9dd6
NC
5752015-04-24 Nick Clifton <nickc@redhat.com>
576
577 * elf.c (_bfd_elf_is_local_label_name): Extend test for assembler
578 local labels to include local labels with a numeric suffix and
579 fake symbols.
580
9361e630
L
5812015-04-24 H.J. Lu <hongjiu.lu@intel.com>
582
583 PR binutils/18316
584 * section.c (SEC_MEP_VLIW): New.
585 * bfd-in2.h: Regenerated.
586
3e19fb8f
L
5872015-04-23 H.J. Lu <hongjiu.lu@intel.com>
588
589 PR ld/18277
590 * compress.c (bfd_compress_section_contents): Remove the
591 write_compress argument.
592 (bfd_init_section_compress_status): Updated.
593 (bfd_compress_section): Likewise.
594 * elf.c (_bfd_elf_set_reloc_sh_name): New.
595 (_bfd_elf_init_reloc_shdr): Add delay_st_name_p. Set sh_name
596 to (unsigned int) -1 if delay_st_name_p is TRUE. Use
597 _bfd_elf_set_reloc_sh_name.
598 (elf_fake_sections): Don't rename DWARF debug section for
599 linker output if it will be compressed. Instead, set
600 delay_st_name_p to TRUE and pass it to _bfd_elf_init_reloc_shdr.
601 (assign_section_numbers): Call _bfd_elf_strtab_addref only if
602 sh_name != (unsigned int) -1. Don't finalize nor assign
603 shstrtab section here. Delay setting output section names to
604 _bfd_elf_write_object_contents.
605 (_bfd_elf_compute_section_file_positions): Update comments on
606 sh_offset for shstrtab section.
607 (assign_file_positions_for_non_load_sections): Set sh_offset to
608 -1 for shstrtab section.
609 (assign_file_positions_except_relocs): Likewise.
610 (_bfd_elf_assign_file_positions_for_non_load): Set up sh_name
611 when compressing DWARF debug sections. Place shstrtab section
612 after DWARF debug sections have been compressed.
613 (_bfd_elf_write_object_contents): Setting sh_name for output
614 sections.
615
f6fe1ccd
L
6162015-04-23 H.J. Lu <hongjiu.lu@intel.com>
617
618 PR binutils/18209
619 * bfd.c (bfd): Add is_linker_input.
620 * elf.c (convert_debug_to_zdebug): New.
621 (convert_zdebug_to_debug): Likewise.
622 (_bfd_elf_make_section_from_shdr): Don't convert .debug_* to
623 .zdebug_* here. Use convert_zdebug_to_debug. Set SEC_ELF_RENAME.
624 (_bfd_elf_init_reloc_shdr): Pass a pointer to section name
625 instead of a pointer to section.
626 (elf_fake_sections): Rename the section name if SEC_ELF_RENAME
627 is set.
628 * section.c (SEC_ELF_RENAME): New.
629 * bfd-in2.h: Regenerated.
630
a27e685f
AM
6312015-04-23 Alan Modra <amodra@gmail.com>
632
633 * elf64-ppc.c (TOC_BASE_ALIGN): Define.
634 (ppc64_elf_next_toc_section): Align multi-got toc base.
635 (ppc64_elf_set_toc): Likewise initial toc base and .TOC. symbol.
636
d5597ebc
L
6372015-04-22 H.J. Lu <hongjiu.lu@intel.com>
638
639 PR ld/18289
640 * elf32-i386.c (elf_i386_link_hash_entry): Add gotoff_ref.
641 (elf_i386_link_hash_newfunc): Initialize gotoff_ref to 0.
642 (elf_i386_create_dynamic_sections): Always allow copy relocs for
643 building executables.
644 (elf_i386_copy_indirect_symbol): Also copy gotoff_ref.
645 (elf_i386_check_relocs): Set gotoff_ref for R_386_GOTOFF.
646 (elf_i386_adjust_dynamic_symbol): Also allocate copy relocs for
647 PIE and R_386_GOTOFF.
648 (elf_i386_relocate_section): Allow R_386_GOTOFF in executable.
649
e9702963
L
6502015-04-20 H.J. Lu <hongjiu.lu@intel.com>
651
652 * elf.c (assign_section_numbers): Always set up sh_name.
653
e06efbf1
L
6542015-04-20 H.J. Lu <hongjiu.lu@intel.com>
655
656 * elf.c (assign_file_positions_for_non_load_sections): Iterate
657 sections by pointer.
658 (_bfd_elf_assign_file_positions_for_non_load): Likewise.
659
0ce398f1
L
6602015-04-14 H.J. Lu <hongjiu.lu@intel.com>
661
662 * bfd-in.h (compressed_debug_section_type): New.
663 * compress.c (bfd_compress_section_contents): Add an argument
664 for linker write compression and always generate .zdebug_*
665 section when linking.
666 (bfd_init_section_compress_status): Pass FALSE to
667 bfd_compress_section_contents.
668 (bfd_compress_section): New function.
669 * elf.c (elf_fake_sections): For linking, set SEC_ELF_COMPRESS
670 on DWARF debug sections if COMPRESS_DEBUG is set and rename
671 section if COMPRESS_DEBUG_GABI_ZLIB isn't set.
672 (assign_file_positions_for_non_load_sections): Set sh_offset
673 to -1 if SEC_ELF_COMPRESS is set.
674 (assign_file_positions_except_relocs): Likwise.
675 (_bfd_elf_assign_file_positions_for_relocs): Renamed to ...
676 (_bfd_elf_assign_file_positions_for_non_load): This. Change
677 return time to bfd_boolean. Compress the section if
678 SEC_ELF_COMPRESS is set.
679 (_bfd_elf_write_object_contents): Updated.
680 (_bfd_elf_set_section_contents): Write section contents to
681 the buffer if SEC_ELF_COMPRESS is set.
682 * merge.c: Include "elf-bfd.h".
683 (sec_merge_emit): Add arguments for contents and offset. Write
684 to contents with offset if contents isn't NULL.
685 (_bfd_write_merged_section): Write section contents to the
686 buffer if SEC_ELF_COMPRESS is set. Pass contents and
687 output_offset to sec_merge_emit.
688 * elflink.c (bfd_elf_final_link): Allocate the buffer for
689 output section contents if SEC_ELF_COMPRESS is set.
690 * section.c (SEC_ELF_COMPRESS): New.
691 * bfd-in2.h: Regenerated.
692
95b57ade
AM
6932015-04-15 Alan Modra <amodra@gmail.com>
694
695 * elf32-rl78.c (rl78_elf_relocate_section): Typo fix.
696
6ff71e76
NC
6972015-04-14 Nick Clifton <nickc@redhat.com>
698
699 * elf32-rl78.c (RL78_OP_REL): New macro.
700 (rl78_elf_howto_table): Use it for complex relocs.
701 (get_symbol_value): Handle the cases when the info or status
702 arguments are NULL.
703 (get_romstart): Cache the status returned by get_symbol_value.
704 (get_ramstart): Likewise.
705 (RL78_STACK_PUSH): Generate an error message if the stack
706 overflows.
707 (RL78_STACK_POP): Likewise for underflows.
708 (rl78_compute_complex_reloc): New function. Contains the basic
709 processing code for all RL78 complex relocs.
710 (rl78_special_reloc): New function. Provides special reloc
711 handling for complex relocs.
712 (rl78_elf_relocate_section): Use rl78_compute_complex_reloc.
713 (rl78_offset_for_reloc): Likewise.
714
889c2a67
L
7152015-04-14 H.J. Lu <hongjiu.lu@intel.com>
716
717 PR ld/pr17709
718 * elflink.c (_bfd_elf_adjust_dynamic_copy): Check
719 info->extern_protected_data when warning copy relocs against
720 protected symbols.
721 (_bfd_elf_symbol_refs_local_p): Check info->extern_protected_data
722 when checking protected non-function symbols.
723
97de3545
JB
7242015-04-13 John Baldwin <jhb@FreeBSD.org>
725
726 * elf.c (elfcore_grok_note): Recognize NT_X86_XSTATE on
727 FreeBSD.
728 (elfcore_write_xstatereg): Use correct note name on FreeBSD.
729
f0bf6bfd
L
7302015-04-13 H.J. Lu <hongjiu.lu@intel.com>
731
732 PR ld/18250
733 * elflink.c (elf_link_is_defined_archive_symbol): Return FALSE
734 if the object has been claimed by plugin.
735
e3c0e327
L
7362015-04-11 H.J. Lu <hongjiu.lu@intel.com>
737
738 * elf32-i386.c (elf_i386_relocate_section): Replace SYMBOLIC_BIND
739 with SYMBOL_REFERENCES_LOCAL when checking R_386_GOTOFF against
740 protected data symbol when building shared library.
741 * elf64-x86-64.c (elf_x86_64_relocate_section): Check
742 R_X86_64_GOTOFF64 against undefined symbol and replace
743 SYMBOLIC_BIND with SYMBOL_REFERENCES_LOCAL when checking
744 R_X86_64_GOTOFF64 against protected data symbol when building
745 shared library.
746
3d949995
L
7472015-04-10 H.J. Lu <hongjiu.lu@intel.com>
748
749 PR ld/pr17709
750 * elf32-i386.c (elf_i386_relocate_section): Also check R_386_GOTOFF
751 against protected data symbol when building shared library.
752 * elf64-x86-64.c (elf_x86_64_relocate_section): Also check
753 R_X86_64_GOTOFF64 against protected data symbol when building
754 shared library.
755
f7483970
L
7562015-04-10 H.J. Lu <hongjiu.lu@intel.com>
757
758 PR ld/pr15228
759 PR ld/pr17709
760 * elf-bfd.h (elf_backend_data): Add extern_protected_data.
761 * elf32-i386.c (elf_backend_extern_protected_data): New.
762 Defined to 1.
763 * elf64-x86-64.c (elf_backend_extern_protected_data): Likewise.
764 * elflink.c (_bfd_elf_adjust_dynamic_copy): Don't error on
765 copy relocs against protected symbols if extern_protected_data
766 is true.
767 (_bfd_elf_symbol_refs_local_p): Don't return true on protected
768 non-function symbols if extern_protected_data is true.
769 * elfxx-target.h (elf_backend_extern_protected_data): New.
770 Default to 0.
771 (elfNN_bed): Initialize extern_protected_data with
772 elf_backend_extern_protected_data.
773
030aeb75
L
7742015-04-10 H.J. Lu <hongjiu.lu@intel.com>
775
776 * compress.c (bfd_compress_section_contents): Replace bfd_malloc
777 and free with bfd_alloc and bfd_release on compressed buffer.
778 Release buffer if compressed section isn't smaller.
779
d07a1b05
AM
7802015-04-10 Alan Modra <amodra@gmail.com>
781
782 PR ld/18222
783 * elflink.c (_bfd_elf_adjust_dynamic_copy): Don't report an error
784 on adding a protected visibility variable to .dynbss.
785
8d2ea2a8
AM
7862015-04-10 Alan Modra <amodra@gmail.com>
787
788 Revert 2015-03-05 H.J. Lu <hongjiu.lu@intel.com>
789 PR ld/pr15228
790 PR ld/pr17709
791 * elf-bfd.h (elf_backend_data): Delete extern_protected_data.
792 * elf32-i386.c (elf_backend_extern_protected_data): Delete.
793 * elf64-x86-64.c (elf_backend_extern_protected_data): Likewise.
794 * elflink.c (_bfd_elf_adjust_dynamic_copy): Remove
795 extern_protected_data test.
796 (_bfd_elf_symbol_refs_local_p): Likewise.
797 * elfxx-target.h (elf_backend_extern_protected_data): Delete.
798 (elfNN_bed): Delete elf_backend_extern_protected_data init.
799
18ece1de
L
8002015-04-09 H.J. Lu <hongjiu.lu@intel.com>
801
802 * compress.c (bfd_compress_section_contents): Update comments.
803 (bfd_init_section_decompress_status): Likewise.
804 (bfd_init_section_compress_status): Likewise.
805
cd6faa73
L
8062015-04-09 H.J. Lu <hongjiu.lu@intel.com>
807
808 * elfxx-target.h (TARGET_BIG_SYM): Add BFD_COMPRESS_GABI to
809 object_flags.
810 (TARGET_LITTLE_SYM): Likewise.
811
19424843
MF
8122015-04-09 Max Filippov <jcmvbkbc@gmail.com>
813
814 * elf32-xtensa.c (splay-tree.h): include header.
815 (text_action_struct): drop next pointer.
816 (text_action_list_struct): drop head pointer, add count and
817 tree fields.
818 (find_fill_action): instead of linear search in text_action_list
819 search in the tree.
820 (text_action_compare, action_first, action_next): new functions.
821 (text_action_add, text_action_add_literal): instead of linear
822 search and insertion insert new node into the tree.
823 (removed_by_actions): pass additional parameter: action_list,
824 use it to traverse the tree.
825 (offset_with_removed_text): pass additional action_list parameter
826 to removed_by_actions.
827 (map_action_fn_context): new typedef.
828 (map_action_fn_context_struct): new structure.
829 (map_action_fn): new function.
830 (map_removal_by_action): use splay_tree_foreach to build map.
831 (find_insn_action): replace linear search in text_action_list
832 with series of splay_tree_lookups.
833 (print_action, print_action_list_fn): new functions.
834 (print_action_list): use splay_tree_foreach.
835 (init_xtensa_relax_info): drop action_list.head initialization.
836 Initialize the tree.
837 (compute_text_actions): use non-zero action_list_count instead of
838 non-NULL action list.
839 (xlate_map_context): new typedef.
840 (xlate_map_context_struct): new structure.
841 (xlate_map_fn): new function.
842 (build_xlate_map): use splay_tree_foreach to build map.
843 (action_remove_bytes_fn): new function.
844 (relax_section): use zero action_list_count instead of NULL
845 action list. Use splay_tree_foreach to count final section size.
846 Drop unused variable 'removed'.
847
8482015-04-09 Max Filippov <jcmvbkbc@gmail.com>
849
850 * elf32-xtensa.c (removed_literal_map_entry): new typedef.
851 (removed_literal_map_entry_struct): new structure.
852 (removed_literal_list_struct): add new fields: n_map and map.
853 (map_removed_literal, removed_literal_compare): new functions.
854 (find_removed_literal): build index array for literals ordered
855 by VMA, use binary search to find removed literal.
856
8572015-04-09 Max Filippov <jcmvbkbc@gmail.com>
858
859 * elf32-xtensa.c (removal_by_action_entry_struct,
860 removal_by_action_map_struct): new structures.
861 (removal_by_action_entry, removal_by_action_map): new typedefs.
862 (text_action_list_struct): add new field: map.
863 (map_removal_by_action, removed_by_actions_map,
864 offset_with_removed_text_map): new functions.
865 (relax_section): replace offset_with_removed_text with
866 offset_with_removed_text_map.
867 (translate_reloc, relax_property_section, relax_section_symbols):
868 replace removed_by_actions with removed_by_actions_map.
869
8702015-04-09 Max Filippov <jcmvbkbc@gmail.com>
871
872 * elf32-xtensa.c (reloc_range_list, reloc_range_list_entry,
873 reloc_range): new typedef.
874 (reloc_range_list_struct, reloc_range_list_entry_struct,
875 reloc_range_struct): new structures.
876 (reloc_range_compare, build_reloc_ranges,
877 reloc_range_list_append, reloc_range_list_remove,
878 reloc_range_list_update_range, free_reloc_range_list): new
879 functions.
880 (compute_text_actions): precompute relocation opcodes before the
881 loop. Add relevant_relocs variable, initialize it before the
882 loop, pass it to the check_section_ebb_pcrels_fit.
883 (check_section_ebb_pcrels_fit): add new parameter:
884 relevant_relocs. Update address range in the relevant_relocs if
885 it's non-NULL and iterate only over relevant relocations.
886
3525236c
NC
8872015-04-09 Nick Clifton <nickc@redhat.com>
888
889 * elf32-rx.c (describe_flags): Report the settings of the string
890 insn using bits.
891 (rx_elf_merge_private_bfd_data): Handle merging of the string insn
892 using bits.
893
51509926
L
8942015-04-08 H.J. Lu <hongjiu.lu@intel.com>
895
896 * compress.c (bfd_compress_section_contents): Work around a GCC
897 uninitialized warning bug fixed in GCC 4.7.
898
151411f8
L
8992015-04-08 H.J. Lu <hongjiu.lu@intel.com>
900
901 * archive.c (_bfd_get_elt_at_filepos): Also copy BFD_COMPRESS_GABI
902 bit.
903 * bfd.c (bfd::flags): Increase size to 18 bits.
904 (BFD_COMPRESS_GABI): New.
905 (BFD_FLAGS_SAVED): Add BFD_COMPRESS_GABI.
906 (BFD_FLAGS_FOR_BFD_USE_MASK): Likewise.
907 (bfd_update_compression_header): New fuction.
908 (bfd_check_compression_header): Likewise.
909 (bfd_get_compression_header_size): Likewise.
910 (bfd_is_section_compressed_with_header): Likewise.
911 * compress.c (MAX_COMPRESSION_HEADER_SIZE): New.
912 (bfd_compress_section_contents): Return the uncompressed size if
913 the full section contents is compressed successfully. Support
914 converting from/to .zdebug* sections.
915 (bfd_get_full_section_contents): Call
916 bfd_get_compression_header_size to get compression header size.
917 (bfd_is_section_compressed): Renamed to ...
918 (bfd_is_section_compressed_with_header): This. Add a pointer
919 argument to return compression header size.
920 (bfd_is_section_compressed): Use it.
921 (bfd_init_section_decompress_status): Call
922 bfd_get_compression_header_size to get compression header size.
923 Return FALSE if uncompressed section size is 0.
924 * elf.c (_bfd_elf_make_section_from_shdr): Support converting
925 from/to .zdebug* sections.
926 * bfd-in2.h: Regenerated.
927
87070c08
AM
9282015-04-07 Alan Modra <amodra@gmail.com>
929
930 * elf.c (_bfd_elf_get_reloc_section): Allow for .got.plt being
931 mapped to output .got section.
932
d3e454b9
AM
9332015-04-07 Alan Modra <amodra@gmail.com>
934
935 * elf32-ppc.c (struct ppc_elf_link_hash_entry): Add has_addr16_ha
936 and has_addr16_lo. Make has_sda_refs a bitfield.
937 (ppc_elf_check_relocs): Set new flags.
938 (ppc_elf_link_hash_table_create): Update default_params.
939 (ppc_elf_adjust_dynamic_symbol): Clear protected_def in cases
940 where we won't be making .dynbss entries or editing code. Set
941 params->pic_fixup when we'll edit code for protected var access.
942 (allocate_dynrelocs): Allocate got entry for edited code and
943 discard dyn_relocs.
944 (struct ppc_elf_relax_info): Add picfixup_size.
945 (ppc_elf_relax_section): Rename struct one_fixup to struct
946 one_branch_fixup. Rename fixups to branch_fixups. Size space for
947 pic fixups.
948 (ppc_elf_relocate_section): Edit non-PIC accessing protected
949 visibility variables to PIC. Don't emit dyn_relocs for code
950 we've edited.
951 * elf32-ppc.h (struct ppc_elf_params): Add pic_fixup.
952
ffa54770
NC
9532015-04-07 Nick Clifton <nickc@redhat.com>
954
955 * elf.c (_bfd_elf_is_local_label_name): Treat assembler generated
956 local labels as local.
957
4aa90cc0
L
9582015-04-06 H.J. Lu <hongjiu.lu@intel.com>
959
960 * compress.c (get_uncompressed_size): Removed.
961 (bfd_compress_section_contents): Use bfd_putb64 to write
962 uncompressed section size.
963 (bfd_init_section_decompress_status): Replace
964 get_uncompressed_size with bfd_getb64.
965
68f5ff89
L
9662015-04-04 H.J. Lu <hongjiu.lu@intel.com>
967
968 * elf.c (_bfd_elf_init_private_section_data): Also preserve the
969 SHF_COMPRESSED bit if not decompress.
970
8bed4e0f
L
9712015-04-04 H.J. Lu <hongjiu.lu@intel.com>
972
973 * compress.c (get_uncompressed_size): New. Extracted from ...
974 (bfd_init_section_decompress_status): This. Use it.
975
15c7659f
AT
9762015-04-02 Andrew Turner <andrew@freebsd.org>
977
978 * config.bfd: Add aarch64-*-freebsd* target triple.
979
39f3de7c
L
9802015-04-02 H.J. Lu <hongjiu.lu@intel.com>
981
982 * configure: Regenerated.
983
4106101c
MS
9842015-04-01 Tejas Belagod <tejas.belagod@arm.com>
985 Marcus Shawcroft <marcus.shawcroft@arm.com>
986 Jiong Wang <jiong.wang@arm.com>
987
988 * bfd-in.h (bfd_elf64_aarch64_set_options)
989 (bfd_elf32_aarch64_set_options): Add parameter.
990 * bfd-in2.h: Regenerated.
991 * elfnn-aarch64.c (aarch64_erratum_843419_stub)
992 (_bfd_aarch64_adrp_p, _bfd_aarch64_erratum_843419_sequence_p)
993 (_bfd_aarch64_erratum_843419_stub_name)
994 (_bfd_aarch64_erratum_843419_fixup)
995 (_bfd_aarch64_erratum_843419_scan)
996 (_bfd_aarch64_erratum_843419_branch_to_stub)
997 (_bfd_aarch64_erratum_843419_p): Define.
998 (enum elf_aarch64_stub_type): Define
999 aarch64_stub_erratum_843419_veneer.
1000 (struct elf_aarch64_stub_hash_entry): Define adrp_offset.
1001 (struct elf_aarch64_link_hash_table): Define fix_erratum_843419
1002 and fix_erratum_843419_adr.
1003 (stub_hash_newfunc): Initialize adrp_offset;
1004 (_bfd_aarch64_add_stub_entry_after): Define.
1005 (aarch64_map_one_stub, aarch64_build_one_stub)
1006 (aarch64_size_one_stub): Handle
1007 aarch64_stub_erratum_843419_veneer.
1008 (_bfd_aarch64_resize_stubs): Round stub section size.
1009 (elfNN_aarch64_size_stubs): Add scan for 843419.
1010 (bfd_elfNN_aarch64_set_options): Add parameter. Initialize
1011 fix_erratum_843419 and fix_erratum_843419_adr.
1012 (struct erratum_835769_branch_to_stub_data): Add info.
1013 (elfNN_aarch64_write_section): Initialise info. Handle 843419.
1014 (elfNN_aarch64_size_dynamic_sections): Handle 843419.
1015 * elfxx-aarch64.c (_bfd_aarch64_decode_adrp_imm)
1016 (_bfd_aarch64_sign_extend): Define.
1017 (reencode_adr_imm): Remove static. Rename to:
1018 (_bfd_aarch64_reencode_adr_imm): Define.
1019 (_bfd_aarch64_elf_put_addend): Call _bfd_aarch64_reencode_adr_imm.
1020 * elfxx-aarch64.h (AARCH64_ADR_OP, AARCH64_ADRP_OP)
1021 (AARCH64_ADRP_OP_MASK, _bfd_aarch64_sign_extend)
1022 (_bfd_aarch64_decode_adrp_imm, _bfd_aarch64_reencode_adr_imm):
1023 Define.
1024
afa59b79
L
10252015-04-01 H.J. Lu <hongjiu.lu@intel.com>
1026
1027 * configure: Regenerated.
1028
6036f486
ES
10292015-03-31 Ed Schouten <ed@nuxi.nl>
1030
1031 * config.bfd (targ_defvec): Set to x86_64_elf64_cloudabi_vec
1032 for x86_64-*-cloudabi*.
1033 * configure.ac: Handle x86_64_elf64_cloudabi_vec.
1034 * configure: Regenerated.
1035 * elf64-x86-64.c (TARGET_LITTLE_SYM): Support x86_64-*-cloudabi*.
1036 (TARGET_LITTLE_NAME): Likewise.
1037 (ELF_OSABI): Likewise.
1038 (elf64_bed): Likewise.
1039 * targets.c (x86_64_elf64_cloudabi_vec): New.
1040 (_bfd_target_vector): Add x86_64_elf64_cloudabi_vec.
1041
9ae46699
L
10422015-03-31 H.J. Lu <hongjiu.lu@intel.com>
1043
1044 * configure.ac: Revert the AM_ZLIB change.
1045 * Makefile.in: Regenerated.
1046 * aclocal.m4: Likewise.
1047 * configure: Likewise.
1048 * doc/Makefile.in: Likewise.
1049
bd53a53a
L
10502015-03-30 H.J. Lu <hongjiu.lu@intel.com>
1051
1052 PR ld/18169
1053 * elf-bfd.h (elf_backend_data): Add get_reloc_section.
1054 (_bfd_elf_get_reloc_section): New.
1055 * elf.c (_bfd_elf_get_reloc_section): Likewise.
1056 (assign_section_numbers): Call get_reloc_section to look up the
1057 section the relocs apply.
1058 * elfxx-target.h (elf_backend_get_reloc_section): Likewise.
1059 (elfNN_bed): Initialize get_reloc_section with
1060 elf_backend_get_reloc_section.
1061
243340ad
L
10622015-03-29 H.J. Lu <hongjiu.lu@intel.com>
1063
1064 * Makefile.am (ZLIB): New.
1065 (ZLIBINC): Likewise.
1066 (AM_CFLAGS): Add $(ZLIBINC).
1067 (libbfd_la_LIBADD): Add $(ZLIB).
1068 * compress.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
1069 (decompress_contents): Don't check HAVE_ZLIB_H.
243340ad
L
1070 (bfd_compress_section_contents): Likewise.
1071 (bfd_get_full_section_contents): Likewise.
1072 (bfd_init_section_decompress_status): Likewise.
1073 (bfd_init_section_compress_status): Likewise.
b51724e8 1074 * configure.ac (AM_ZLIB): Removed.
243340ad
L
1075 (zlibdir): New. AC_SUBST.
1076 (zlibinc): Likewise.
1077 Add --with-system-zlib.
1078 * Makefile.in: Regenerated.
1079 * acinclude.m4: Likewise.
1080 * config.in: Likewise.
1081 * configure: Likewise.
1082 * doc/Makefile.in: Likewise.
1083
b8417128
AM
10842015-03-27 Alan Modra <amodra@gmail.com>
1085
1086 PR ld/15228
1087 PR ld/18167
1088 * elflink.c (elf_merge_st_other): Add "sec" parameter. Don't set
1089 protected_def when symbol section is read-only. Adjust all calls.
1090 * elf-bfd.h (struct elf_link_hash_entry): Update protected_def comment.
1091
93ca8569
TB
10922015-03-26 Tejas Belagod <tejas.belagod@arm.com>
1093
1094 * elfnn-aarch64.c (aarch64_build_one_stub): Replace the call to generic
1095 _bfd_final_link_relocate with aarch64_relocate.
1096
b19a8f85
L
10972015-03-26 H.J. Lu <hongjiu.lu@intel.com>
1098
1099 PR ld/18160
1100 * elflink.c (elf_gc_sweep): Skip if relocation is incompatible.
1101 (bfd_elf_gc_sections): Likewise.
1102
61865519
MS
11032015-03-25 Marcus Shawcroft <marcus.shawcroft@arm.com>
1104
1105 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Adjust stub section
1106 size for initial branch.
1107 (elfNN_aarch64_build_stubs): Write initial branch.
1108 _bfd_aarch64_decode_(elfNN_aarch64_output_arch_local_syms): Write
1109 mapping symbol on initial branch.
1110
d9ced15d 11112015-03-25 Marcus Shawcroft <marcus.shawcroft@arm.com>
357d1523
MS
1112
1113 * elfnn-aarch64.c (_bfd_aarch64_erratum_835769_scan):
1114 Update erratum count.
1115
d422d1c4
SKS
11162015-03-25 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1117
1118 * elflink.c (_bfd_elf_gc_mark_extra_sections): Don't break on
1119 first matching debug section.
1120
8d001214
L
11212015-03-24 H.J. Lu <hongjiu.lu@intel.com>
1122
1123 PR gas/18087
1124 * compress.c (bfd_compress_section_contents): Don't write the
1125 zlib header and set contents as well as compress_status if
1126 compression didn't make the section smaller.
1127 (bfd_init_section_compress_status): Don't check compression
1128 size here.
1129
fc42baf3
NC
11302015-03-24 Nick Clifton <nickc@redhat.com>
1131
1132 PR binutils/17512
1133 * coffgen.c (coff_get_normalized_symtab): Fix test for out of
1134 range auxillary sections.
1135
fc6d53be
MS
11362015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1137
1138 * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Factor
1139 code into:
1140 (_bfd_aarch64_get_stub_for_link_section): Define.
1141
30068a6d
MS
11422015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1143
1144 * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Adjust
1145 update of section_group[].stub_sec.
1146
5421cc6e
MS
11472015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1148
1149 * elfnn-aarch64.c (struct aarch64_erratum_835769_fix) Remove.
1150 (erratum_835769_scan) Drop fix_table_size_p and fixes_p arguments.
1151 Delete fixes, fix_table_size and associated code. Call
1152 _bfd_aarch64_add_stub_entry_in_group. Rename to...
1153 (bfd_aarch64_erratum_835769_scan): Define.
1154 (elfNN_aarch64_size_stubs): Delete erratum_835769_fixes,
1155 erratum_835769_fix_table_size, i and associated code. Relocate
1156 call to _bfd_aarch64_erratum_835769_scan. Delete adhoc stub size
1157 correction. Delete construction of stub entry from
1158 erratum_835769_fixes array.
1159
e572930b
MS
11602015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1161
1162 * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Use
1163 _bfd_aarch64_add_stub_entry_in_group.
1164
8131c122
AM
11652015-03-24 Alan Modra <amodra@gmail.com>
1166
1167 * elf64-ppc.c (ppc64_elf_relocate_section): Report overflow to
1168 stubs, even those for undefined weak symbols. Otherwise, don't
1169 report relocation overflow on branches to undefined strong
1170 symbols. Fix memory leak.
1171 * elf32-ppc.c (ppc_elf_relocate_section): Don't report relocation
1172 overflow on branches to undefined strong symbols.
1173
c53ed7cf
KS
11742015-03-23 Keith Seitz <keiths@redhat.com>
1175
1176 * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Add
1177 missing ';'.
1178
94a75bde
MS
11792015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
1180
1181 * elfnn-aarch64.c (erratum_835769_scan): Factor stub name
1182 construction into...
1183 (_bfd_aarch64_erratum_835769_stub_name): Define.
1184
13f622ec
MS
11852015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
1186
1187 * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Factor out
1188 stub resize code into...
1189 (bfd_aarch64_resize_stubs): Define.
1190
66585675
MS
11912015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
1192
1193 * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Factor stub
1194 creation code into...
1195 (bfd_aarch64_create_stub_section): Define.
1196
ef857521
MS
11972015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
1198
1199 * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Rename
1200 from elf_aarch64_create_or_find_stub_sec.
1201 (_bfd_aarch64_add_stub_entry_in_group): Rename from
1202 elfNN_aarch64_add_stub. Call
1203 _bfd_aarch64_create_or_find_stub_sec.
1204 (elfNN_aarch64_size_stubs, elfNN_aarch64_size_stubs): Call
1205 _bfd_aarch64_add_stub_entry_in_group.
1206
2144188d
MS
12072015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
1208
1209 * elfnn-aarch64.c (erratum_835769_scan) Add comment. Reverse
1210 sense of boolean return.
1211 (elfNN_aarch64_size_stubs): Adjust for above.
1212
4c77202d
MS
12132015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
1214
1215 * elfnn-aarch64.c (elf_aarch64_create_or_find_stub_sec):
1216 Remove unused parameter.
1217 (elfNN_aarch64_size_stubs): Adjust for above.
1218
9b9971aa
MS
12192015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
1220
1221 * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Remove bfd_indx.
1222
e2cdef47
MS
12232015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
1224
1225 * elfnn-aarch64.c (aarch64_erratum_835769_fixes)
1226 (num_aarch64_erratum_835769_fixes): Remove.
1227 (elfNN_aarch64_size_stubs): Remove assignments to above.
1228
3d14faea
MS
12292015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
1230
23956543
MS
1231 * elfnn-aarch64.c (aarch64_mem_op_p): Update comment. Rename rtn
1232 to rt2.
3d14faea
MS
1233 (aarch64_erratum_seqeunce): Rename rtn to rt2.
1234
f872121a
MS
12352015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
1236
1237 * elfnn-aarch64.c (elfNN_aarch64_write_section): Adjust layout.
1238
1740ba0c
NC
12392015-03-19 Nick Clifton <nickc@redhat.com>
1240
1241 * elf32-rl78.c (rl78_cpu_name): New function. Prints the name of
1242 the RL78 core based upon the flags.
1243 (rl78_elf_merge_private_bfd_data): Handle merging of G13 and G14
1244 flags.
1245 (rl78_elf_print_private_bfd_data): Use rl78_cpu_name.
1246 (elf32_rl78_machine): Always return bfd_mach_rl78.
1247
e2575e05
NC
12482015-03-19 Nick Clifton <nickc@redhat.com>
1249
1250 PR 18078
1251 * compress.c (bfd_compress_section_contents): Do not define this
1252 function if it is not used.
1253
0b0732e1
L
12542015-03-18 H.J. Lu <hongjiu.lu@intel.com>
1255
1256 * compress.c (bfd_compress_section_contents): Make it static.
1257 * bfd/bfd-in2.h: Regenerated.
1258
27aaeda0
NC
12592015-03-18 Eric Youngdale <eyoungdale@ptc.com>
1260
1261 PR ld/16598
1262 * peicode.h (pe_ILF_build_a_bfd): Add support for creating relocs
1263 suitable for the AMD64.
1264
273a4985
JT
12652015-03-18 Jon Turney <jon.turney@dronecode.org.uk>
1266 Nick Clifton <nickc@redhat.com>
1267
1268 PR binutils/18087
1269 * coffgen.c (make_a_section_from_file): Only prepend a z to a
1270 debug section's name if the section was actually compressed.
1271 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
1272 * compress.c (bfd_init_section_compress_status): Do not compress
1273 the section if doing so would make it bigger. In such cases leave
1274 the section alone and return COMPRESS_SECTION_NONE.
1275
c4b0b099
AM
12762015-03-17 Alan Modra <amodra@gmail.com>
1277
1278 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return count of 0
1279 on nothing to do, before malloc of returned symbol array.
1280
9c761a55
NC
12812015-03-16 Nick Clifton <nickc@redhat.com>
1282
1283 * elf32-rx.c (elf32_rx_relax_delete_bytes): If the relocs are not
1284 stored in the elf_section_data structure then load them as
1285 necessary.
1286
b9005ba7
AK
12872015-03-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1288
1289 * elf-s390-common.c (elf_s390_elf_sort_relocs_p): Don't sort
1290 relocs against code sections.
1291 * elf32-s390.c: Define elf_backend_sort_relocs_p.
1292 * elf64-s390.c: Likewise.
1293
1079403c
AM
12942015-03-11 Alan Modra <amodra@gmail.com>
1295
1296 * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Examine stubs in
1297 reverse order. Account for larger size of __tls_get_addr_opt stub.
1298
a5721edd
JW
12992015-03-10 Yuri Gribov <y.gribov@samsung.arm>
1300
1301 PR ld/16572
1302 * elf32-arm.c (elf32_arm_final_link_relocate): Remove support for
1303 ELF_ARM_HASENTRY.
1304 (elf32_arm_print_private_bfd_data): Likewise.
1305
65164438
NC
13062015-03-06 Nick Clifton <nickc@redhat.com>
1307
1308 PR binutils/17765
1309 * elflink.c (put_value): Like previous delta, but for the 32-bit
1310 case.
1311
41cd1ad1
NC
13122015-03-05 Nick Clifton <nickc@redhat.com>
1313
1314 PR binutils/17765
1315 * elflink.c (put_value): Avoid using an undefined shift
1316 operation.
1317
ca3fe95e
L
13182015-03-05 H.J. Lu <hongjiu.lu@intel.com>
1319
1320 PR ld/pr15228
1321 PR ld/pr17709
1322 * elf-bfd.h (elf_backend_data): Add extern_protected_data.
1323 * elf32-i386.c (elf_backend_extern_protected_data): New.
1324 Defined to 1.
1325 * elf64-x86-64.c (elf_backend_extern_protected_data): Likewise.
1326 * elflink.c (_bfd_elf_adjust_dynamic_copy): Don't error on
1327 copy relocs against protected symbols if extern_protected_data
1328 is true.
1329 (_bfd_elf_symbol_refs_local_p): Don't return true on protected
1330 non-function symbols if extern_protected_data is true.
1331 * elfxx-target.h (elf_backend_extern_protected_data): New.
1332 Default to 0.
1333 (elfNN_bed): Initialize extern_protected_data with
1334 elf_backend_extern_protected_data.
1335
425bd9e1
NC
13362015-03-05 Nick Clifton <nickc@redhat.com>
1337
1338 PR binutils/18025
1339 * coffgen.c (coff_find_nearest_line_with_names): If the dwarf2
1340 lookup fails, check for an address bias in the dwarf info, and if
1341 one exists, retry the lookup with the biased value.
1342 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): New function.
1343 Determines if a bias exists bewteen the addresses of functions
1344 based on DWARF information vs symbol table information.
1345 * libbfd-in.h (_bfd_dwarf2_find_symbol_bias): Prototype.
1346 * libbfd.h: Regenerate.
1347
8ef229f3
MS
13482015-03-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
1349
1350 * elfxx-aarch64.c (decode_add_imm, decode_movw_imm)
1351 (decode_tst_branch_ofs_14, decode_ld_lit_ofs_19)
1352 (decode_cond_branch_ofs_19, decode_branch_ofs_26): Remove.
1353
8e2fe09f
MS
13542015-03-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
1355
1356 * elfnn-aarch64.c (aarch64_build_one_stub): Call abort.
1357 (aarch64_size_one_stub): Likewise.
1358 (aarch64_map_one_stub): Likewise.
1359
df88b702
AA
13602015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1361
1362 * cpu-s390.c (N): New macro.
1363 (bfd_s390_31_arch): New. Define only if default target word size
1364 is 64 bits. Otherwise define...
1365 (bfd_390_64_arch): ...this. Make static.
1366 (bfd_s390_arch): Define according to the default target word size.
1367 Let the 'next' field point to the alternate arch.
1368
e09ab7ac
RS
13692015-03-04 Richard Sandiford <richard.sandiford@arm.com>
1370
1371 PR gas/17843
1372 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Expect
1373 R_AARCH64_TLSLE_MOVW_TPREL_G0_NC and R_AARCH64_TLSLE_MOVW_TPREL_G1_NC
1374 to be used with MOVK rather than MOVZ.
1375
71eef2bd
DD
13762015-03-03 DJ Delorie <dj@redhat.com>
1377
1378 * elf32-rl78.c (rl78_elf_relax_section): Only relax ADDR16's if
1379 there's a symbol.
1380
f01f1741
AM
13812015-02-28 Alan Modra <amodra@gmail.com>
1382
1383 * elf32-ppc.c (ppc_elf_tls_setup): Set no_tls_get_addr_opt if
1384 not PLT_NEW.
1385
c1d11331
L
13862015-02-27 H.J. Lu <hongjiu.lu@intel.com>
1387
1388 * elf32-i386.c (need_convert_mov_to_lea): New.
1389 (elf_i386_check_relocs): Set need_convert_mov_to_lea if needed.
1390 (elf_i386_convert_mov_to_lea): Return TRUE if
1391 need_convert_mov_to_lea is unset.
1392 * elf64-x86-64.c (need_convert_mov_to_lea): New.
1393 (elf_x86_64_check_relocs): Set need_convert_mov_to_lea if needed.
1394 (elf_x86_64_convert_mov_to_lea): Return TRUE if
1395 need_convert_mov_to_lea is unset.
1396
cdb602b1
NC
13972015-02-27 Nick Clifton <nickc@redhat.com>
1398
1399 PR binutils/17910
1400 * coffgen.c (_bfd_coff_internal_syment_name): Only check for
1401 string length overflow when the string table length is actually
1402 set.
1403
96c20bc1
MS
14042015-02-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
1405
1406 * bfd/bfd-in2.h: Regenerate.
1407 * bfd/libbfd.h: Regenerate.
1408
1ada945d
MS
14092015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
1410
1411 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix
1412 TLSDESC_LD_PREL19 field width and masks.
1413 (aarch64_tls_transition_without_check)
1414 (aarch64_reloc_got_type, elfNN_aarch64_final_link_relocate)
1415 (elfNN_aarch64_tls_relax, elfNN_aarch64_relocate_section)
1416 (elfNN_aarch64_gc_sweep_hook, elfNN_aarch64_check_relocs): Handle
1417 BFD_RELOC_AARCH64_TLSDESC_LD_PREL19.
1418 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend)
1419 (_bfd_aarch64_elf_resolve_relocation): Likewise.
1420
389b8029
MS
14212015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
1422
73920eed
MS
1423 * elfnn-aarch64.c (IS_AARCH64_TLSDESC_RELOC): Reorder R_TYPE
1424 tests.
389b8029
MS
1425 (aarch64_tls_transition_without_check)
1426 (aarch64_reloc_got_type, elfNN_aarch64_final_link_relocate)
1427 (elfNN_aarch64_tls_relax, elfNN_aarch64_relocate_section)
1428 (elfNN_aarch64_gc_sweep_hook, elfNN_aarch64_check_relocs): Handle
1429 BFD_RELOC_AARCH64_TLSDESC_ADR_PREL21.
1430 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend)
1431 (_bfd_aarch64_elf_resolve_relocation): Likewise.
1432 * reloc.c (BFD_RELOC_AARCH64_TLSGD_ADR_PREL21): Define.
1433
3c12b054
MS
14342015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
1435
1436 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC)
1437 (elfNN_aarch64_howto_table, aarch64_tls_transition_without_check)
1438 (aarch64_reloc_got_type, elfNN_aarch64_final_link_relocate)
1439 (elfNN_aarch64_tls_relax, elfNN_aarch64_relocate_section)
1440 (elfNN_aarch64_gc_sweep_hook, elfNN_aarch64_check_relocs): Handle
1441 BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
1442 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend)
1443 (_bfd_aarch64_elf_resolve_relocation): Likewise.
1444 * reloc.c (BFD_RELOC_AARCH64_TLSGD_ADR_PREL21): Define.
1445
043bf05a
MS
14462015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
1447
1448 * elfnn-aarch64.c: (TLSIE_LD_GOTTREL_PREL19): Fix HOWTO bit field width.
1449 (aarch64_tls_transition_without_check, aarch64_reloc_got_type)
1450 (elfNN_aarch64_final_link_relocate, elfNN_aarch64_tls_relax)
1451 (elfNN_aarch64_relocate_section, elfNN_aarch64_gc_sweep_hook)
1452 (elfNN_aarch64_check_relocs): Handle
1453 BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19.
1454
1455 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend)
1456 (_bfd_aarch64_elf_resolve_relocation): Likewise.
1457
7366006f
MS
14582015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
1459
1460 * elfnn-aarch64.c: (TLSDESC_CALL): Fix HOWTO bit field width.
1461
07875fbc
MS
14622015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
1463
1464 * elfnn-aarch64.c (TLSLE_MOVW_TPREL_G2)
1465 (TLSLE_MOVW_TPREL_G1, TLSLE_MOVW_TPREL_G1_NC)
1466 (TLSLE_MOVW_TPREL_G0, TLSLE_MOVW_TPREL_G0_NC): Fix bit field
1467 width.
1468
49d8f92c
MS
14692015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
1470
1471 * elfnn-aarch64.c: (TLSIE_MOVW_GOTTPREL_G0_NC): Fix HOWTO bit
1472 field width.
1473
c86934ce
NC
14742015-02-26 Nick Clifton <nickc@redhat.com>
1475
1476 PR binutils/17512
1477 * coffcode.h (coff_compute_section_file_positions): Report
1478 negative page sizes.
1479 * elf.c (elf_fake_sections): Handle excessive alignmment powers.
1480 (assign_file_positions_for_non_load_sections): Replace assertion
1481 with an error message.
1482 (rewrite_elf_program_header): Handle excessive segment
1483 alignments.
1484 * mach-o.c (bfd_mach_o_read_section_32): Likewise.
1485 (bfd_mach_o_read_section_64): Likewise.
1486 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Use %B to
1487 print a bfd name, not %A.
1488
bd4d2eaa
AM
14892015-02-26 Alan Modra <amodra@gmail.com>
1490
1491 * elf64-ppc.c (plt_stub_size, build_plt_stub): Don't build
1492 thread-safe stubs for iplt.
1493 (build_tls_get_addr_stub): Restore r2 immediately after call.
1494
99654aaf
TG
14952015-02-26 Terry Guo <terry.guo@arm.com>
1496
1497 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Update how we
1498 merge Tag_ABI_HardFP_use.
1499
a127494f
AM
15002015-02-26 Alan Modra <amodra@gmail.com>
1501
1502 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Heed -z nocopyreloc.
1503 Use text relocs rather than giving an error on trying to use
1504 .dynbss for protected shared lib vars.
1505 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
1506
bac13f5a
AB
15072015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1508
1509 * elf32-avr.c (struct elf_avr_section_data): New structure.
1510 (struct avr_relax_info): New structure.
1511 (elf_avr_new_section_hook): New function.
1512 (struct elf_avr_section_data): Add relax_info.
1513 (get_avr_relax_info): New function.
1514 (init_avr_relax_info): New function.
1515 (elf32_avr_relax_delete_bytes): Find next property record before
1516 deleting bytes. When deleting don't move bytes beyond the next
1517 property record.
1518 (avr_elf32_assign_records_to_section): New function.
1519 (avr_property_record_compare): New function.
1520 (avr_load_all_property_sections): New function.
1521 (elf32_avr_relax_section): Load property data. After relaxing the
1522 section, move any .align directives that have enough deleted bytes
1523 before them.
1524 (bfd_elf32_new_section_hook): Define.
1525
137c83d6
AB
15262015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1527
1528 * elf32-avr.h (struct avr_property_header): New strucure.
1529 (avr_elf32_load_property_records): Declare.
1530 (avr_elf32_property_record_name): Declare.
1531 * elf32-avr.c: Add bfd_stdint.h include.
1532 (retrieve_local_syms): New function.
1533 (get_elf_r_symndx_section): New function.
1534 (get_elf_r_symndx_offset): New function.
1535 (internal_reloc_compare): New function.
1536 (struct avr_find_section_data): New structure.
1537 (avr_is_section_for_address): New function.
1538 (avr_find_section_for_address): New function.
1539 (avr_elf32_load_records_from_section): New function.
1540 (avr_elf32_load_property_records): New function.
1541 (avr_elf32_property_record_name): New function.
1542
fdd410ac
AB
15432015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1544
1545 * elf32-avr.h (AVR_PROPERTY_RECORD_SECTION_NAME): Define.
1546 (AVR_PROPERTY_RECORDS_VERSION): Define.
1547 (AVR_PROPERTY_SECTION_HEADER_SIZE): Define.
1548 (struct avr_property_record): New structure.
1549
685080f2
NC
15502015-02-24 Nick Clifton <nickc@redhat.com>
1551
1552 * elf32-v850.c (v850_set_note): New function. Creates a Renesas
1553 style note entry.
1554 (v850_elf_make_note_section): New function. Creates a note
1555 section.
1556 (v850_elf_create_sections): New function. Create a note section
1557 if one is not already present.
1558 (v850_elf_set_note): New function. Adds a note to a bfd.
1559 (v850_elf_copy_private_bfd_data): New function. Copies V850
1560 notes.
1561 (v850_elf_merge_notes): New function. Merges V850 notes.
1562 (print_v850_note): New function. Displays a V850 note.
1563 (v850_elf_print_notes): New function. Displays all notes attached
1564 to a bfd.
1565 (v850_elf_merge_private_bfd_data): Call v850_elf_merge_notes.
1566 (v850_elf_print_private_bfd_data): Call v850_elf_print_notes.
1567 (v850_elf_fake_sections): Set the type of the V850 note section.
1568 * bfd-in.h (v850_elf_create_sections): Add prototype.
1569 (v850_elf_set_note): Add prototype.
1570 * bfd-in2.h: Regenerate.
1571
31593e1b
NC
15722015-02-24 Nick Clifton <nickc@redhat.com>
1573
1574 * configure.ac (AC_CHECK_HEADERS): Add wctype.h.
1575 * configure: Regenerate.
1576 * config.in: Regenerate.
1577 * peXXigen.c: Include wctype.h if HAVE_WCTYPE_H is defined.
1578 (u16_mbtowc): Use wint_t types if HAVE_WCTYPE_H is defined.
1579 (rsrc_cmp): Use towlower instead of wcsncasecmp if HAVE_WCTYPE_H
1580 is defined.
1581
3ad797fd
NC
15822015-02-24 Nick Clifton <nickc@redhat.com>
1583
1584 * pdp11.c (set_section_contents): Pad the .text and .data sections
1585 to their aligned sizes.
1586
5518c738
YS
15872015-02-23 Yoshinori Sato <ysato@users.sourceforge.jp>
1588
1589 * config.bfd: Add h8300-*-linux.
1590 * configure.ac: Add h8300_elf32_linux_vec.
1591 * configure: Regenerate.
1592 * elf32-h8300.c: Likewise.
1593 * targets.c(_bfd_target_vector): Likewise.
1594
cb967f0d
NC
15952015-02-23 Nick Clifton <nickc@redhat.com>
1596
1597 PR 17914
1598 * cpu-w65.c: Correct typos in license notice.
1599
0f8f0c57
NC
1600 PR 17940
1601 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Adjust debug
1602 symbols at end of sections. Adjust function sizes.
1603
4ef9f41a
AA
16042015-02-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
1605
1606 * elf-bfd.h (elfcore_write_s390_vxrs_low): Add prototype.
1607 (elfcore_write_s390_vxrs_high): Likewise.
1608 * elf.c (elfcore_grok_s390_vxrs_low): New function.
1609 (elfcore_grok_s390_vxrs_high): New function.
1610 (elfcore_grok_note): Call them.
1611 (elfcore_write_s390_vxrs_low): New function.
1612 (elfcore_write_s390_vxrs_high): New function.
1613 (elfcore_write_register_note): Call them.
1614
837914ee
BD
16152015-02-19 Branko Drevensek <branko.drevensek@gmail.com>
1616
1617 PR 17995
1618 * verilog.c (verilog_write_record): Correct buffer size.
1619
cf18fda4
AM
16202015-02-19 Alan Modra <amodra@gmail.com>
1621
1622 * elflink.c (_bfd_elf_define_linkage_sym): Set 'bed' earlier.
1623
d983c8c5
AM
16242015-02-19 Alan Modra <amodra@gmail.com>
1625
1626 PR ld/4317
1627 * elflink.c (elf_link_input_bfd): Drop undefined local syms.
1628 (elf_link_output_extsym): Drop local and global undefined syms.
1629 Tidy. Expand comment.
1630
2ec55de3
AM
16312015-02-17 Alan Modra <amodra@gmail.com>
1632
1633 PR ld/17975
1634 * elflink.c (struct elf_outext_info): Remove need_second_pass
1635 and second_pass.
1636 (elf_link_output_extsym): Delete code handling second forced
1637 local pass. Move code emitting NULL STT_FILE symbol later, so
1638 that it can be omitted if forced local is stripped. Don't
1639 emit the NULL STT_FILE if no file symbols have been output.
1640 (bfd_elf_final_link): Remove second forced local pass.
1641 * elf32-ppc.c (add_stub_sym): Set linker_def on linker syms.
1642 (ppc_elf_size_dynamic_sections): Likewise.
1643 * elf64-ppc.c (ppc_build_one_stub): Likewise.
1644 (build_global_entry_stubs): Likewise.
1645 (ppc64_elf_build_stubs): Likewise.
1646
6dfb72b9
L
16472015-02-16 H.J. Lu <hongjiu.lu@intel.com>
1648
1649 PR ld/17975
1650 * elflink.c (elf_link_output_extsym): Only check filesym_count
1651 when outputting a NULL FILE symbol. Set second_pass_sym to
1652 h->forced_local && !h->root.linker_def.
1653
576fa883
L
16542015-02-15 H.J. Lu <hongjiu.lu@intel.com>
1655
1656 * elf32-i386.c (elf_i386_always_size_sections): Set root.linker_def
1657 on _TLS_MODULE_BASE_.
1658 * elf64-x86-64.c (elf_x86_64_always_size_sections): Likewise.
1659
62f8d217
AM
16602015-02-15 Alan Modra <amodra@gmail.com>
1661
1662 * dwarf2.c (read_rangelist): Correct buffer overflow check
1663 Whitespace throughout file.
1664
ce875075
AM
16652015-02-14 Alan Modra <amodra@gmail.com>
1666
1667 PR ld/17973
1668 * bfd.c (struct bfd): Add lto_output.
1669 * linker.c (_bfd_handle_already_linked): Explicitly test for
1670 objects added by the lto plugin.
1671 * opncls.c (_bfd_new_bfd_contained_in): Copy lto_output and
1672 no_export flags from archive.
1673 * archive.c (open_nested_file): New function, setting lto_output
1674 and no_export, extracted from..
1675 (find_nested_archive): ..here. Flip params. Rename from
1676 _bfd_find_nested_archive.
1677 (_bfd_get_elt_at_filepos): Correct var typo. Use open_nested_file.
1678 (_bfd_look_for_bfd_in_cache): Copy no_export.
1679 * elflink.c (elf_link_add_object_symbols): Remove now unnecessary
1680 my_archive->no_export test.
1681 (elf_link_input_bfd): Drop existing lto_output STT_FILE syms.
1682 Don't use the file name when adding lto_output STT_FILE sym.
1683 * bfd-in2.h: Regenerate.
1684
451dfd38
AM
16852015-02-13 Alan Modra <amodra@gmail.com>
1686
1687 PR binutils/17512
1688 * elf64-ppc.c (opd_entry_value): Tighten offset check. Remove
1689 now redundant assert.
1690
dbb3fbbb
NC
16912015-02-12 Nick Clifton <nickc@redhat.com>
1692
1693 PR binutils/17512
1694 * dwarf.c (read_1_byte, read_1_signed_byte, read_2_bytes)
1695 (read_4_bytes, read_8_bytes, read_n_bytes, read_string)
1696 (read_indirect_string, read_alt_indirect_string)
1697 (read_alt_indirect_ref, read_address, read_abbrevs)
1698 (read_attribute_value, read_attribute, decode_line_info)
1699 (find_abstract_instance_name, read_rangelist)
1700 (scan_unit_for_symbols, parse_comp_unit)
1701 (_bfd_dwarf2_find_nearest_line): Harden DWARF reading code. Pass
1702 end pointers to reading functions and check for offsets taking
1703 pointers out of range. Replace calls to read_*_leb128 with calls
1704 to safe_read_leb128.
1705
1706 (* elf64-ppc.c (opd_entry_value): Add a check for an overlarge
1707 offset.
1708 * syms.c (_bfd_stab_section_find_nearest_line): Add checks for
1709 computed file_name address being before the start of the string
1710 table.
1711
b9dc5a87
L
17122015-02-11 H.J. Lu <hongjiu.lu@intel.com>
1713
1714 PR ld/17878
1715 * bfd.c (bfd_plugin_format): New.
1716 (bfd): Add plugin_format and plugin_dummy_bfd.
1717 * plugin.c (try_load_plugin): Take a pointer to bfd_boolean
1718 argument to return TRUE if any plugin is found. Set plugin_format.
1719 (has_plugin): New.
1720 (bfd_plugin_target_p): New.
1721 (bfd_plugin_specified_p): Likewise.
1722 (bfd_plugin_target_p): Likewise.
1723 (register_ld_plugin_object_p): Likewise.
1724 (bfd_plugin_set_plugin): Set has_plugin.
1725 (load_plugin): Cache try_load_plugin result.
1726 (bfd_plugin_object_p): Try ld_plugin_object_p first. Check
1727 plugin_format.
1728 * plugin.h (bfd_plugin_target_p): New.
1729 (bfd_plugin_specified_p): Likewise.
1730 (register_ld_plugin_object_p): Likewise.
1731 * bfd-in2.h: Regenerated.
1732
55172d69
PA
17332015-02-11 Pedro Alves <palves@redhat.com>
1734
1735 * libbfd-in.h [__cplusplus]: Open extern "C" scope.
1736 * libcoff-in.h [__cplusplus]: Open extern "C" scope.
1737 * libbfd.h: Regenerate.
1738 * libcoff.h: Regenerate.
1739
1740 * elf-bfd.h [__cplusplus]: Wrap in extern "C".
1741 * mach-o.h [__cplusplus]: Wrap in extern "C".
1742 * som.h [__cplusplus]: Wrap in extern "C".
1743
77ef8654
NC
17442015-02-10 Nick Clifton <nickc@redhat.com>
1745
1746 PR binutils/17512
1747 * coffcode.h (styp_to_sec_flags): Use an unsigned long type to
1748 hold the flag bits.
1749 * peXXigen.c (pe_print_reloc): Use unsigned types to hold the
1750 size and number of relocs.
1751 (pe_print_debugdata): Use a 32-bit aligned buffer to store the
1752 codeview record.
1753 * versados.c (process_otr): Check the esdid value before using it
1754 to access the EDATA.
1755
35181b3e
EM
17562015-02-09 Ed Maste <emaste@freebsd.org>
1757
1758 * elf32-i386.c (elf_i386_get_plt_sym_val): Avoid incrementing
1759 uninitialized and unused variable.
1760 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
1761
989f9879
AM
17622015-02-09 Alan Modra <amodra@gmail.com>
1763
1764 * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault on NULL
1765 tls_sec.
1766 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1767 * elflink.c (elf_link_output_extsym): Don't assert on NULL tls_sec.
1768
ca4be51c
AM
17692015-02-09 Alan Modra <amodra@gmail.com>
1770
1771 * elflink.c: Whitespace, formatting fixes.
1772 (elf_link_input_bfd): Clarify comment.
1773 (elf_link_output_extsym): Exclude symbols in linker created
1774 sections when testing for plugin symbols.
1775
1952c5cd
L
17762015-02-07 H.J. Lu <hongjiu.lu@intel.com>
1777
1778 PR ld/17935
1779 * elf32-i386.c (elf_i386_readonly_dynrelocs): Also issue a
1780 warning for relocation in readonly section for -z text.
1781 (elf_i386_size_dynamic_sections): Likewise.
1782 * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
1783 (elf_x86_64_size_dynamic_sections): Likewise.
1784
9e2dec47
L
17852015-02-06 H.J. Lu <hongjiu.lu@intel.com>
1786
1787 PR ld/12365
1788 PR ld/14272
1789 * elflink.c (_bfd_elf_fix_symbol_flags): Revert the last change.
1790 (elf_link_input_bfd): Mark the plugin symbol undefined if it is
1791 referenced from a non-IR file.
1792
5929c344
NC
17932015-02-06 Nick Clifton <nickc@redhat.com>
1794
1795 PR binutils/17512
1796 * peXXigen.c (rsrc_print_resource_entries): Add range check for
1797 addresses that wrap around the address space.
1798 (rsrc_parse_entry): Likewise.
1799
60f79275
L
18002015-02-03 H.J. Lu <hongjiu.lu@intel.com>
1801
1802 PR ld/12365
1803 PR ld/14272
1804 * elflink.c (_bfd_elf_fix_symbol_flags): Mark the plugin symbol
1805 undefined if it is referenced from a non-IR file.
1806
64d29018
NC
18072015-02-03 Nick Clifton <nickc@redhat.com>
1808
1809 PR binutils/17512
1810 * ecoff.c: Use bfd_alloc2 to allocate space for structure arrays.
1811 (_bfd_ecoff_slurp_symbol_table): Check for a negative symbol
1812 index or an out of range fdr index.
1813 * elf-m10300.c (mn10300_info_to_howto): Fix typo in error message.
1814 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
1815 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
1816 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
1817 * elf32-cr16c.c (elf_cr16c_info_to_howto_rel): Likewise.
1818 * elf32-cris.c (cris_info_to_howto_rela): Likewise.
1819 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
1820 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
1821 * elf32-d30v.c (d30v_info_to_howto_rel): Likewise.
1822 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
1823 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
1824 * elf32-frv.c (frv_info_to_howto_rela): Likewise.
1825 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
1826 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
1827 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
1828 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
1829 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
1830 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
1831 * elf32-m32r.c (m32r_info_to_howto_rel): Likewise.
1832 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
1833 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
1834 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
1835 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
1836 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
1837 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
1838 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
1839 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
1840 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
1841 * elf32-nds32.c (nds32_info_to_howto_rel): Likewise.
1842 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
1843 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
1844 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
1845 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
1846 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
1847 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
1848 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
1849 * elf32-v850.c (v850_elf_perform_relocation): Likewise.
1850 * elf32-vax.c (rtype_to_howto): Likewise.
1851 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
1852 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
1853 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
1854 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
1855 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
1856 * mach-o.c: Use bfd_alloc2 to allocate space for structure arrays.
1857 (bfd_mach_o_canonicalize_one_reloc): Fix check on out
1858 of range symbol indicies.
1859 (bfd_mach_o_canonicalize_relocs): Check for out of range alloc.
1860 (bfd_mach_o_canonicalize_dynamic_reloc): Likewise.
1861 (bfd_mach_o_build_dysymtab): Likewise.
1862 (bfd_mach_o_write_symtab_content): Set the string table size to
1863 zero upon error.
1864 (bfd_mach_o_read_symtab_symbols): Reset the nsyms value if the
1865 read fails.
1866 * peXXigen.c (pe_print_edata): Check for numeric overflow in edt
1867 fields.
1868 * tekhex.c (first_phase): Check for src pointer reaching end of
1869 buffer.
1870
3a635617
WN
18712015-02-03 Will Newton <will.newton@linaro.org>
1872
46b87d49
WN
1873 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol):
1874 Set st_value to zero for undefined symbols if the reference
1875 is weak or pointer_equality_needed is FALSE.
1876
3a635617
WN
1877 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Improve
1878 comment discussing why we clear st_value for some symbols.
1879
0c4bd9d9
KLC
18802015-02-02 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1881
1882 * elf32-nds32.c (nds32_get_section_contents): Add one more argument.
1883 (nds32_elf_relocate_section): Do not relocate R_NDS32_LONGJUMP7.
1884
b86ac8e3
AM
18852015-01-29 Alan Modra <amodra@gmail.com>
1886
1887 * elf64-ppc.c (ppc64_elf_relocate_section): Correct GOT_TLSLD
1888 optimization. Tidy mask for GOT_TLSGD optimization.
1889 * elf32-ppc.c (ppc_elf_relocate_section): Likewise. Correct
1890 location of nop zapping high insn too.
1891
dbd1e97e
AM
18922015-01-28 Alan Modra <amodra@gmail.com>
1893
1894 * elf64-ppc.h (struct ppc64_elf_params): Add "object_in_toc".
1895 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Assume that global symbols
1896 in .toc indicate xlc compiled code that might require a rw .toc.
1897
3f8107ab
AM
18982015-01-28 James Bowman <james.bowman@ftdichip.com>
1899
1900 * Makefile.am: Add FT32 files.
1901 * archures.c (enum bfd_architecture): Add bfd_arch_ft32.
1902 (bfd_mach_ft32): Define.
1903 (bfd_ft32_arch): Declare.
1904 (bfd_archures_list): Add bfd_ft32_arch.
1905 * config.bfd: Handle FT32.
1906 * configure.ac: Likewise.
1907 * cpu-ft32.c: New file.
1908 * elf32-ft32.c: New file.
1909 * reloc.c (BFD_RELOC_FT32_10, BFD_RELOC_FT32_20, BFD_RELOC_FT32_17,
1910 BFD_RELOC_FT32_18): Define.
1911 * targets.c (_bfd_target_vector): Add ft32_elf32_vec.
1912 * bfd-in2.h: Regenerate.
1913 * libbfd.h: Regenerate.
1914 * Makefile.in: Regenerate.
1915 * configure: Regenerate.
1916 * po/SRC-POTFILES.in: Regenerate.
1917
37e3922e
NC
19182015-01-27 Nick Clifton <nickc@redhat.com>
1919
1920 PR binutils/17512
1921 * pdp11.c (aout_get_external_symbols): Return false if there are
1922 no symbols.
1923
877a8638
NC
1924 * dwarf2.c (concat_filename): Check for an empty directory table.
1925 (scan_unit_for_symbols): Check for reading off the end of the
1926 unit.
1927 (parse_comp_unit): Check for a DW_AT_comp_dir attribute with a
1928 non-string form.
1929 * elf64-ppc.c (opd_entry_value): Fail if there are no relocs
1930 available.
1931
18393a2e
KLC
19322015-01-26 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1933
1934 * elf32-nds32.c (nds32_elf_pick_relax): Fix again setting.
1935
055173ca
DD
19362015-01-22 DJ Delorie <dj@redhat.com>
1937
1938 * elf32-m32c.c (m32c_apply_reloc_24): New.
1939 (m32c_elf_howto_table): Use it for R_M32C_24.
1940 (m32c_elf_relocate_section): Handle R_M32C_24 specially.
1941
4e5cb37e
NC
19422015-01-22 Nick Clifton <nickc@redhat.com>
1943
1944 PR binutils/17512
1945 * coffcode.h (handle_COMDAT): When searching for the section
1946 symbol, make sure that there is space left in the symbol table.
1947 * vms-alpha.c (_bfd_vms_slurp_ehdr): Add range checks.
1948
86eafac0
NC
19492015-01-21 Nick Clifton <nickc@redhat.com>
1950
1951 PR binutils/17512
1952 * coffcode.h (coff_set_arch_mach_hook): Check return value from
1953 bfd_malloc.
1954 (coff_slurp_line_table): Return FALSE if the line number
1955 information was corrupt.
1956 (coff_slurp_symbol_table): Return FALSE if the symbol information
1957 was corrupt.
1958 * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Always
1959 initialise the fields of the dyld_info structure.
1960 (bfd_mach_o_build_exec_seg_command): Replace assertion with an
1961 error message and a return value.
1962 (bfd_mach_o_layout_commands): Change the function to boolean.
1963 Return FALSE if the function fails.
1964 (bfd_mach_o_build_commands): Fail if bfd_mach_o_layout_commands
1965 fails.
1966 (bfd_mach_o_read_command): Fail if an unrecognised command is
1967 encountered.
1968 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Set bfd_error if the
1969 read fails.
1970 (slurp_symtab): Check the return from bfd_malloc.
1971 (_bfd_XX_bfd_copy_private_bfd_data_common): Fail if the copy
1972 encountered an error.
1973 (_bfd_XXi_final_link_postscript): Fail if a section could not be
1974 copied.
1975 * peicode.h (pe_bfd_object_p): Fail if the header could not be
1976 swapped in.
1977 * tekhex.c (first_phase): Fail if the section is too big.
1978 * versados.c (struct esdid): Add content_size field.
1979 (process_otr): Use and check the new field.
1980 (versados_get_section_contents): Check that the section exists and
1981 that the requested data is available.
1982
03d5b773
CLT
19832015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
1984
1985 * elf32-nios2.c (elf_backend_default_execstack): Define as 0.
1986
1c9177d9
AM
19872015-01-20 Alan Modra <amodra@gmail.com>
1988
1989 PR ld/17615
1990 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Don't drop
1991 ELF_COMMON_DEF syms.
1992
c4621b33
AM
19932015-01-19 Alan Modra <amodra@gmail.com>
1994
3e2aa5bb 1995 PR ld/17615
c4621b33
AM
1996 * elf-bfd.h (ELF_COMMON_DEF_P): Note that this might be true for
1997 linker script assignments too.
1998 * elflink.c (elf_gc_sweep_symbol): Don't drop ELF_COMMON_DEF syms.
1999 (bfd_elf_gc_mark_dynamic_ref_symbol): Similarly.
2000
0ba38529
AM
20012015-01-19 Alan Modra <amodra@gmail.com>
2002
2003 * elf32-bfin.c (bfin_bfd_reloc_type_lookup): Correct loop iteration
2004 to allow return of first howto.
2005 * elf32-fr30.c (fr30_reloc_type_lookup): Likewise.
2006 * elf32-m32c.c (m32c_reloc_type_lookup): Likewise.
2007 * elf32-moxie.c (moxie_reloc_type_lookup): Likewise.
2008 * elf32-or1k.c (or1k_reloc_type_lookup): Likewise.
2009 * elf32-rl78.c (rl78_reloc_type_lookup): Likewise.
2010 * elf32-rx.c (rx_reloc_type_lookup): Likewise.
2011 * elf32-tilepro.c (tilepro_reloc_type_lookup): Likewise.
2012 * elf32-xstormy16.c (xstormy16_reloc_type_lookup): Likewise.
2013 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
2014 * elf32-nios2.c (nios2_reloc_map): Add mapping for R_NIOS2_NONE.
2015 * elf32-spu.c (spu_elf_bfd_to_reloc_type): Allow return of R_SPU_NONE.
2016 (spu_elf_reloc_type_lookup): Adjust to suit.
2017
6346d5ca
AM
20182015-01-19 Alan Modra <amodra@gmail.com>
2019
2020 * bfd-in.h (bfd_get_section_limit_octets): New define, extracted from..
2021 (bfd_get_section_limit): ..here.
2022 * reloc.c (bfd_perform_relocation): Correct bfd_reloc_outofrange check.
2023 (bfd_install_relocation, _bfd_final_link_relocate): Add same check here.
2024 * elf32-sh.c (sh_elf_reloc): Correct bfd_reloc_outofrange check.
2025 * elf32-ppc.c (ppc_elf_addr16_ha_reloc): Remove duplicated
2026 bfd_reloc_outofrange check.
2027 * bfd-in2.h: Regenerate.
2028
2029 * cpu-ns32k.c (_bfd_do_ns32k_reloc_contents): Return bfd_reloc_ok
2030 on zero size relocs.
2031 * ecoff.c (ecoff_reloc_link_order): Likewise.
2032 * elf32-nds32.c (nds32_relocate_contents): Likewise.
2033 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
2034
2035 * reloc.c (_bfd_relocate_contents): Don't bomb on zero size relocs.
2036 (_bfd_clear_contents): Likewise.
2037 * elfxx-mips.c (mips_elf_obtain_contents): Likewise.
2038 (mips_elf_perform_relocation): Likewise.
2039
2040 * aoutx.h (aout_link_reloc_link_order): Allow for NULL return
2041 from malloc on zero size alloc.
2042 * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
2043 * elflink.c (elf_reloc_link_order): Likewise.
2044 * linker.c (_bfd_generic_reloc_link_order): Likewise.
2045 * pdp11.c (aout_link_reloc_link_order): Likewise.
2046 * xcofflink.c (xcoff_reloc_link_order): Likewise.
2047
2048 * aoutx.h (howto_table_ext): Ensure NONE relocs have size 3,
2049 bitsize 0, and complain_overflow_dont.
2050 * coff-sparc.c (coff_sparc_howto_table): Likewise.
2051 * elf-hppa.h (elf_hppa_howto_table): Likewise.
2052 * elf-m10200.c (elf_mn10200_howto_table): Likewise.
2053 * elf-m10300.c (elf_mn10300_howto_table): Likewise.
2054 * elf32-arc.c (elf_arc_howto_table): Likewise.
2055 * elf32-arm.c (elf32_arm_howto_table_1): Likewise.
2056 * elf32-avr.c (elf_avr_howto_table): Likewise.
2057 * elf32-bfin.c (bfin_howto_table): Likewise.
2058 * elf32-cr16.c (cr16_elf_howto_table): Likewise.
2059 * elf32-cris.c (cris_elf_howto_table): Likewise.
2060 * elf32-crx.c (crx_elf_howto_table): Likewise.
2061 * elf32-d10v.c (elf_d10v_howto_table): Likewise.
2062 * elf32-d30v.c (elf_d30v_howto_table): Likewise.
2063 * elf32-dlx.c (dlx_elf_howto_table): Likewise.
2064 * elf32-epiphany.c (epiphany_elf_howto_table): Likewise.
2065 * elf32-fr30.c (fr30_elf_howto_table): Likewise.
2066 * elf32-frv.c (elf32_frv_howto_table): Likewise.
2067 * elf32-h8300.c (h8_elf_howto_table): Likewise.
2068 * elf32-i370.c (i370_elf_howto_raw): Likewise.
2069 * elf32-i386.c (elf_howto_table): Likewise.
2070 * elf32-i860.c (elf32_i860_howto_table): Likewise.
2071 * elf32-i960.c (elf32_i960_relocate): Likewise.
2072 * elf32-ip2k.c (ip2k_elf_howto_table): Likewise.
2073 * elf32-iq2000.c (iq2000_elf_howto_table): Likewise.
2074 * elf32-lm32.c (lm32_elf_howto_table): Likewise.
2075 * elf32-m32c.c (m32c_elf_howto_table): Likewise.
2076 * elf32-m32r.c (m32r_elf_howto_table): Likewise.
2077 * elf32-m68hc11.c (elf_m68hc11_howto_table): Likewise.
2078 * elf32-m68hc12.c (elf_m68hc11_howto_table): Likewise.
2079 * elf32-m68k.c (howto_table): Likewise.
2080 * elf32-mcore.c (mcore_elf_howto_raw): Likewise.
2081 * elf32-mep.c (mep_elf_howto_table): Likewise.
2082 * elf32-metag.c (elf_metag_howto_table): Likewise.
2083 * elf32-microblaze.c (microblaze_elf_howto_raw): Likewise.
2084 * elf32-mips.c (elf_mips_howto_table_rel): Likewise.
2085 * elf32-moxie.c (moxie_elf_howto_table): Likewise.
2086 * elf32-msp430.c (elf_msp430_howto_table): Likewise.
2087 * elf32-mt.c (mt_elf_howto_table): Likewise.
2088 * elf32-nds32.c (nds32_elf_howto_table): Likewise.
2089 * elf32-nios2.c (elf_nios2_howto_table_rel): Likewise.
2090 * elf32-or1k.c (or1k_elf_howto_table): Likewise.
2091 * elf32-pj.c (pj_elf_howto_table): Likewise.
2092 * elf32-ppc.c (ppc_elf_howto_raw): Likewise.
2093 * elf32-rl78.c (rl78_elf_howto_table): Likewise.
2094 * elf32-rx.c (rx_elf_howto_table): Likewise.
2095 * elf32-s390.c (elf_howto_table): Likewise.
2096 * elf32-score.c (elf32_score_howto_table): Likewise.
2097 * elf32-score7.c (elf32_score_howto_table): Likewise.
2098 * elf32-sh-relocs.h (R_SH_NONE): Likewise.
2099 * elf32-spu.c (elf_howto_table): Likewise.
2100 * elf32-tic6x.c (elf32_tic6x_howto_table): Likewise.
2101 * elf32-tilepro.c (tilepro_elf_howto_table): Likewise.
2102 * elf32-v850.c (v850_elf_howto_table): Likewise.
2103 * elf32-vax.c (howto_table): Likewise.
2104 * elf32-visium.c (visium_elf_howto_table): Likewise.
2105 * elf32-xc16x.c (xc16x_elf_howto_table): Likewise.
2106 * elf32-xgate.c (elf_xgate_howto_table): Likewise.
2107 * elf32-xstormy16.c (xstormy16_elf_howto_table): Likewise.
2108 * elf32-xtensa.c (elf_howto_table): Likewise.
2109 * elf64-alpha.c (elf64_alpha_howto_table): Likewise.
2110 * elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
2111 * elf64-mmix.c (elf_mmix_howto_table): Likewise.
2112 * elf64-ppc.c (ppc64_elf_howto_raw): Likewise.
2113 * elf64-s390.c (elf_howto_table): Likewise.
2114 * elf64-sh64.c (sh_elf64_howto_table): Likewise.
2115 * elf64-x86-64.c (x86_64_elf_howto_table): Likewise.
2116 * elfn32-mips.c (elf_mips_howto_table_rel): Likewise.
2117 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Likewise.
2118 (elfNN_aarch64_howto_none): Likewise.
2119 * elfxx-ia64.c (ia64_howto_table): Likewise.
2120 * elfxx-sparc.c (_bfd_sparc_elf_howto_table): Likewise.
2121 * elfxx-tilegx.c (tilegx_elf_howto_table): Likewise.
2122 * nlm32-sparc.c (nlm32_sparc_howto_table): Likewise.
2123
6333bc0d
L
21242015-01-15 H.J. Lu <hongjiu.lu@intel.com>
2125
2126 PR ld/17847
2127 * elf64-x86-64.c (elf_x86_64_relocate_section): Don't complain
2128 about -fPIC if the symbol is undefined when building executable.
2129
cd21f5da
NC
21302015-01-15 Nick Clifton <nickc@redhat.com>
2131
2132 PR binutils/17512
2133 * elf-m10300.c (mn10300_info_to_howto): Replace assertion with an
2134 error message. Never return an invalid howto pointer.
2135 * elf32-cr16.c (cr16_info_to_howto): Likewise.
2136 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
2137 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
2138 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
2139 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
2140 * elf32-mips.c (mips_elf32_rtype_to_howto): Likewise.
2141 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
2142 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
2143 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
2144 * elf32-v850.c (v850_elf_info_to_howto_rela): Likewise.
2145 * elf32-vax.c (rtype_to_howto): Likewise.
2146 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
2147 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
2148 * elfn32-mips.c (sh_elf_info_to_howto): Likewise.
2149 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
2150 (sh_elf_reloc): Check that the reloc is in range.
2151 * reloc.c (bfd_perform_relocation): Check that the section is big
2152 enough for the entire reloc.
2153 (bfd_generic_get_relocated_section_contents): Report unexpected
2154 return values from perform_reloc.
2155
2d071cfc
NC
21562015-01-15 Nick Clifton <nickc@redhat.com>
2157
2158 * elf32-msp430.c (msp430_elf_relax_section): Skip unhandled
2159 relocs. Include PC-relative adjustment for R_MSP430X_ABS16
2160 relaxation.
2161
ca55926c
AM
21622015-01-15 Alan Modra <amodra@gmail.com>
2163
2164 * elflink.c (_bfd_elf_link_omit_section_dynsym): Return true for
2165 any output section matching a linker created dynobj section.
2166
8539e4e8
AM
21672015-01-15 Alan Modra <amodra@gmail.com>
2168
2169 PR 17842
2170 * elflink.c (elf_link_output_sym): Assert elf_onesymtab set.
2171 (bfd_elf_final_link): Always create a symbol table when emit_relocs.
2172 Don't assign symtab file position unless symbols will be output.
2173 Merge blocks with condition in common. Don't call
2174 elf_backend_output_arch_local_syms or elf_backend_output_arch_syms
2175 unless other symbols are output. Move assignment of symtab_shndx
2176 file position. Localize variable.
2177
52db4ec2
JW
21782015-01-14 Jiong Wang <jiong.wang@arm.com>
2179
2180 * elf32-arm.c (elf32_arm_final_link_relocate): Reject R_ARM_32/_NOI when
2181 trying to defer them to runtime.
2182
0941db69
JW
21832015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2184
2185 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use SYMBOLIC_BIND
2186 to check if a symbol should be bound symbolically.
2187
0172429c
JW
21882015-01-13 Jiong Wang <jiong.wang@arm.com>
2189
2190 * elfnn-aarch64.c: (elfNN_aarch64_howto_table): Enable overflow check
2191 for TLSLE_MOVW_TPREL_G2.
2192
bab91cce
JW
21932015-01-13 Jiong Wang <jiong.wang@arm.com>
2194
2195 PR ld/17415
2196 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Mark
2197 R_AARCH64_TLSLE_ADD_TPREL_HI12 as complain_overflow_unsigned.
2198 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Correct the
2199 bit mask.
2200
3c758495
TG
22012015-01-12 Terry Guo <terry.guo@arm.com>
2202
2203 * elflink.c (_bfd_elf_gc_mark_debug_special_section_group): New
2204 function.
2205 (_bfd_elf_gc_mark_extra_sections): Use it.
2206
9d1d54d5
L
22072015-01-11 H.J. Lu <hongjiu.lu@intel.com>
2208
2209 PR ld/17827
2210 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): For PIE,
2211 only discard space for pc-relative relocs symbols which turn
2212 out to need copy relocs.
2213
c6e8e93a
NC
22142015-01-09 Nick Clifton <nickc@redhat.com>
2215
2216 * tekhex.c (getvalue): Fix thinko in test for correct extraction
2217 of value.
2218 (getsym): Return false if there was not enough data to extract the
2219 symbol.
2220
400cf8cb
AG
22212015-01-09 Anthony Green <green@moxielogic.com>
2222
2223 * elf32-moxie.c (ELF_MACHINE_ALT1): Define.
2224
23d4663e
NC
22252015-01-08 Nick Clifton <nickc@redhat.com>
2226
2227 * elf32-msp430.c (msp430_elf_relax_section): Add relaxation of
2228 16-bit absolute BR instructions to 10-bit pc-relative JMP
2229 instructions.
2230
063bb025
NC
22312015-01-08 Nick Clifton <nickc@redhat.com>
2232
2233 PR binutils/17512
2234 * coffcode.h (coff_slurp_symbol_table): Return false if we failed
2235 to load the line table.
2236 * elf.c (_bfd_elf_map_sections_to_segments): Enforce a minimum
2237 maxpagesize of 1.
2238 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Fail if
2239 the Data Directory Size is too large.
2240
6f25f223
L
22412015-01-06 H.J. Lu <hongjiu.lu@intel.com>
2242
2243 PR binutils/17512
2244 * elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocation.
2245 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
2246
85880250
NC
22472015-01-06 Nick Clifton <nickc@redhat.com>
2248
2249 PR binutils/17512
e7287c7f
NC
2250 * mach-o.c (bfd_mach_o_read_symtab_strtab): Zero terminate the
2251 string table.
2252
ec93045b
NC
2253 * reloc.c (bfd_get_reloc_size): Handle a reloc size of -1.
2254 (bfd_perform_relocation): Include the size of the reloc in the
2255 test for an out of range relocation.
2256 (bfd_generic_get_relocated_section_contents): Remove reloc range
2257 test.
2258
85880250
NC
2259 * coff-i860.c (CALC_ADDEND): Always set an addend value.
2260 * tekhex.c (getvalue): Add an end pointer parameter. Use it to
2261 avoid reading off the end of the buffer.
2262 (getsym): Likewise.
2263 (first_phase): Likewise.
2264 (pass_over): Pass an end pointer to the invoked function.
2265
533d0af0
L
22662015-01-05 H.J. Lu <hongjiu.lu@intel.com>
2267
2268 PR binutils/17512
2269 * elf32-i386.c (elf_i386_get_plt_sym_val): Return NULL on corrupt
2270 input.
2271 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
2272
896ca098
NC
22732015-01-05 Nick Clifton <nickc@redhat.com>
2274
2275 PR binutils/17512
2276 * archive.c (do_slurp_bsd_armap): Make sure that the parsed sized
2277 is at least big enough for the header to be read.
2278 * elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocs.
2279 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add range checks.
2280 (bfd_mach_o_read_command): Prevetn duplicate error messages about
2281 unrecognized commands.
2282 * syms.c (_bfd_stab_section_find_nearest_line): Add range checks
2283 when indexing into the string table.
2284
b90efa5b 22852015-01-01 Alan Modra <amodra@gmail.com>
ee3b52e9 2286
b90efa5b 2287 Update year range in copyright notice of all files.
ee3b52e9 2288
b90efa5b 2289For older changes see ChangeLog-2014
56882138 2290\f
b90efa5b 2291Copyright (C) 2015 Free Software Foundation, Inc.
752937aa
NC
2292
2293Copying and distribution of this file, with or without modification,
2294are permitted in any medium without royalty provided the copyright
2295notice and this notice are preserved.
2296
56882138
AM
2297Local Variables:
2298mode: change-log
2299left-margin: 8
2300fill-column: 74
2301version-control: never
2302End: