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