Make bfd_error_handler_type like vprintf
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
52d45da3
AM
12016-09-30 Alan Modra <amodra@gmail.com>
2
3 * bfd-in.h: Include stdarg.h.
4 * bfd.c (bfd_error_handler_type): Make like vprintf.
5 (_bfd_error_internal): Rename from _bfd_error_handler. Make static.
6 (error_handler_internal): New function, split out from..
7 (_bfd_default_error_handler): ..here. Rename to _bfd_error_handler.
8 (bfd_set_error_handler): Update.
9 (bfd_get_error_handler, bfd_get_assert_handler): Delete.
10 (_bfd_assert_handler): Make static.
11 * coffgen.c (null_error_handler): Update params.
12 * elf-bfd.h (struct elf_backend_data <link_order_error_handler>):
13 Don't use bfd_error_handler_type.
14 * elf64-mmix.c (mmix_dump_bpo_gregs): Likewise.
15 * elfxx-target.h (elf_backend_link_order_error_handler): Default
16 to _bfd_error_handler.
17 * libbfd-in.h (_bfd_default_error_handler): Don't declare.
18 (bfd_assert_handler_type): Likewise.
19 (_bfd_error_handler): Update.
20 * bfd-in2.h: Regenerate.
21 * libbfd.h: Regenerate.
22
9eaff861
AO
232016-09-28 Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
24
25 PR ld/20636
26 * elf-bfd.h (struct elf_backend_data): Delete
27 elf_backend_count_output_relocs callback and add
28 elf_backend_update_relocs.
29 * elf32-arm.c (elf32_arm_count_output_relocs): Deleted.
30 (emit_relocs): Deleted.
31 (elf32_arm_emit_relocs): Deleted.
32 (elf_backend_emit_relocs): Updated not to use the old functions.
33 (elf32_arm_update_relocs): New function.
34 (elf_backend_update_relocs): New define.
35 * elflink.c (bfd_elf_final_link): Add additional_reloc_count to the
36 relocation count. Call elf_backend_emit_relocs.
37 (_bfd_elf_size_reloc_section): Do not call
38 elf_backend_count_output_relocs.
39 * elfxx-target.h (elf_backend_count_output_relocs): Deleted.
40 (elf_backend_update_relocs): New define.
41
2df2751d
CL
422016-09-28 Christophe Lyon <christophe.lyon@linaro.org>
43
44 PR ld/20608
45 * elf32-arm.c (arm_type_of_stub): Handle the case when the pre-PLT
46 Thumb-ARM stub is too far.
47
1c5f704f
NC
482016-09-27 Nick Clifton <nickc@redhat.com>
49
50 PR ld/20634
51 * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Put 0 in the
52 timestamp field if real time values are not being stored.
53
c5da1932
VZ
542016-09-26 Vlad Zakharov <vzakhar@synopsys.com>
55
56 * warning.m4 (AC_EGREP_CPP_FOR_BUILD): Introduce macro
57 to verify CC_FOR_BUILD compiler.
58 (AM_BINUTILS_WARNINGS): Introduce ac_cpp_for_build variable
59 and add CC_FOR_BUILD compiler checks.
60 * Makefile.in: Regenerate.
61 * configure: Likewise.
62 * doc/Makefile.in: Likewise.
63
384f7503
A
642016-09-26 Awson <kyrab@mail.ru>
65
66 PR ld/17955
67 * coff-x86_64.c (coff_amd64_rtype_to_howto): Use an 8 byte offset
68 for R_AMD64_PCRQUAD relocations.
69
005d79fd
AM
702016-09-26 Alan Modra <amodra@gmail.com>
71
72 * elf-bfd.h (_bfd_elf_ppc_merge_fp_attributes): Declare.
73 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): New function.
74 (ppc_elf_merge_obj_attributes): Use it. Don't copy first file
75 attributes, merge them. Don't warn about undefined tag bits,
76 or copy unknown values to output.
77 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data): Call
78 _bfd_elf_ppc_merge_fp_attributes.
79
5025eb7c
AO
802016-09-23 Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
81
82 PR ld/20595
83 * elf-bfd.h (struct elf_backend_data): Add
84 elf_backend_count_output_relocs callback to count relocations in
85 the final output.
86 * elf-arm.c (elf32_arm_add_relocation): Deleted.
87 (elf32_arm_write_section): Move additional relocation to emit_relocs.
88 (elf32_arm_count_output_relocs): New function.
89 (emit_relocs): New function.
90 (elf32_arm_emit_relocs): New function.
91 (elf32_arm_vxworks_emit_relocs): New function.
92 (elf_backend_emit_relocs): Updated to use the new functions.
93 (elf_backend_count_output_relocs): New define.
94 * bfd/elflink.c (bfd_elf_final_link): Do not add additional_reloc_count
95 to the relocation count.
96 (_bfd_elf_link_size_reloc_section): Use callback to count the
97 relocations which will be in output.
98 (_bfd_elf_default_count_output_relocs): New function.
99 * bfd/elfxx-target.h (elf_backend_count_output_relocs): New define.
100
b19753ce
JM
1012016-09-19 Jose E. Marchesi <jose.marchesi@oracle.com>
102
103 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Allow
104 negative offsets to _GLOBAL_OFFSET_TABLE_ if the .got section is
105 bigger than 0x1000 bytes.
106
4f90d84b
TP
1072016-09-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
108
109 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Only mark section
110 not already marked.
111
e6d042fe
NC
1122016-09-14 Nick Clifton <nickc@redhat.com>
113
114 PR binutils/20605
115 * peicode.h (pe_bfd_read_buildid): Check that the Data Directory
116 contains a valid size for the Debug directory.
117
5d9bbb73
BA
1182016-09-14 Bhushan Attarde <bhushan.attarde@imgtec.com>
119
120 * format.c (struct bfd_preserve): New "build_id" field.
121 (bfd_preserve_save): Save "build_id".
122 (bfd_preserve_restore): Restore "build_id".
123
d8457a04
L
1242016-09-06 H.J. Lu <hongjiu.lu@intel.com>
125
126 PR ld/20550
127 * elf64-x86-64.c (elf_x86_64_relocate_section): Resolve size
128 relocation with copy relocation when building executable.
129
bf186506
SKS
1302016-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
131
132 PR ld/20545
133 * elf32-avr.c (elf32_avr_relax_delete_bytes): Add parameter
134 delete_shrinks_insn. Modify computation of shrinked_insn_address.
135 Compute shrink_boundary and adjust addend only if
136 addend_within_shrink_boundary.
137 (elf32_avr_relax_section): Modify calls to
138 elf32_avr_relax_delete_bytes to pass extra parameter.
139
42484486
TP
1402016-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
141
142 * elf32-arm.c (cmse_entry_fct_p): Store instruction encoding in an
143 array of bytes and use bfd_get_16 to interpret its encoding according
144 to endianness of target.
145
cd285db5
AM
1462016-09-01 Alan Modra <amodra@gmail.com>
147
148 * elf64-ppc.c (synthetic_opd): New static var.
149 (compare_symbols): Don't treat symbols in .opd specially for ELFv2.
150 (ppc64_elf_get_synthetic_symtab): Likewise. Comment.
151
09f92717
AM
1522016-08-31 Alan Modra <amodra@gmail.com>
153
154 * elf64-ppc.c (group_sections): Delete stub14_group_size. Instead,
155 track max group size with a new "group_size" var that is reduced
156 by a factor of 1024 from the 24-bit branch size whenever a 14-bit
157 branch is seen.
158
f7d69005
AM
1592016-08-31 Alan Modra <amodra@gmail.com>
160
161 * elf32-ppc.c (ppc_elf_section_processing): Delete.
162 (elf_backend_section_processing): Don't define.
163 (ppc_elf_modify_segment_map): Set p_flags and mark valid. Don't
164 split on non-exec sections differing in SHF_PPC_VLE. When
165 splitting segments, mark size invalid.
166
8941017b
AM
1672016-08-30 Alan Modra <amodra@gmail.com>
168
169 PR 20531
170 * elf32-ppc.c (_bfd_elf_ppc_set_arch): Add missing "break".
171
74437ea2
L
1722016-08-29 H.J. Lu <hongjiu.lu@intel.com>
173
174 PR ld/14961
175 PR ld/20515
176 * elf32-i386.c (elf_i386_check_relocs): Issue an error when
177 R_386_PC32 relocation is used to call IFUNC function in PIC
178 object.
179
53720c49
AM
1802016-08-27 Alan Modra <amodra@gmail.com>
181
182 PR 20520
183 * elf.c (_bfd_elf_setup_sections): Check that SHT_GROUP sections
184 have corresponding SHF_GROUP sections.
185 (bfd_elf_set_group_contents): Comment.
186
8a9e8e72
AM
1872016-08-27 Alan Modra <amodra@gmail.com>
188
189 PR 20519
190 * elf64-ppc.c (pc_dynrelocs): New function.
191 (ppc64_elf_relocate_section): Use it and must_be_dyn_reloc to
192 handle pic dynamic relocs.
193
68c39892
TP
1942016-08-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
195
196 * bfd-in.h (struct elf32_arm_params): Define.
197 (bfd_elf32_arm_set_target_relocs): Rename into ...
198 (bfd_elf32_arm_set_target_params): This. Use a struct
199 elf32_arm_params to pass all parameters but the bfd and bfd_link_info.
200 * bfd-in2.h: Regenerate.
201 * elf32-arm.c (bfd_elf32_arm_set_target_relocs): Rename into ...
202 (bfd_elf32_arm_set_target_params): This. Pass all values via a struct
203 elf32_arm_params rather than as individual parameters.
204
c2abbbeb
TP
2052016-08-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
206
207 * elf32-arm.c (elf32_arm_get_stub_entry): Assert that we don't access
208 passed the end of htab->stub_group array.
209 (elf32_arm_create_or_find_stub_sec): Likewise.
210 (elf32_arm_create_stub): Likewise.
211
980aa3e6
CM
2122016-08-26 Cupertino Miranda <cmiranda@synopsys.com>
213
214 * elf32-arc.c (elf_arc_relocate_section): Changed. Set should_relocate
215 to TRUE for GOT and TLS relocs.
216
65b94e90
CM
2172016-08-26 Cupertino Miranda <cmiranda@synospsys.com>
218
219 * elf32-arc.c (elf_arc_finish_dynamic_sections): Changed.
220
8a36df4d
CM
2212016-08-26 Cupertino Miranda <cmiranda@synopsys.com>
222
223 * elf-bfd.h: Added ARC_ELF_DATA to enum elf_target_id.
224 * elf32-arc.c (struct elf_arc_link_hash_entry): Added.
225 (struct elf_arc_link_hash_table): Likewise.
226 (elf_arc_link_hash_newfunc): Likewise.
227 (elf_arc_link_hash_table_free): Likewise.
228 (arc_elf_link_hash_table_create): Likewise.
229 (elf_arc_relocate_section): Fixed conditions related to dynamic
230 (elf_arc_check_relocs): Likewise.
231 (arc_elf_create_dynamic_sections): Added
232 (elf_arc_adjust_dynamic_symbol): Changed access to .rela.bss to be done
233 through the hash table.
234
4dd72ffd
CM
2352016-08-26 Cupertino Miranda <cmiranda@synopsys.com>
236
237 * arc-got.h (relocate_fix_got_relocs_for_got_info): Fixed addresses in
238 debug comments. Fixed address in .got related to TLS_IE_GOT dynamic
239 relocation.
240
a87aa054
CM
2412016-08-26 Cupertino Miranda <cmiranda@synopsys.com>
242
243 * reloc.c: Fixed type in ARC_SECTOFF relocations. Added ARC_SDA_12
244 relocation.
245 * bfd-in2.h: Regenerated from the previous changes.
246 * libbfd.h: Regenerated from the previous changes.
247
0955507f
TP
2482016-08-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
249
250 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add a new parameter for
251 the input import library bfd.
252 * bfd-in2.h: Regenerate.
253 * elf32-arm.c (struct elf32_arm_link_hash_table): New in_implib_bfd
254 and new_cmse_stub_offset fields.
255 (stub_hash_newfunc): Initialize stub_offset and stub_template_size to
256 -1.
257 (elf32_arm_add_stub): Likewise for stub_offset.
258 (arm_new_stubs_start_offset_ptr): New function.
259 (arm_build_one_stub): Only allocate a stub_offset if it is -1. Allow
260 empty SG veneers to have zero relocations.
261 (arm_size_one_stub): Only initialize stub size and template
262 information for non empty veneers. Do not update veneer section size
263 if veneer already has an offset.
264 (elf32_arm_create_stub): Return the stub entry pointer or NULL instead
265 of a boolean indicating success or failure.
266 (cmse_scan): Change stub_changed parameter into an integer pointer
267 parameter cmse_stub_created to count the number of stub created and
268 adapt to change of return value in elf32_arm_create_stub.
269 (cmse_entry_fct_p): New function.
270 (arm_list_new_cmse_stub): Likewise.
271 (set_cmse_veneer_addr_from_implib): Likewise.
272 (elf32_arm_size_stubs): Define cmse_stub_created, pass its address to
273 cmse_scan instead of that of cmse_stub_changed to compute the number
274 of stub created and use it to initialize stub_changed. Call
275 set_cmse_veneer_addr_from_implib after all cmse_scan. Adapt to change
276 of return value in elf32_arm_create_stub. Use
277 arm_stub_section_start_offset () if not NULL to initialize size of
278 secure gateway veneers section. Initialize stub_offset of Cortex-A8
279 erratum fix to -1. Use ret to hold return value.
280 (elf32_arm_build_stubs): Use arm_stub_section_start_offset () if not
281 NULL to initialize size of secure gateway veneers section. Adapt
282 comment to stress the importance of zeroing veneer section content.
283 (bfd_elf32_arm_set_target_relocs): Add new in_implib_bfd parameter to
284 initialize eponymous field in struct elf32_arm_link_hash_table.
285
e3e9290d
AA
2862016-08-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
287
288 * elf32-s390.c (stdarg.h): New include.
289 (elf_s390_grok_psinfo): New function.
290 (elf_s390_write_core_note): New function.
291 (elf_backend_grok_psinfo): Declare backend hook.
292 (elf_backend_write_core_note): Likewise.
293 * elf64-s390.c (stdarg.h): New include.
294 (elf_s390_grok_prstatus): New function.
295 (elf_s390_grok_psinfo): New function.
296 (elf_s390_write_core_note): New function.
297 (elf_backend_grok_prstatus): Declare backend hook.
298 (elf_backend_grok_psinfo): Likewise.
299 (elf_backend_write_core_note): Likewise.
300
ceada896
AA
3012016-08-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
302
303 * elf32-s390.c (allocate_dynrelocs): Fix indentation.
304 (elf_s390_finish_ifunc_symbol): Likewise.
305 (elf_s390_finish_dynamic_symbol): Likewise.
306 (elf_s390_finish_dynamic_sections): Likewise.
307 (elf_s390_grok_prstatus): Likewise.
308 * elf64-s390.c (elf_s390_hash_table): Fix indentation.
309 (elf_s390_finish_dynamic_symbol): Likewise.
310
47f7f636
AK
3112016-08-24 Anton Kolesov <Anton.Kolesov@synopsys.com>
312
313 * elf32-arc.c (elf32_arc_grok_prstatus): New function.
314
6342be70
NC
3152016-08-23 Nick Clifton <nickc@redhat.com>
316
317 * elf32-arm.c (elf32_arm_count_additional_relocs): Return zero if
318 there is no arm data associated with the section.
319
eacfca90
AM
3202016-08-23 Alan Modra <amodra@gmail.com>
321
322 PR 20475
323 * elf32-or1k.c (or1k_elf_relocate_section): Offset from
324 _GLOBAL_OFFSET_TABLE_, not start of .got section.
325
5fbe0d87
NC
3262016-08-22 Nick Clifton <nickc@redhat.com>
327
328 * doc/chew.c (main): Free the string buffer used to files as they
329 are parsed.
330
888a7fc3
AM
3312016-08-22 Alan Modra <amodra@gmail.com>
332
333 * elf32-ppc.c (ppc_elf_check_relocs): Move error for @local ifunc..
334 (ppc_elf_relocate_section): ..to here. Comment. Error on
335 detecting -mbss-plt -fPIC local ifuncs too.
336 (ppc_elf_size_dynamic_sections): Comment on unnecessary glink
337 branch table entries.
338
dd905818
NC
3392016-08-19 Nick Clifton <nickc@redhat.com>
340
341 * elf.c (assign_section_numbers): Assign number for the .shstrtab
342 section after the symbol table and string table sections.
343
d311bc8b
AM
3442016-08-19 Alan Modra <amodra@gmail.com>
345
346 * elf64-ppc.c (struct ppc_link_hash_entry): Add weakref.
347 (ppc64_elf_copy_indirect_symbol): Set weakref. Don't merge
348 dyn_relocs for weakdefs.
349 (alias_readonly_dynrelocs): New function.
350 (ppc64_elf_adjust_dynamic_symbol): Use alias_readonly_dynrelocs.
351 (ppc64_elf_relocate_section): Simplify condition under which
352 dyn_relocs are emitted.
353
8a2058b5
AM
3542016-08-19 Alan Modra <amodra@gmail.com>
355
356 PR 20472
357 * elf64-ppc.c (ppc64_elf_before_check_relocs): Tweak abiversion test.
358 (readonly_dynrelocs): Comment fix.
359 (global_entry_stub): New function.
360 (ppc64_elf_adjust_dynamic_symbol): Tweak abiversion test. Match
361 ELFv2 code deciding on dynamic relocs vs. global entry stubs to
362 that in size_global_entry_stubs, handling ifunc too. Delete dead
363 weak sym code.
364 (allocate_dynrelocs): Ensure dyn_relocs field is cleared when no
365 dyn_relocs are needed. Correct handling of ifunc dyn_relocs.
366 Tidy ELIMINATE_COPY_RELOCS code, only setting dynindx for
367 undefweak syms. Expand and correct comments.
368 (size_global_entry_stubs): Ensure symbol is defined.
369 (ppc64_elf_relocate_section): Match condition under which
370 dyn_relocs are emitted to that in allocate_dynrelocs.
371
90ac2420
AM
3722016-08-12 Alan Modra <amodra@gmail.com>
373
374 * elf-bfd.h (struct elf_link_hash_table): Add local_dynsymcount.
375 * elflink.c (_bfd_elf_link_renumber_dynsyms): Set local_dynsymcount.
376 (bfd_elf_final_link): Set .dynsym sh_info from local_dynsymcount.
377
d93d1c80
AM
3782016-08-11 Alan Modra <amodra@gmail.com>
379
380 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't exit with
381 non_got_ref true in any case where we could have generated dynbss
382 copies but decide not to do so.
383
fe152e64
MR
3842016-08-10 Maciej W. Rozycki <macro@imgtec.com>
385
386 * elfxx-mips.c (mips_elf_add_la25_stub): Clear the ISA bit of
387 the stub address retrieved if associated with a microMIPS
388 function.
389
a848a227
MR
3902016-08-10 Maciej W. Rozycki <macro@imgtec.com>
391
392 * elfxx-mips.c (mips_elf_create_stub_symbol): For a microMIPS
393 stub also add STO_MICROMIPS annotation.
394
c7318def
MR
3952016-08-10 Maciej W. Rozycki <macro@imgtec.com>
396
397 * elfxx-mips.c (mips_elf_calculate_relocation): Set the ISA bit
398 in microMIPS LA25 stub references.
399
68994ca2
JW
4002016-08-09 Jiaming Wei <jmwei@hxgpt.com>
401
402 * elf64-alpha.c (elf64_alpha_copy_indirect_symbol): Fix thinko
403 adjusting the use_count of merged .got entries.
404
8a286b63
NC
4052016-08-08 Nick Clifton <nickc@redhat.com>
406
407 * doc/chew.c (delete_string): Only free the string buffer if it is
408 there. Mark the buffer as NULL after freeing.
409 (drop): Free the dropped string.
410 (free_words): New function: Frees the memory allocated to the
411 dictionary.
412 (add_instrinsic): Duplicate the name string, so that it can be
413 freed later on.
414 (compile): Free unused words.
415 (main): Free the dictionary and top level string buffers at the
416 end.
417
54ddd295
TP
4182016-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
419
420 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add one parameter.
421 * bfd-in2.h: Regenerate.
422 * elf32-arm.c (struct elf32_arm_link_hash_table): Declare new
423 cmse_implib field.
424 (bfd_elf32_arm_set_target_relocs): Add new parameter to initialize
425 cmse_implib field in struct elf32_arm_link_hash_table.
426 (elf32_arm_filter_cmse_symbols): New function.
427 (elf32_arm_filter_implib_symbols): Likewise.
428 (elf_backend_filter_implib_symbols): Define to
429 elf32_arm_filter_implib_symbols.
430
4ba2ef8f
TP
4312016-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
432
433 * elf32-arm.c (CMSE_PREFIX): Define macro.
434 (elf32_arm_stub_cmse_branch_thumb_only): Define stub sequence.
435 (cmse_branch_thumb_only): Declare stub.
436 (struct elf32_arm_link_hash_table): Define cmse_stub_sec field.
437 (elf32_arm_get_plt_info): Add globals parameter. Use it to return
438 FALSE if there is no PLT.
439 (arm_type_of_stub): Adapt to new elf32_arm_get_plt_info signature.
440 (elf32_arm_final_link_relocate): Likewise.
441 (elf32_arm_gc_sweep_hook): Likewise.
442 (elf32_arm_gc_mark_extra_sections): Mark sections holding ARMv8-M
443 secure entry functions.
444 (arm_stub_is_thumb): Add case for arm_stub_cmse_branch_thumb_only.
445 (arm_dedicated_stub_output_section_required): Change to a switch case
446 and add a case for arm_stub_cmse_branch_thumb_only.
447 (arm_dedicated_stub_output_section_required_alignment): Likewise.
448 (arm_stub_dedicated_output_section_name): Likewise.
449 (arm_stub_dedicated_input_section_ptr): Likewise and remove
450 ATTRIBUTE_UNUSED for htab parameter.
451 (arm_stub_required_alignment): Likewise.
452 (arm_stub_sym_claimed): Likewise.
453 (arm_dedicated_stub_section_padding): Likewise.
454 (cmse_scan): New function.
455 (elf32_arm_size_stubs): Call cmse_scan for ARM M profile targets.
456 Set stub_changed to TRUE if such veneers were created.
457 (elf32_arm_swap_symbol_in): Add detection code for CMSE special
458 symbols.
459
89d77b8a
AM
4602016-08-02 Alan Modra <amodra@gmail.com>
461
462 PR ld/20428
463 * elf64-ppc.c (ppc_get_stub_entry): Don't segfault on NULL group.
464
a94d834c
NC
4652016-08-02 Nick Clifton <nickc@redhat.com>
466
467 PR ld/17739
468 * elf32-sh.c (sh_elf_gc_sweep_hook): Delete.
469 (elf_backend_sweep_hook): Delete.
470
dfdaec14
AJ
4712016-08-01 Andrew Jenner <andrew@codesourcery.com>
472 Kwok Cheung Yeung <kcy@codesourcery.com>
473
474 * elf32-ppc.c (is_branch_reloc): Recognise VLE branch relocations.
475 (ppc_elf_howto_raw): Fix dst_mask of R_PPC_VLE_REL15.
476 (ppc_elf_vle_split16): Clear field before inserting.
477
781bf64d
NC
4782016-08-01 Nick Clifton <nickc@redhat.com>
479
480 * po/sv.po: Updated Swedish translation.
481
147d994b
NC
4822016-07-27 Ozkan Sezer <sezeroz@gmail.com>
483 Nick Clifton <nickc@redhat.com>
484
485 PR ld/20401
486 * coffgen.c (fini_reloc_cookie_rels): Check for the extistence
487 of the coff_section_data before using it.
488
54806ffa
MR
4892016-07-26 Maciej W. Rozycki <macro@imgtec.com>
490
491 * elfxx-mips.c (mips_elf_calculate_relocation): Handle branches
492 in PLT compression selection.
493 (_bfd_mips_elf_check_relocs): Likewise.
494
c02d11a5
CM
4952016-07-22 Cupertino Miranda <cmiranda@synopsys.com>
496
497 * arc-got.h (relocate_fix_got_relocs_for_got_info): Handle the
498 case where there's no elf_link_hash_entry while processing
499 GOT_NORMAL got entries.
500
fecd57f9
L
5012016-07-21 H.J. Lu <hongjiu.lu@intel.com>
502
503 * version.m4 (BFD_VERSION): Set to 2.27.51.
504 * configure: Regenerated.
505
5df1bc57
AM
5062016-07-21 Nick Clifton <nickc@redhat.com>
507
508 * elf.c (_bfd_elf_filter_global_symbols): Skip local symbols.
509 (swap_out_syms): Return an error when not finding ELF output
510 section rather than asserting.
511
5122016-07-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
513
514 * elflink.c (elf_output_implib): Call bfd_set_error on no symbols.
515
0064d223
JB
5162016-07-20 John Baldwin <jhb@FreeBSD.org>
517
518 * elf.c (elfcore_grok_freebsd_psinfo): Check for minimum note size
519 and handle pr_pid if present.
520
89b829a8
L
5212016-07-20 H.J. Lu <hongjiu.lu@intel.com>
522
523 PR ld/20376
524 * elf.c (assign_file_positions_for_load_sections): Also check
525 p_paddr for program header space.
526
3ce51288
AM
5272016-07-20 Alan Modra <amodra@gmail.com>
528
529 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_PLTREL32>): Put
530 ppc64_elf_unhandled_reloc for special_function.
531 * elf32-ppc.c (ppc_elf_howto_raw): Similarly for lots of relocs.
532
a6ebf616
MR
5332016-07-19 Maciej W. Rozycki <macro@imgtec.com>
534
535 * elfxx-mips.c (mips_elf_perform_relocation): Convert cross-mode
536 BAL to JALX.
537 (_bfd_mips_elf_relocate_section) <bfd_reloc_outofrange>: Add a
538 corresponding error message.
539
9d862524
MR
5402016-07-19 Maciej W. Rozycki <macro@imgtec.com>
541
542 * elfxx-mips.c (b_reloc_p): Add R_MICROMIPS_PC16_S1,
543 R_MICROMIPS_PC10_S1 and R_MICROMIPS_PC7_S1.
544 (branch_reloc_p): New function.
545 (mips_elf_calculate_relocation): Handle ISA mode determination
546 for relocations against section symbols, against absolute
547 symbols and absolute relocations. Also set `*cross_mode_jump_p'
548 for branches.
549 <R_MIPS16_26, R_MIPS_26, R_MICROMIPS_26_S1>: Suppress alignment
550 checks for weak undefined symbols. Also check target alignment
551 within the same ISA mode.
552 <R_MIPS_PC16, R_MIPS_GNU_REL16_S2>: Handle cross-mode branches
553 in the alignment check.
554 <R_MICROMIPS_PC7_S1>: Add an alignment check.
555 <R_MICROMIPS_PC10_S1>: Likewise.
556 <R_MICROMIPS_PC16_S1>: Likewise.
557 (mips_elf_perform_relocation): Report a failure for unsupported
558 same-mode JALX instructions and cross-mode branches.
559 (_bfd_mips_elf_relocate_section) <bfd_reloc_outofrange>: Add
560 error messages for jumps to misaligned addresses.
561
7d0b9ebc
AM
5622016-07-16 Alan Modra <amodra@gmail.com>
563
564 * elflink.c: Include plugin-api.h.
565 * plugin.c (bfd_plugin_open_input): New function, extracted from..
566 (try_claim): ..here.
567 * plugin.h: Don't include bfd.h.
568 (bfd_plugin_open_input): Declare.
569
4212b42d
AM
5702016-07-16 Alan Modra <amodra@gmail.com>
571
572 * targets.c (bfd_seach_for_target): Rename to..
573 (bfd_iterate_over_targets): ..this. Rewrite doc.
574 * bfd-in2.h: Regenerate.
575
00dad9a4
AM
5762016-07-16 Alan Modra <amodra@gmail.com>
577
578 * archures.c (bfd_default_set_arch_mach): Make available in bfd.h.
579 * libbfd.h: Regenerate.
580 * bfd-in2.h: Regenerate.
581
76e7a751
AM
5822016-07-16 Alan Modra <amodra@gmail.com>
583
584 * libbfd-in.h (BFD_ALIGN): Move to..
585 * bfd-in.h: ..here.
586 * elf32-ppc.h (struct ppc_elf_params): Add pagesize.
587 * elf32-ppc.c (default_params): Adjust init.
588 (ppc_elf_link_params): Set pagesize_p2.
589 * libbfd.h: Regenerate.
590 * bfd-in2.h: Regenerate.
591
76359541
TP
5922016-07-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
593
594 * elf-bfd.h (elf_backend_filter_implib_symbols): Declare backend hook.
595 (_bfd_elf_filter_global_symbols): Declare.
596 * elf.c (_bfd_elf_filter_global_symbols): New function.
597 * elflink.c (elf_filter_global_symbols): Likewise.
598 (elf_output_implib): Likewise.
599 (bfd_elf_final_link): Call above function, failing if it does.
600 * elfxx-target.h (elf_backend_filter_implib_symbols): Define macro and
601 default it to NULL.
602 (elf_backend_copy_indirect_symbol): Fix spacing.
603 (elf_backend_hide_symbol): Likewise.
604 (elfNN_bed): Initialize elf_backend_filter_implib_symbols backend hook.
605
f7e8b360
NC
6062016-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
607 Nick Clifton <nickc@redhat.com>
608
609 * elf32-arc.c (PR_DEBUG): Delete.
610 Fix printing of debug information. Fix formatting of debug
611 statements.
612 (debug_arc_reloc): Handle symbols that are not from an input file.
613 (arc_do_relocation): Remove excessive exclamation points.
614
615 * arc-got.h: Fix formatting. Fix printing of debug information.
616 (new_got_entry_to_list): Use xmalloc.
617 * config.bfd: use the big-endian arc vector as the default vector
618 for big-endian arc targets.
619
06ab6faf
AM
6202016-07-15 Alan Modra <amodra@gmail.com>
621
622 * cofflink.c (mark_relocs): Exclude relocs with -1 r_symndx
623 from marking sym_indices.
624
0c117286
MR
6252016-07-14 Maciej W. Rozycki <macro@imgtec.com>
626
627 * reloc.c (bfd_perform_relocation): Try the `howto' handler
628 first with relocations against absolute symbols.
629 (bfd_install_relocation): Likewise.
630
37567a2c
L
6312016-07-12 H.J. Lu <hongjiu.lu@intel.com>
632
633 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align
634 .got/.got.plt sections to 8 bytes.
635
cf143069
NC
6362016-07-12 Nick Clifton <nickc@redhat.com>
637
638 * binary.c (binary_set_section_contents): Second grammar fix.
639
f231881e
DR
6402016-07-12 Douglas B Rupp <rupp@adacore.com>
641
642 * binary.c (binary_set_section_contents): Fix grammar in warning
643 message.
644
b9316f59
CM
6452016-07-11 Cupertino Miranda <cmiranda@synopsys.com>
646
647 * elf32-arc.c: made PR_DEBUG always defined.
648
08759e0f
CM
6492016-07-11 Cupertino Miranda <cmiranda@synopsys.com>
650
651 * arc-got.h: Moved got related structures from elf32-arc.c to
652 this file. More precisely, tls_type_e, tls_got_entries, got_entry.
653 * (arc_get_local_got_ents, got_entry_for_type, new_got_entry_to_list,
654 tls_type_for_reloc, symbol_has_entry_of_type,
655 get_got_entry_list_for_symbol, arc_got_entry_type_for_reloc,
656 ADD_SYMBOL_REF_SEC_AND_RELOC, rc_fill_got_info_for_reloc,
657 relocate_fix_got_relocs_for_got_info,
658 create_got_dynrelocs_for_single_entry,
659 create_got_dynrelocs_for_got_info): Added to file.
660 * elf32-arc.c: Removed GOT & TLS related structs and functions to
661 arc-got.h.
662
458653a9 6632016-07-08 James Bowman <james.bowman@ftdichip.com>
664
665 * elf32-ft32.c (ft32_reloc_map): Use R_FT32_32 for BFD_RELOC_32.
666
d5a67c02
AV
6672016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
668
669 * elf32-arm.c (THUMB32_MOVT): New veneer macro.
670 (THUMB32_MOVW): Likewise.
671 (elf32_arm_stub_long_branch_thumb2_only_pure): New.
672 (DEF_STUBS): Define long_branch_thumb2_only_pure.
673 (arm_stub_is_thumb): Add new veneer stub.
674 (arm_type_of_stub): Use new veneer.
675 (arm_stub_required_alignment): Add new veneer.
676
f0728ee3
AV
6772016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
678
679 * bfd-in2.h (SEC_ELF_NOREAD): Rename to ...
680 (SEC_ELF_PURECODE): ... this.
681 * elf32-arm.c (elf32_arm_post_process_headers): Rename SEC_ELF_NOREAD
682 to SEC_ELF_NOREAD.
683 (elf32_arm_fake_sections): Likewise.
684 (elf_32_arm_section_flags): Likewise.
685 (elf_32_arm_lookup_section_flags): Likewise.
686 * section.c (SEC_ELF_NOREAD): Rename to ...
687 (SEC_ELF_PURECODE): ... this.
688
5e866f5a
TP
6892016-07-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
690
691 * elf32-arm.c (using_thumb2_bl): New function.
692 (arm_type_of_stub): Declare thumb2 variable together and change type
693 to bfd_boolean. Use using_thumb2_bl () to determine whether
694 THM_MAX_FWD_BRANCH_OFFSET or THM2_MAX_FWD_BRANCH_OFFSET should be
695 checked for BL range.
696 (elf32_arm_final_link_relocate): Use using_thumb2_bl () to determine
697 the bit size of BL offset.
698
d691934d
NC
6992016-06-29 Nick Clifton <nickc@redhat.com>
700
701 * elfnn-aarch64.c (is_aarch64_mapping_symbol): New function.
702 Returns TRUE for AArch64 mapping symbols.
703 (elfNN_aarch64_backend_symbol_processing): New function. Marks
704 mapping symbols as precious in object files so that they will not
705 be stripped.
706 (elf_backend_symbol_processing): Define.
707
708 * elf32-arm.c (is_arm_mapping_symbol): New function. Returns TRUE
709 for ARM mapping symbols.
710 (elf32_arm_backend_symbol_processing): Make use of the new function.
711
f4ab0e2d
L
7122016-06-28 H.J. Lu <hongjiu.lu@intel.com>
713
714 PR ld/20306
715 * elflink.c (elf_link_check_versioned_symbol): Return false
716 for unreferenced undefined symbol.
717
fca2a38f
NC
7182016-06-28 Nick Clifton <nickc@redhat.com>
719
1b857aee
NC
720 * elf32-bfin.c (bfin_adjust_dynamic_symbol): Fail if a COPY reloc
721 is needed.
722
fca2a38f
NC
723 * elf32-arm.c (elf32_arm_backend_symbol_processing): New
724 function. Marks mapping symbols in object files as precious, so
725 that strip will not remove them.
726 (elf_backend_symbol_processing): Define.
727
7160c10d
JC
7282016-06-28 James Clarke <jrtc27@jrtc27.com>
729
730 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Don't convert
731 R_SPARC_32 to R_SPARC_RELATIVE if class is ELFCLASS64.
732
c9775dde
MR
7332016-06-28 Maciej W. Rozycki <macro@imgtec.com>
734
735 * elf32-mips.c (elf_mips16_howto_table_rel): Add
736 R_MIPS16_PC16_S1.
737 (mips16_reloc_map): Likewise.
738 * elf64-mips.c (mips16_elf64_howto_table_rel): Likewise.
739 (mips16_elf64_howto_table_rela): Likewise.
740 (mips16_reloc_map): Likewise.
741 * elfn32-mips.c (elf_mips16_howto_table_rel): Likewise.
742 (elf_mips16_howto_table_rela): Likewise.
743 (mips16_reloc_map): Likewise.
744 * elfxx-mips.c (mips16_branch_reloc_p): New function.
745 (mips16_reloc_p): Handle R_MIPS16_PC16_S1.
746 (b_reloc_p): Likewise.
747 (mips_elf_calculate_relocation): Likewise.
748 (_bfd_mips_elf_check_relocs): Likewise.
749 * reloc.c (BFD_RELOC_MIPS16_16_PCREL_S1): New relocation.
750 * bfd-in2.h: Regenerate.
751 * libbfd.h: Regenerate.
752
c9301e31
AM
7532016-06-27 Alan Modra <amodra@gmail.com>
754
755 PR ld/19264
756 * elf64-ppc.c (STUB_SHRINK_ITER): Define.
757 (ppc64_elf_size_stubs): Exit stub sizing loop past STUB_SHRINK_ITER
758 if shrinking stubs.
759 (ppc64_elf_size_stubs): Adjust to suit.
760
3cd72572
TS
7612016-06-27 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
762
763 * elf32-dlx.h: New file.
764 * elf32-dlx.c: Adjust.
765
7c2c4aa1
TS
7662016-06-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
767
768 * elf32-xtensa.c (xtensa_make_property_section): Remove prototype.
769
3350c5f5
JB
7702016-06-24 John Baldwin <jhb@FreeBSD.org>
771
772 * elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PROCSTAT_AUXV
773 notes.
774
aa1ed4a9
JB
7752016-06-24 John Baldwin <jhb@FreeBSD.org>
776
777 * elf.c (elfcore_grok_note): Remove handling of NT_X86_XSTATE for
778 FreeBSD. Remove case for NT_FREEBSD_THRMISC.
779 (elfcore_grok_freebsd_psinfo): New function.
780 (elfcore_grok_freebsd_prstatus): New function.
781 (elfcore_grok_freebsd_note): New function.
782 (elf_parse_notes): Use "elfcore_grok_freebsd_note" for "FreeBSD"
783 notes.
784
6e321fa8
JB
7852016-06-24 Joel Brobecker <brobecker@adacore.com>
786
787 * elflink.c: Check the value of BFD_SUPPORTS_PLUGINS rather
788 than its existance.
789
9cc0123f
AM
7902016-06-24 Alan Modra <amodra@gmail.com>
791
792 * config.bfd: Delete mips vxworks patterns matched earlier.
793 Combine mips*-*-none with mips*-*-elf*.
794
5f68df25
MR
7952016-06-21 Maciej W. Rozycki <macro@imgtec.com>
796
797 * elfxx-mips.c (mips_elf_perform_relocation): Call
798 `info->callbacks->einfo' rather than `*_bfd_error_handler' and
799 use the `%X%H' format for the cross-mode jump conversion error
800 message. Remove the full stop from the end of the message.
801 Continue processing rather than returning failure.
802
bdd582db
GM
8032016-06-21 Graham Markall <graham.markall@embecosm.com>
804
805 * archures.c: Remove bfd_mach_arc_nps400.
806 * bfd-in2.h: Likewise.
807 * cpu-arc.c (arch_info_struct): Likewise.
808 * elf32-arc.c (arc_elf_object_p, arc_elf_final_write_processing):
809 Likewise.
810
7dc3990e
L
8112016-06-20 H.J. Lu <hongjiu.lu@intel.com>
812
813 PR ld/18250
814 PR ld/20267
815 * elflink.c: Include plugin.h if BFD_SUPPORTS_PLUGINS is
816 defined.
817 (elf_link_is_defined_archive_symbol): Call
818 bfd_link_plugin_object_p on unknown plugin object and use the
819 IR symbol table if the input is an IR object.
820 * plugin.c (bfd_link_plugin_object_p): New function.
821 * plugin.h (bfd_link_plugin_object_p): New prototype.
822
0616a280
AM
8232016-06-20 H.J. Lu <hongjiu.lu@intel.com>
824
825 PR ld/20276
826 * elflink.c (elf_link_add_object_symbols): Don't check alignment
827 on symbol from plugin dummy input.
828
49f30d83
L
8292016-06-18 H.J. Lu <hongjiu.lu@intel.com>
830
831 * bfd.c (bfd_plugin_format): Rename bfd_plugin_uknown to
832 bfd_plugin_unknown.
833 * bfd-in2.h: Regenerated.
834 * plugin.c (bfd_plugin_object_p): Replace bfd_plugin_uknown
835 with bfd_plugin_unknown.
836
233cc9c1
L
8372016-06-18 H.J. Lu <hongjiu.lu@intel.com>
838
839 PR ld/20253
840 * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): Add an
841 bfd_boolean argument.
842 * elf-ifunc.c (_bfd_elf_create_ifunc_sections): Replace
843 "shared object" with "PIC object" in comments.
844 (_bfd_elf_allocate_ifunc_dyn_relocs): Updated. Replace
845 "shared object" with "PIC object" in comments. Avoid PLT if
846 requested. Generate dynamic relocations for non-GOT references.
847 Make room for the special first entry in PLT and allocate PLT
848 entry only for PLT and PC-relative references. Store dynamic
849 GOT relocations in .rel[a].iplt section for static executables.
850 If PLT isn't used, always use GOT for symbol value. Don't
851 allocate GOT entry if it isn't used.
852 * elf32-i386.c (elf_i386_check_relocs): Increment PLT reference
853 count only in the code section. Allocate dynamic pointer
854 relocation against STT_GNU_IFUNC symbol in the non-code section.
855 (elf_i386_adjust_dynamic_symbol): Increment PLT reference count
856 only for PC-relative references.
857 (elf_i386_allocate_dynrelocs): Pass TRUE to
858 _bfd_elf_allocate_ifunc_dyn_relocs.
859 (elf_i386_relocate_section): Allow R_386_GOT32/R_386_GOT32X
860 relocations against STT_GNU_IFUNC symbols without PLT. Generate
861 dynamic pointer relocation against STT_GNU_IFUNC symbol in
862 the non-code section and store it in the proper REL section.
863 Don't allow non-pointer relocation against STT_GNU_IFUNC symbol
864 without PLT.
865 (elf_i386_finish_dynamic_symbol): Generate dynamic
866 R_386_IRELATIVE and R_386_GLOB_DAT GOT relocations against
867 STT_GNU_IFUNC symbols without PLT.
868 (elf_i386_finish_dynamic_sections): Don't handle local
869 STT_GNU_IFUNC symbols here.
870 (elf_i386_output_arch_local_syms): Handle local STT_GNU_IFUNC
871 symbols here.
872 (elf_backend_output_arch_local_syms): New.
873 * elf32-x86-64.c (elf_i386_check_relocs): Increment PLT reference
874 count only in the code section. Allocate dynamic pointer
875 relocation against STT_GNU_IFUNC symbol in the non-code section.
876 (elf_x86_64_adjust_dynamic_symbol): Increment PLT reference
877 count only for PC-relative references.
878 (elf_x86_64_allocate_dynrelocs): Pass TRUE to
879 _bfd_elf_allocate_ifunc_dyn_relocs.
880 (elf_x86_64_relocate_section): Allow R_X86_64_GOTPCREL,
881 R_X86_64_GOTPCRELX, R_X86_64_REX_GOTPCRELX and
882 R_X86_64_GOTPCREL64 relocations against STT_GNU_IFUNC symbols
883 without PLT. Generate dynamic pointer relocation against
884 STT_GNU_IFUNC symbol in the non-code section and store it in
885 the proper RELA section. Don't allow non-pointer relocation
886 against STT_GNU_IFUNC symbol without PLT.
887 (elf_x86_64_finish_dynamic_symbol): Generate dynamic
888 R_X86_64_IRELATIVE and R_X86_64_GLOB_DAT GOT relocations against
889 STT_GNU_IFUNC symbols without PLT.
890 (elf_x86_64_finish_dynamic_sections): Don't handle local
891 STT_GNU_IFUNC symbols here.
892 (elf_x86_64_output_arch_local_syms): Handle local STT_GNU_IFUNC
893 symbols here.
894 (elf_backend_output_arch_local_syms): New.
895 * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs):
896 Pass FALSE to _bfd_elf_allocate_ifunc_dyn_relocs.
897
80c135e5
TP
8982016-06-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
899 Tony Wang <tony.wang@arm.com>
900
901 * elf32-arm.c (elf32_arm_stub_long_branch_thumb2_only): Define stub
902 sequence.
903 (stub_long_branch_thumb2_only): Define stub.
904 (arm_stub_is_thumb): Add case for arm_stub_long_branch_thumb2_only.
905 (arm_stub_long_branch_thumb2_only): Likewise.
906 (arm_type_of_stub): Use arm_stub_long_branch_thumb2_only for Thumb-2
907 capable targets.
908
4f26fb3a
JM
9092016-06-17 Jose E. Marchesi <jose.marchesi@oracle.com>
910
911 * archures.c (bfd_mach_sparc_v8plusc): Define.
912 (bfd_mach_sparc_v9c): Likewise.
913 (bfd_mach_sparc_v8plusd): Likewise.
914 (bfd_mach_sparc_v9d): Likewise.
915 (bfd_mach_sparc_v8pluse): Likewise.
916 (bfd_mach_sparc_v9e): Likewise.
917 (bfd_mach_sparc_v8plusv): Likewise
918 (bfd_mach_sparc_v9v): Likewise.
919 (bfd_mach_sparc_v8plusm): Likewise.
920 (bfd_mach_sparc_v9m): Likewise.
921 (bfd_mach_sparc_v9_p): Adapt to v8plusm and v9m.
922 (bfd_mach_sparc_64bit_p): Likewise.
923 * bfd-in2.h: Regenerate.
924 * cpu-sparc.c (arch_info_struct): Add entries for
925 bfd_mach_sparc_v8plus{c,d,e,v,m} and bfd_mach_sparc_v9{c,d,e,v,m}.
926 * aoutx.h (machine_type): Handle bfd_mach_sparc_v8plus{c,d,e,v,m}
927 and bfd_mach_sparc_v9{c,d,e,v,m}.
928 * elf32-sparc.c (elf32_sparc_final_write_processing): Likewise.
929 * elfxx-sparc.c (_bfd_sparc_elf_object_p): Likewise.
930
ca45f6e9
L
9312016-06-16 H.J. Lu <hongjiu.lu@intel.com>
932
933 * elf32-i386.c (elf_i386_check_relocs): Don't check undefined
934 symbols for relocations against IFUNC symbols.
935 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
936
f92339b8
MK
9372016-06-16 Marcin Kościelnicki <koriakin@0x04.net>
938
939 * elf32-s390.c (elf_s390_finish_dynamic_sections): Include
940 .rela.iplt in DT_PLTRELSZ.
941 * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise,
942 for DT_PLTRELSZ and DT_RELASZ as well.
943
081b1afe
L
9442016-06-16 H.J. Lu <hongjiu.lu@intel.com>
945
946 * elf32-i386.c (elf_i386_check_relocs): Skip relocations in
947 non-loaded, non-alloced sections.
948 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
949
4c23f2ff
L
9502016-06-15 H.J. Lu <hongjiu.lu@intel.com>
951
952 * elf32-i386.c (elf_i386_check_relocs): Check SEC_ALLOC before
953 allocating dynamic relocation.
954 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
955
31eef93e
SKS
9562016-06-14 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
957
958 PR ld/20254
959 * elf32-avr.c (elf32_avr_relax_delete_bytes): Adjust reloc
960 offsets until reloc_toaddr.
961
c428ce9d
L
9622016-06-14 H.J. Lu <hongjiu.lu@intel.com>
963
964 * elf32-i386.c (elf_i386_reloc_type_class): Check R_386_IRELATIVE.
965 Don't check symbol type for STN_UNDEF symbol index.
966 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Check
967 R_X86_64_IRELATIVE. Don't check symbol type for STN_UNDEF symbol
968 index.
969
60a019a0
TP
9702016-06-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
971
972 * elf32-arm.c (using_thumb_only): Force review of arch check logic for
973 new architecture.
974 (using_thumb2): Try Tag_THUMB_ISA_use first and check
975 for exact arch value then. Force review of arch check logic for new
976 architecture.
977 (arch_has_arm_nop): Update and fix arch check logic. Force review of
978 that logic for new architecture.
979 (arch_has_thumb2_nop): Remove.
980 (elf32_arm_tls_relax): Use using_thumb2 instead of above function.
981 (elf32_arm_final_link_relocate): Likewise but using thumb2.
982
3860d2b4
AM
9832016-06-14 Alan Modra <amodra@gmail.com>
984
985 * bfd-in.h (bfd_my_archive): Delete.
986 * bfd-in2.h: Regenerate.
987
b0cffb47
AM
9882016-06-14 Alan Modra <amodra@gmail.com>
989
990 PR ld/20241
991 * archive.c (open_nested_file): Set my_archive.
992 * bfd.c (_bfd_default_error_handler <%B>): Exclude archive file name
993 for thin archives.
994 * bfdio.c (bfd_tell): Don't adjust origin for thin archives.
995 (bfd_seek): Likewise.
996 * bfdwin.c (bfd_get_file_window): Likewise.
997 * cache.c (cache_bmmap): Likewise.
998 (bfd_cache_lookup_worker): Don't look in my_archive for thin archives.
999 * mach-o.c (bfd_mach_o_follow_dsym): Don't open my_archive for
1000 thin archives.
1001 * plugin.c (try_claim): Likewise.
1002 * xcofflink.c (xcoff_link_add_dynamic_symbols): Use import path of
1003 file within thin archive, not the archive.
1004
712ec279
L
10052016-06-13 H.J. Lu <hongjiu.lu@intel.com>
1006
1007 PR ld/20244
1008 * elf32-i386.c (elf_i386_relocate_section): Add the .got.plt
1009 section address for R_386_GOT32/R_386_GOT32X relocations against
1010 IFUNC symbols if there is no base register and return error for
1011 PIC.
1012
ca8c86ef
L
10132016-06-13 H.J. Lu <hongjiu.lu@intel.com>
1014
1015 * elf32-i386.c (elf_i386_relocate_section): Simplify IFUNC
1016 GOT32 adjustment for static executables.
1017
0c9663cb
MR
10182016-06-13 Maciej W. Rozycki <macro@imgtec.com>
1019
1020 * elf32-mips.c (elf_mips_gnu_pcrel32): Update comment.
1021
815dc1bc
CZ
10222016-06-13 Cupertino Miranda <cmiranda@synospsy.com>
1023
1024 * elf32-arc.c (elf_arc_relocate_section): Fixed condition.
1025
3b63d2ce
CM
10262016-06-13 Cupertino Miranda <cmiranda@synospsy.com>
1027
1028 * elf32-arc.c (elf_arc_finish_dynamic_sections): Changed.
1029
2ab2f40d
CM
10302016-06-13 Cupertino Miranda <cmiranda@synospsy.com>
1031
1032 * elf32-arc.c (arc_local_data, arc_local_data): Removed.
1033 (SECTSTART): Changed.
1034 (elf_arc_relocate_section): Fixed mistake in PIE related
1035 condition.
1036 (elf_arc_size_dynamic_sections): Changed DT_RELENT to DT_RELAENT.
1037
0f7f3789
CM
10382016-06-13 Cupertino Miranda <cmiranda@synospsy.com>
1039
1040 * elf32-arc.c (elf32_arc_reloc_type_class): Defined function to
1041 enable support for "-z combreloc" and DT_RELACOUNT.
1042 (elf_backend_reloc_type_class): Likewise
1043
74d7f0aa
L
10442016-06-11 H.J. Lu <hongjiu.lu@intel.com>
1045
1046 PR ld/20244
1047 * elf32-i386.c (elf_i386_relocate_section): When relocating
1048 R_386_GOT32, return error without a base register for PIC and
1049 subtract the .got.plt section address only with a base register.
1050
ef53be89
AM
10512016-06-10 Alan Modra <amodra@gmail.com>
1052
1053 * elf-strtab.c (struct strtab_save): Use size_t for "size".
1054 (struct elf_strtab_hash): Likewise for "size" and "alloced".
1055 (_bfd_elf_strtab_init): Formatting.
1056 (_bfd_elf_strtab_add): Return size_t rather than bfd_size_type.
1057 (_bfd_elf_strtab_addref): Take size_t idx param.
1058 (_bfd_elf_strtab_delref, _bfd_elf_strtab_refcount): Likewise.
1059 (_bfd_elf_strtab_offset): Likewise.
1060 (_bfd_elf_strtab_clear_all_refs): Use size_t idx.
1061 (_bfd_elf_strtab_save): Use size_t "idx" and "size" vars.
1062 (_bfd_elf_strtab_restore, _bfd_elf_strtab_emit): Similarly.
1063 (_bfd_elf_strtab_finalize): Similarly.
1064 * elf-bfd.h (_bfd_elf_strtab_add): Update prototypes.
1065 (_bfd_elf_strtab_addref, _bfd_elf_strtab_delref): Likewise.
1066 (_bfd_elf_strtab_refcount, _bfd_elf_strtab_offset): Likewise.
1067 * elf.c (bfd_elf_get_elf_syms): Calculate symbol buffer size
1068 using bfd_size_type.
1069 (bfd_section_from_shdr): Delete amt.
1070 (_bfd_elf_init_reloc_shdr): Likewise.
1071 (_bfd_elf_link_assign_sym_version): Likewise.
1072 (assign_section_numbers): Use size_t reloc_count.
1073 * elflink.c (struct elf_symbuf_head): Use size_t "count".
1074 (bfd_elf_link_record_dynamic_symbol): Use size_t for some vars.
1075 (elf_link_is_defined_archive_symbol): Likewise.
1076 (elf_add_dt_needed_tag): Likewise.
1077 (elf_finalize_dynstr): Likewise.
1078 (elf_link_add_object_symbols): Likewise.
1079 (bfd_elf_size_dynamic_sections): Likewise.
1080 (elf_create_symbuf): Similarly.
1081 (bfd_elf_match_symbols_in_sections): Likewise.
1082 (elf_link_swap_symbols_out): Likewise.
1083 (elf_link_check_versioned_symbol): Likewise.
1084 (bfd_elf_gc_record_vtinherit): Likewise.
1085 (bfd_elf_gc_common_finalize_got_offsets): Likewise.
1086
5c41dbc3
DC
10872016-06-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1088
1089 PR ld/20221
1090 * elf32-avr.c (elf32_avr_relax_delete_bytes): Adjust syms
1091 and relocs only if shrinking occurred.
1092
6eaa7fb5
L
10932016-06-08 H.J. Lu <hongjiu.lu@intel.com>
1094
1095 * elf64-i386.c (elf_i386_link_hash_entry): Add tls_get_addr.
1096 (elf_i386_link_hash_newfunc): Initialize tls_get_addr to 2.
1097 (elf_i386_check_tls_transition): Check indirect call and direct
1098 call with the addr32 prefix for general and local dynamic models.
1099 Set the tls_get_addr feild.
1100 (elf_i386_convert_load_reloc): Always use addr32 prefix for
1101 indirect ___tls_get_addr call via GOT.
1102 (elf_i386_relocate_section): Handle GD->LE, GD->IE and LD->LE
1103 transitions with indirect call and direct call with the addr32
1104 prefix.
1105
3b67f094
MK
11062016-06-07 Marcin Kościelnicki <koriakin@0x04.net>
1107
1108 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Fix comment.
1109 * elf64-s390.c (elf_s390x_plt_entry): Fix comment.
1110 (elf_s390_relocate_section): Fix comment.
1111 (elf_s390_finish_dynamic_sections): Fix initialization of fixed
1112 .got.plt entries.
1113
161db279
AK
11142016-06-07 Ulrich Weigand <ulrich.weigand@de.ibm.com>
1115
1116 * elf64-s390.c (elf_s390_finish_dynamic_sections): Subtract plt
1117 section offset when calculation the larl operand in the first PLT
1118 entry.
1119
14b57c7c
AM
11202016-06-07 Alan Modra <amodra@gmail.com>
1121
1122 * cpu-powerpc.c (powerpc_compatible): Allow bfd_mach_ppc_vle entry
1123 to match other 32-bit archs.
1124 * elf32-ppc.c (_bfd_elf_ppc_set_arch): New function.
1125 (ppc_elf_object_p): Call it.
1126 (ppc_elf_special_sections): Use APUINFO_SECTION_NAME. Fix
1127 overlong line.
1128 (APUINFO_SECTION_NAME, APUINFO_LABEL): Don't define here.
1129 * elf64-ppc.c (ppc64_elf_object_p): Call _bfd_elf_ppc_set_arch.
1130 * bfd-in.h (_bfd_elf_ppc_at_tls_transform,
1131 _bfd_elf_ppc_at_tprel_transform): Move to..
1132 * elf-bfd.h: ..here.
1133 (_bfd_elf_ppc_set_arch): Declare.
1134 * bfd-in2.h: Regenerate.
1135
e2cbcd91
L
11362016-06-06 H.J. Lu <hongjiu.lu@intel.com>
1137
1138 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add tls_get_addr.
1139 (elf_x86_64_link_hash_newfunc): Initialize tls_get_addr to 2.
1140 (elf_x86_64_check_tls_transition): Check indirect call and
1141 direct call with the addr32 prefix for general and local dynamic
1142 models. Set the tls_get_addr feild.
1143 (elf_x86_64_convert_load_reloc): Always use addr32 prefix for
1144 indirect __tls_get_addr call via GOT.
1145 (elf_x86_64_relocate_section): Handle GD->LE, GD->IE and LD->LE
1146 transitions with indirect call and direct call with the addr32
1147 prefix.
1148
2ac27cd3
CG
11492016-06-04 Christian Groessler <chris@groessler.org>
1150
1151 * coff-z8k.c (extra_case): Fix range check for R_JR relocation.
1152
99914dfd
NC
11532016-06-02 Nick Clifton <nickc@redhat.com>
1154
1155 PR target/20088
1156 * cpu-arm.c (processors): Add "arm_any" type to match any ARM
1157 architecture.
1158 (arch_info_struct): Likewise.
1159 (architectures): Likewise.
1160
4ad0bb5f
VG
11612016-06-02 Vineet Gupta <Vineet.Gupta1@synopsys.com>
1162
1163 * config.bfd: Replace -uclibc with *.
1164
3ddf1bdd
L
11652016-06-02 H.J. Lu <hongjiu.lu@intel.com>
1166
1167 * elf64-x86-64.c: Replace data32 with data16 in comments.
1168
5b677558
AM
11692016-05-31 Alan Modra <amodra@gmail.com>
1170
1171 PR ld/20159
1172 PR ld/16467
1173 * elflink.c (_bfd_elf_merge_symbol): Revert PR16467 change.
1174 (_bfd_elf_add_default_symbol): Don't indirect to/from defined
1175 symbol given a version by a script different to the version
1176 of the symbol being added.
1177 (elf_link_add_object_symbols): Use _bfd_elf_strtab_save and
1178 _bfd_elf_strtab_restore. Don't fudge dynstr references.
1179 * elf-strtab.c (_bfd_elf_strtab_restore_size): Delete.
1180 (struct strtab_save): New.
1181 (_bfd_elf_strtab_save, _bfd_elf_strtab_restore): New functions.
1182 * elf-bfd.h (_bfd_elf_strtab_restore_size): Delete.
1183 (_bfd_elf_strtab_save, _bfd_elf_strtab_restore): Declare.
1184
1fe0971e
TS
11852016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1186
1187 * elf32-hppa.h: Add extern "C".
1188 * elf32-nds32.h: Likewise.
1189 * elf32-tic6x.h: Likewise.
1190
885a1087
NC
11912016-06-01 Nick Clifton <nickc@redhat.com>
1192
1193 * po/sr.po: New Serbian translation.
1194 * configure.ac (ALL_LINGUAS): Add sr.
1195 * configure: Regenerate.
1196
99aefae6
MR
11972016-05-28 Maciej W. Rozycki <macro@imgtec.com>
1198
1199 * elfxx-mips.c (b_reloc_p): New function.
1200 (_bfd_mips_elf_relocate_section) <bfd_reloc_outofrange>: Handle
1201 branch relocations.
1202
77434823
MR
12032016-05-28 Maciej W. Rozycki <macro@imgtec.com>
1204
1205 * elfxx-mips.c (mips_elf_calculate_relocation): <R_MIPS16_26>
1206 <R_MIPS_26, R_MICROMIPS_26_S1>: Drop the region bits of the
1207 reloc location from calculation, treat the addend as signed with
1208 local non-section symbols and enable overflow detection.
1209
1a72702b
AM
12102016-05-28 Alan Modra <amodra@gmail.com>
1211
1212 * aoutx.h: Adjust linker callback calls throughout file,
1213 removing dead code.
1214 * bout.c: Likewise.
1215 * coff-alpha.c: Likewise.
1216 * coff-arm.c: Likewise.
1217 * coff-h8300.c: Likewise.
1218 * coff-h8500.c: Likewise.
1219 * coff-i960.c: Likewise.
1220 * coff-mcore.c: Likewise.
1221 * coff-mips.c: Likewise.
1222 * coff-ppc.c: Likewise.
1223 * coff-rs6000.c: Likewise.
1224 * coff-sh.c: Likewise.
1225 * coff-tic80.c: Likewise.
1226 * coff-w65.c: Likewise.
1227 * coff-z80.c: Likewise.
1228 * coff-z8k.c: Likewise.
1229 * coff64-rs6000.c: Likewise.
1230 * cofflink.c: Likewise.
1231 * ecoff.c: Likewise.
1232 * elf-bfd.h: Likewise.
1233 * elf-m10200.c: Likewise.
1234 * elf-m10300.c: Likewise.
1235 * elf32-arc.c: Likewise.
1236 * elf32-arm.c: Likewise.
1237 * elf32-avr.c: Likewise.
1238 * elf32-bfin.c: Likewise.
1239 * elf32-cr16.c: Likewise.
1240 * elf32-cr16c.c: Likewise.
1241 * elf32-cris.c: Likewise.
1242 * elf32-crx.c: Likewise.
1243 * elf32-d10v.c: Likewise.
1244 * elf32-epiphany.c: Likewise.
1245 * elf32-fr30.c: Likewise.
1246 * elf32-frv.c: Likewise.
1247 * elf32-ft32.c: Likewise.
1248 * elf32-h8300.c: Likewise.
1249 * elf32-hppa.c: Likewise.
1250 * elf32-i370.c: Likewise.
1251 * elf32-i386.c: Likewise.
1252 * elf32-i860.c: Likewise.
1253 * elf32-ip2k.c: Likewise.
1254 * elf32-iq2000.c: Likewise.
1255 * elf32-lm32.c: Likewise.
1256 * elf32-m32c.c: Likewise.
1257 * elf32-m32r.c: Likewise.
1258 * elf32-m68hc1x.c: Likewise.
1259 * elf32-m68k.c: Likewise.
1260 * elf32-mep.c: Likewise.
1261 * elf32-metag.c: Likewise.
1262 * elf32-microblaze.c: Likewise.
1263 * elf32-moxie.c: Likewise.
1264 * elf32-msp430.c: Likewise.
1265 * elf32-mt.c: Likewise.
1266 * elf32-nds32.c: Likewise.
1267 * elf32-nios2.c: Likewise.
1268 * elf32-or1k.c: Likewise.
1269 * elf32-ppc.c: Likewise.
1270 * elf32-s390.c: Likewise.
1271 * elf32-score.c: Likewise.
1272 * elf32-score7.c: Likewise.
1273 * elf32-sh.c: Likewise.
1274 * elf32-sh64.c: Likewise.
1275 * elf32-spu.c: Likewise.
1276 * elf32-tic6x.c: Likewise.
1277 * elf32-tilepro.c: Likewise.
1278 * elf32-v850.c: Likewise.
1279 * elf32-vax.c: Likewise.
1280 * elf32-visium.c: Likewise.
1281 * elf32-xstormy16.c: Likewise.
1282 * elf32-xtensa.c: Likewise.
1283 * elf64-alpha.c: Likewise.
1284 * elf64-hppa.c: Likewise.
1285 * elf64-ia64-vms.c: Likewise.
1286 * elf64-mmix.c: Likewise.
1287 * elf64-ppc.c: Likewise.
1288 * elf64-s390.c: Likewise.
1289 * elf64-sh64.c: Likewise.
1290 * elf64-x86-64.c: Likewise.
1291 * elflink.c: Likewise.
1292 * elfnn-aarch64.c: Likewise.
1293 * elfnn-ia64.c: Likewise.
1294 * elfxx-mips.c: Likewise.
1295 * elfxx-sparc.c: Likewise.
1296 * elfxx-tilegx.c: Likewise.
1297 * linker.c: Likewise.
1298 * pdp11.c: Likewise.
1299 * pe-mips.c: Likewise.
1300 * reloc.c: Likewise.
1301 * reloc16.c: Likewise.
1302 * simple.c: Likewise.
1303 * vms-alpha.c: Likewise.
1304 * xcofflink.c: Likewise.
1305 * elf32-rl78.c (get_symbol_value, get_romstart, get_ramstart): Delete
1306 status param. Adjust calls to these and linker callbacks throughout.
1307 * elf32-rx.c: (get_symbol_value, get_gp, get_romstart,
1308 get_ramstart): Delete status param. Adjust calls to these and
1309 linker callbacks throughout.
1310
bc27bb05
MR
13112016-05-27 Maciej W. Rozycki <macro@imgtec.com>
1312
1313 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS16_26>
1314 <R_MIPS_26, R_MICROMIPS_26_S1>: Include the addend in JALX's
1315 target alignment verification.
1316
ceab86af
MR
13172016-05-27 Maciej W. Rozycki <macro@imgtec.com>
1318
1319 * elfxx-mips.c (mips_elf_calculate_relocation): Also use the
1320 section name if `bfd_elf_string_from_elf_section' returns an
1321 empty string.
1322
ed53407e
MR
13232016-05-26 Maciej W. Rozycki <macro@imgtec.com>
1324
1325 * elfxx-mips.c (_bfd_mips_elf_relocate_section)
1326 <bfd_reloc_outofrange>: Use the `%X%H' rather than `%C' format
1327 for message. Continue processing rather than returning failure.
1328
de341542 13292016-05-25 Maciej W. Rozycki <macro@imgtec.com>
ed53407e 1330
de341542
MR
1331 * elfxx-mips.c (_bfd_mips_elf_relocate_section)
1332 <bfd_reloc_outofrange>: Call `->einfo' rather than `->warning'.
1333 Call `bfd_set_error'.
1334
e6cc316a
L
13352016-05-25 H.J. Lu <hongjiu.lu@intel.com>
1336
1337 PR binutils/14625
1338 * archive.c (bfd_slurp_armap): Replace
1339 bfd_elf64_archive_slurp_armap with
1340 _bfd_archive_64_bit_slurp_armap.
1341 (bsd_write_armap): Call _bfd_archive_64_bit_write_armap if
1342 BFD64 is defined and the archive is too big.
1343 (coff_write_armap): Likewise.
1344 * archive64.c (bfd_elf64_archive_slurp_armap): Renamed to ...
1345 (_bfd_archive_64_bit_slurp_armap): This.
1346 (bfd_elf64_archive_write_armap): Renamed to ...
1347 (_bfd_archive_64_bit_write_armap): This.
1348 * configure.ac: Add --enable-64-bit-archive.
1349 (want_64_bit_archive): New. Set to true by default for 64-bit
1350 MIPS and s390 ELF targets.
1351 (USE_64_BIT_ARCHIVE): New AC_DEFINE.
1352 * config.in: Regenerated.
1353 * configure: Likewise.
1354 * elf64-mips.c (bfd_elf64_archive_functions): Removed.
1355 (bfd_elf64_archive_slurp_armap): Likewise.
1356 (bfd_elf64_archive_write_armap): Likewise.
1357 (bfd_elf64_archive_slurp_extended_name_table): Likewise.
1358 (bfd_elf64_archive_construct_extended_name_table): Likewise.
1359 (bfd_elf64_archive_truncate_arname): Likewise.
1360 (bfd_elf64_archive_read_ar_hdr): Likewise.
1361 (bfd_elf64_archive_write_ar_hdr): Likewise.
1362 (bfd_elf64_archive_openr_next_archived_file): Likewise.
1363 (bfd_elf64_archive_get_elt_at_index): Likewise.
1364 (bfd_elf64_archive_generic_stat_arch_elt): Likewise.
1365 (bfd_elf64_archive_update_armap_timestamp): Likewise.
1366 * elf64-s390.c (bfd_elf64_archive_functions): Removed.
1367 (bfd_elf64_archive_slurp_armap): Likewise.
1368 (bfd_elf64_archive_write_armap): Likewise.
1369 (bfd_elf64_archive_slurp_extended_name_table): Likewise.
1370 (bfd_elf64_archive_construct_extended_name_table): Likewise.
1371 (bfd_elf64_archive_truncate_arname): Likewise.
1372 (bfd_elf64_archive_read_ar_hdr): Likewise.
1373 (bfd_elf64_archive_write_ar_hdr): Likewise.
1374 (bfd_elf64_archive_openr_next_archived_file): Likewise.
1375 (bfd_elf64_archive_get_elt_at_index): Likewise.
1376 (bfd_elf64_archive_generic_stat_arch_elt): Likewise.
1377 (bfd_elf64_archive_update_armap_timestamp): Likewise.
1378 * elfxx-target.h (TARGET_BIG_SYM): Use _bfd_archive_64_bit on
1379 BFD_JUMP_TABLE_ARCHIVE if USE_64_BIT_ARCHIVE is defined and
1380 bfd_elfNN_archive_functions isn't defined.
1381 (TARGET_LITTLE_SYM): Likewise.
1382 * libbfd-in.h (_bfd_archive_64_bit_slurp_armap): New prototype.
1383 (_bfd_archive_64_bit_write_armap): Likewise.
1384 (_bfd_archive_64_bit_slurp_extended_name_table): New macro.
1385 (_bfd_archive_64_bit_construct_extended_name_table): Likewise.
1386 (_bfd_archive_64_bit_truncate_arname): Likewise.
1387 (_bfd_archive_64_bit_read_ar_hdr): Likewise.
1388 (_bfd_archive_64_bit_write_ar_hdr): Likewise.
1389 (_bfd_archive_64_bit_openr_next_archived_file): Likewise.
1390 (_bfd_archive_64_bit_get_elt_at_index): Likewise.
1391 (_bfd_archive_64_bit_generic_stat_arch_elt): Likewise.
1392 (_bfd_archive_64_bit_update_armap_timestamp): Likewise.
1393 * libbfd.h: Regenerated.
1394 * plugin.c (plugin_vec): Use _bfd_archive_64_bit on
1395 BFD_JUMP_TABLE_ARCHIVE if USE_64_BIT_ARCHIVE is defined.
1396
b95a0a31
L
13972016-05-25 H.J. Lu <hongjiu.lu@intel.com>
1398
1399 PR ld/20103
1400 * cofflink.c (coff_link_check_archive_element): Return TRUE if
1401 linker add_archive_element callback returns FALSE.
1402 * ecoff.c (ecoff_link_check_archive_element): Likewise.
1403 * elf64-ia64-vms.c (elf64_vms_link_add_archive_symbols): Skip
1404 archive element if linker add_archive_element callback returns
1405 FALSE.
1406 * elflink.c (elf_link_add_archive_symbols): Likewise.
1407 * pdp11.c (aout_link_check_ar_symbols): Likewise.
1408 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Likewise.
1409 * xcofflink.c (xcoff_link_check_dynamic_ar_symbols): Likewise.
1410 (xcoff_link_check_ar_symbols): Likewise.
1411
7db9a74e
MR
14122016-05-24 Maciej W. Rozycki <macro@imgtec.com>
1413
1414 * elfxx-mips.c (_bfd_mips_elf_relocate_section)
1415 <bfd_reloc_outofrange>: Unify error reporting code.
1416
b7f28d87
JW
14172016-05-23 Jim Wilson <jim.wilson@linaro.org>
1418
1419 * elfnn-aarch64.c: Unconditionally enable R_AARCH64_NULL and
1420 R_AARCH64_NONE. Use HOWTO64 for R_AARCH64_NULL.
1421 * relocs.c: Add BFD_RELOC_AARCH64_NULL.
1422 * bfd-in2.h: Regenerate.
1423 * libbfd.h: Likewise.
1424
a2bea324
KS
14252016-05-23 Kuba Sejdak <jakub.sejdak@phoesys.com>
1426
1427 * config.bfd: Add entry for arm-phoenix.
1428
d7c5bd02
TP
14292016-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
1430
1431 * elf32-arm.c (arm_dedicated_stub_section_padding): New function.
1432 (elf32_arm_size_stubs): Declare stub_type in a more outer scope and
1433 account for padding for stub section requiring one.
1434 (elf32_arm_build_stubs): Add comment to stress the importance of
1435 zeroing veneer section content.
1436
daa4adae
TP
14372016-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
1438
1439 * bfd-in.h (bfd_elf32_arm_keep_private_stub_output_sections): Declare
1440 bfd hook.
1441 * bfd-in2.h: Regenerate.
1442 * elf32-arm.c (arm_dedicated_stub_output_section_required): New
1443 function.
1444 (arm_dedicated_stub_output_section_required_alignment): Likewise.
1445 (arm_dedicated_stub_output_section_name): Likewise.
1446 (arm_dedicated_stub_input_section_ptr): Likewise.
1447 (elf32_arm_create_or_find_stub_sec): Add stub type parameter and
1448 function description comment. Add support for dedicated output stub
1449 section to given stub types.
1450 (elf32_arm_add_stub): Add a stub type parameter and pass it down to
1451 elf32_arm_create_or_find_stub_sec.
1452 (elf32_arm_create_stub): Pass stub type down to elf32_arm_add_stub.
1453 (elf32_arm_size_stubs): Pass stub type when calling
1454 elf32_arm_create_or_find_stub_sec for Cortex-A8 erratum veneers.
1455 (bfd_elf32_arm_keep_private_stub_output_sections): New function.
1456
52bf37dd
L
14572016-05-20 H.J. Lu <hongjiu.lu@intel.com>
1458
1459 * elf32-i386.c (elf_i386_check_relocs): Don't check R_386_GOT32
1460 when setting need_convert_load.
1461
17c6c9d9
MR
14622016-05-20 Maciej W. Rozycki <macro@imgtec.com>
1463
1464 * elfxx-mips.c (mips_elf_read_rel_addend): Adjust the addend for
1465 microMIPS JALX.
1466
7d4d9709
L
14672016-05-19 H.J. Lu <hongjiu.lu@intel.com>
1468
1469 PR ld/20117
1470 * elf32-i386.c (elf_i386_convert_load_reloc): Don't check
1471 R_386_GOT32X.
1472 (elf_i386_convert_load): Don't convert R_386_GOT32.
1473
606851fb
AM
14742016-05-20 Alan Modra <amodra@gmail.com>
1475
1476 PR gas/20118
1477 * elf.c (elf_fake_sections): Set sh_entsize for SHT_INIT_ARRAY,
1478 SHT_FINI_ARRAY, and SHT_PREINIT_ARRAY.
1479
3c8adaca
CZ
14802016-05-19 Cupertino Miranda <cmiranda@synopsys.com>
1481
1482 * elf32-arc.c (arc_elf_final_write_processing): Changed.
1483 (debug_arc_reloc): Likewise.
1484 (elf_arc_relocate_section): Likewise.
1485 (elf_arc_check_relocs): Likewise.
1486 (elf_arc_adjust_dynamic_symbol): Likewise.
1487 (elf_arc_add_symbol_hook): Likewise.
1488
6b200de0
MR
14892016-05-19 Maciej W. Rozycki <macro@imgtec.com>
1490
1491 * config.bfd: Remove `am34-*-linux*' support.
1492
57e7d118
AM
14932016-05-19 Alan Modra <amodra@gmail.com>
1494
1495 * elf64-ppc.c (allocate_dynrelocs): Allocate got and other dynamic
1496 relocs before plt relocs.
1497
9f284bf9
AM
14982016-05-19 Alan Modra <amodra@gmail.com>
1499
1500 * elf64-ppc.c (ppc64_elf_branch_reloc): Check for NULL owner
1501 before dereferencing.
1502
50498060
NC
15032016-05-18 Nick Clifton <nickc@redhat.com>
1504
1505 * po/sv.po: Updated Swedish translation.
1506
7f991970
AM
15072016-05-18 Alan Modra <amodra@gmail.com>
1508
1509 * elf32-arm.c (elf32_arm_size_stubs): Free or cache local syms
1510 for each BFD. Don't goto error_ret_free_local from outside loop.
1511
a43942db
MR
15122016-05-17 Maciej W. Rozycki <macro@imgtec.com>
1513
1514 * elf-s390-common.c (elf_s390_add_symbol_hook): Remove
1515 STB_GNU_UNIQUE handling.
1516 * elf32-arc.c (elf_arc_add_symbol_hook): Likewise.
1517 * elf32-arm.c (elf32_arm_add_symbol_hook): Likewise.
1518 * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
1519 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
1520 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
1521 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
1522 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
1523 * elf64-x86-64.c (elf_x86_64_add_symbol_hook): Likewise.
1524 * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
1525 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Likewise.
1526 * elf32-i386.c (elf_i386_add_symbol_hook): Remove function.
1527 (elf_backend_add_symbol_hook): Remove macro.
1528 * elflink.c (elf_link_add_object_symbols): Set `has_gnu_symbols'
1529 for STB_GNU_UNIQUE symbols.
1530
71de3413
MR
15312016-05-16 Maciej W. Rozycki <macro@imgtec.com>
1532
1533 * elf32-v850.c (v850_elf_copy_notes): New function, factored out
1534 from...
1535 (v850_elf_copy_private_bfd_data): ... here. Call the new
1536 function and `_bfd_elf_copy_private_bfd_data'.
1537
2168b268
L
15382016-05-13 H.J. Lu <hongjiu.lu@intel.com>
1539
1540 PR ld/20093
1541 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Don't convert
1542 GOTPCREL relocation against large section.
1543
4ade44b7
AM
15442016-05-13 Alan Modra <amodra@gmail.com>
1545
1546 * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_sections): Use
1547 linker dynamic sections in calculating size and address of
2168b268 1548 dynamic tags rather than using output sections. Remove asserts.
4ade44b7
AM
1549 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Likewise.
1550 * elf32-cr16.c (_bfd_cr16_elf_finish_dynamic_sections): Likewise.
1551 * elf32-cris.c (elf_cris_finish_dynamic_sections): Likewise.
1552 * elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
1553 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Likewise.
1554 * elf32-m32r.c (m32r_elf_finish_dynamic_sections): Likewise.
1555 * elf32-m68k.c (elf_m68k_finish_dynamic_sections): Likewise.
1556 * elf32-metag.c (elf_metag_finish_dynamic_sections): Likewise.
1557 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Likewise.
1558 * elf32-nds32.c (nds32_elf_finish_dynamic_sections): Likewise.
1559 * elf32-nios2.c (nios2_elf32_finish_dynamic_sections): Likewise.
1560 * elf32-or1k.c (or1k_elf_finish_dynamic_sections): Likewise.
1561 * elf32-s390.c (elf_s390_finish_dynamic_sections): Likewise.
1562 * elf32-score.c (s3_bfd_score_elf_finish_dynamic_sections): Likewise.
1563 * elf32-score7.c (s7_bfd_score_elf_finish_dynamic_sections): Likewise.
1564 * elf32-vax.c (elf_vax_finish_dynamic_sections): Likewise.
1565 * elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Likewise.
1566 * elf64-alpha.c (elf64_alpha_finish_dynamic_sections): Likewise.
1567 * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise.
1568 * elf64-sh64.c (sh64_elf64_finish_dynamic_sections): Likewise.
1569 * elflink.c (bfd_elf_final_link): Likewise.
1570 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Likewise.
1571 * elfxx-sparc.c (sparc_finish_dyn): Likewise. Adjust error message.
1572 * elf32-arc.c (GET_SYMBOL_OR_SECTION): Remove ASSERT arg and
1573 don't set doit. Look up dynobj section.
1574 (elf_arc_finish_dynamic_sections): Adjust GET_SYMBOL_OR_SECTION
1575 invocation and dynamic tag vma calculation. Don't test
1576 boolean var == TRUE.
1577 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_sections): Fix
1578 DT_JMPREL calc.
1579
c8e44c6d
AM
15802016-05-13 Alan Modra <amodra@gmail.com>
1581
1582 * elflink.c (elf_link_sort_relocs): Wrap overlong lines. Fix
1583 octets_per_byte. Put dynamic .rela.plt last in link orders.
1584 Assign output_offset for reloc sections rather than writing
1585 sorted relocs from block corresponding to output_offset.
1586
1997c994
AM
15872016-05-12 Alan Modra <amodra@gmail.com>
1588
1589 * elf-bfd.h (elf_reloc_type_class): Put reloc_class_plt last.
1590
8f4f9071
MF
15912016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
1592
1593 * elfxx-mips.c (print_mips_ases): Add DSPR3.
1594
a464198b
AM
15952016-05-11 Alan Modra <amodra@gmail.com>
1596
1597 * elf32-hppa.c (elf32_hppa_init_stub_bfd): New function.
1598 (elf32_hppa_check_relocs): Don't set dynobj.
1599 (elf32_hppa_size_stubs): Test !SEC_LINKER_CREATED for stub sections.
1600 (elf32_hppa_build_stubs): Likewise.
1601 * elf32-hppa.h (elf32_hppa_init_stub_bfd): Declare.
1602
3bd43ebc
AM
16032016-05-11 Alan Modra <amodra@gmail.com>
1604
1605 PR 20060
1606 * elf64-ppc.c (ppc64_elf_tls_setup): Clear forced_local.
1607 * elf32-ppc.c (ppc_elf_tls_setup): Likewise.
1608
4e7fbb34
JW
16092016-05-10 Jiong Wang <jiong.wang@arm.com>
1610
1611 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Remove redundant
1612 aarch64_tls_transition check.
1613
4f4faa4d
TP
16142016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
1615
1616 * elf32-arm.c (enum elf32_arm_stub_type): New max_stub_type
1617 enumerator.
1618 (arm_stub_sym_claimed): New function.
1619 (elf32_arm_create_stub): Use veneered symbol name and section if
1620 veneer needs to claim its symbol, and keep logic unchanged otherwise.
1621 (arm_stub_claim_sym): New function.
1622 (arm_map_one_stub): Call arm_stub_claim_sym if veneer needs to claim
1623 veneered symbol, otherwise create local symbol as before.
1624
39d911fc
TP
16252016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
1626
1627 * elf32-arm.c (elf32_arm_size_stubs): Use new macros
1628 ARM_GET_SYM_BRANCH_TYPE and ARM_SET_SYM_BRANCH_TYPE to respectively get
1629 and set branch type of a symbol.
1630 (bfd_elf32_arm_process_before_allocation): Likewise.
1631 (elf32_arm_relocate_section): Likewise and fix identation along the
1632 way.
1633 (allocate_dynrelocs_for_symbol): Likewise.
1634 (elf32_arm_finish_dynamic_symbol): Likewise.
1635 (elf32_arm_swap_symbol_in): Likewise.
1636 (elf32_arm_swap_symbol_out): Likewise.
1637
6bde4c52
TP
16382016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
1639
1640 * bfd-in.h (elf32_arm_size_stubs): Add an output section parameter.
1641 * bfd-in2.h: Regenerated.
1642 * elf32-arm.c (struct elf32_arm_link_hash_table): Add an output section
1643 parameter to add_stub_section callback.
1644 (elf32_arm_create_or_find_stub_sec): Get output section from link_sec
1645 and pass it down to add_stub_section.
1646 (elf32_arm_add_stub): Set section to stub_sec if NULL before using it
1647 for error message.
1648 (elf32_arm_size_stubs): Add output section parameter to
1649 add_stub_section function pointer parameter.
1650
b715f643
TP
16512016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
1652
1653 * elf32-arm.c (elf32_arm_create_stub): New function.
1654 (elf32_arm_size_stubs): Use elf32_arm_create_stub for stub creation.
1655
8d9d9490
TP
16562016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
1657
1658 * elf32-arm.c (enum elf32_arm_stub_type): Delete
1659 arm_stub_a8_veneer_lwm enumerator.
1660 (arm_stub_a8_veneer_lwm): New unsigned constant to replace
1661 aforementioned enumerator.
1662 (struct elf32_arm_stub_hash_entry): Delete target_addend
1663 field and add source_value.
1664 (struct a8_erratum_fix): Delete addend field and add target_offset.
1665 (stub_hash_newfunc): Initialize source_value field amd remove
1666 initialization for target_addend.
1667 (arm_build_one_stub): Stop special casing Thumb relocations: promote
1668 the else to being always executed, moving the
1669 arm_stub_a8_veneer_b_cond specific code in it. Remove
1670 stub_entry->target_addend from points_to computation.
1671 (cortex_a8_erratum_scan): Store in a8_erratum_fix structure the offset
1672 to target symbol from start of section rather than the offset from the
1673 stub address.
1674 (elf32_arm_size_stubs): Set stub_entry's source_value and target_value
1675 fields from struct a8_erratum_fix's offset and target_offset
1676 respectively.
1677 (make_branch_to_a8_stub): Rename target variable to loc. Compute
1678 veneered_insn_loc and loc using stub_entry's source_value.
1679
15afaa63
TP
16802016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
1681
1682 (elf32_arm_merge_eabi_attributes): Add merging logic for
1683 Tag_DSP_extension.
1684
66a36822
PC
16852016-05-10 Pip Cet <pipcet@gmail.com>
1686
1687 PR ld/20059
1688 * elfxx-target.h (bfd_elfNN_bfd_copy_link_hash_symbol_type):
1689 Define as _bfd_generic_copy_link_hash_symbol_type when using
1690 generic hash table.
1691
315350be
NC
16922016-05-09 Nick Clifton <nickc@redhat.com>
1693
1694 PR binutils/20063
1695 * elf.c (bfd_elf_get_elf_syms): Check for out of range sh_link
1696 field before accessing sections array.
1697
9239bbd3
CM
16982016-05-09 Christophe Monat <christophe.monat@st.com>
1699
1700 PR ld/20030
1701 * elf32-arm.c (is_thumb2_vldm): Account for T1 (DP) encoding.
1702 (stm32l4xx_need_create_replacing_stub): Rename ambiguous nb_regs
1703 to nb_words.
1704 (create_instruction_vldmia): Add is_dp to disambiguate SP/DP
1705 encoding.
1706 (create_instruction_vldmdb): Likewise.
1707 (stm32l4xx_create_replacing_stub_vldm): is_dp detects DP encoding,
1708 uses it to re-encode.
1709
73597c18
NC
17102016-05-09 Nick Clifton <nickc@redhat.com>
1711
1712 PR 19938
1713 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Revert accidental
1714 commit.
1715
ae1bb197
AM
17162016-05-09 Alan Modra <amodra@gmail.com>
1717
1718 * elf64-ppc.c (ppc64_elf_init_stub_bfd): Remove redundant NULL check.
1719
97196564
L
17202016-05-06 H.J. Lu <hongjiu.lu@intel.com>
1721
1722 PR ld/17550
1723 * elf-bfd.h (elf_link_hash_entry): Update comments for indx,
1724 documenting that indx == -3 if symbol is defined in a discarded
1725 section.
1726 * elflink.c (elf_link_add_object_symbols): Set indx to -3 if
1727 symbol is defined in a discarded section.
1728 (elf_link_output_extsym): Strip a global symbol defined in a
1729 discarded section.
1730
030e823c
L
17312016-05-06 H.J. Lu <hongjiu.lu@intel.com>
1732
1733 * elf32-i386.c (elf_backend_add_symbol_hook): Defined for Intel
1734 MCU.
1735
c175a657
L
17362016-05-05 H.J. Lu <hongjiu.lu@intel.com>
1737
1738 * elf32-i386.c (elf_i386_convert_load): Extract the GOT load
1739 conversion to ...
1740 (elf_i386_convert_load_reloc): This. New function.
1741 * elf64-x86-64.c (elf_x86_64_convert_load): Extract the GOT load
1742 conversion to ...
1743 (elf_x86_64_convert_load_reloc): This. New function.
1744
bedfd056
L
17452016-05-05 H.J. Lu <hongjiu.lu@intel.com>
1746
1747 * elf32-i386.c (elf_i386_check_tls_transition): Remove abfd.
1748 Don't check if contents == NULL.
1749 (elf_i386_tls_transition): Add from_relocate_section. Check
1750 from_relocate_section instead of contents != NULL. Update
1751 elf_i386_check_tls_transition call.
1752 (elf_i386_check_relocs): Cache the section contents if
1753 keep_memory is FALSE. Pass FALSE as from_relocate_section to
1754 elf_i386_tls_transition.
1755 (elf_i386_relocate_section): Pass TRUE as from_relocate_section
1756 to elf_i386_tls_transition.
1757 (elf_backend_caches_rawsize): New.
1758 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Don't check
1759 if contents == NULL.
1760 (elf_x86_64_tls_transition): Add from_relocate_section. Check
1761 from_relocate_section instead of contents != NULL.
1762 (elf_x86_64_check_relocs): Cache the section contents if
1763 keep_memory is FALSE. Pass FALSE as from_relocate_section to
1764 elf_x86_64_tls_transition.
1765 (elf_x86_64_relocate_section): Pass TRUE as from_relocate_section
1766 to elf_x86_64_tls_transition.
1767 (elf_backend_caches_rawsize): New.
1768
6d6a648c
MR
17692016-05-03 Maciej W. Rozycki <macro@imgtec.com>
1770
1771 PR 10549
1772 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Handle
1773 STB_GNU_UNIQUE.
1774
1f56df9d
JW
17752016-05-03 Jiong Wang <jiong.wang@arm.com>
1776
1777 * bfd-in.h (bfd_elf64_aarch64_set_options): Update prototype.
1778 * bfd-in2.h (bfd_elf64_aarch64_set_options): Likewise.
1779 * elfnn-aarch64.c (bfd_elfNN_aarch64_set_options): Initialize
1780 no_apply_dynamic_relocs.
1781 (elfNN_aarch64_final_link_relocate): Apply absolute relocations even though
1782 dynamic relocations generated.
1783
493f652c
L
17842016-04-29 H.J. Lu <hongjiu.lu@intel.com>
1785
1786 * elf32-i386.c (elf_i386_size_dynamic_sections): Move interp
1787 setting to ...
1788 (elf_i386_create_dynamic_sections): Here.
1789 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Move
1790 interp setting to ...
1791 (elf_x86_64_create_dynamic_sections): Here.
1792
e62b9723
L
17932016-04-29 H.J. Lu <hongjiu.lu@intel.com>
1794
1795 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take GOT_RELOC
1796 and replace (EH)->has_got_reloc with GOT_RELOC.
1797 (elf_i386_fixup_symbol): Pass has_got_reloc to
1798 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
1799 (elf_i386_allocate_dynrelocs): Likewise.
1800 (elf_i386_relocate_section): Likewise.
1801 (elf_i386_finish_dynamic_symbol): Likewise.
1802 (elf_i386_convert_load): Pass TRUE to
1803 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
1804 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take
1805 GOT_RELOC and replace (EH)->has_got_reloc with GOT_RELOC.
1806 (elf_x86_64_fixup_symbol): Pass has_got_reloc to
1807 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
1808 (elf_x86_64_allocate_dynrelocs): Likewise.
1809 (elf_x86_64_relocate_section): Likewise.
1810 (elf_x86_64_finish_dynamic_symbol): Likewise.
1811 (elf_x86_64_convert_load): Pass TRUE to
1812 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
1813
c337a162
L
18142016-04-29 H.J. Lu <hongjiu.lu@intel.com>
1815
1816 * elf32-i386.c (check_relocs_failed): New.
1817 (elf_i386_check_relocs): Set check_relocs_failed on error.
1818 (elf_i386_relocate_section): Skip if check_relocs failed.
1819
afd9acee
L
18202016-04-29 H.J. Lu <hongjiu.lu@intel.com>
1821
1822 * elf64-x86-64.c (elf_x86_64_check_relocs): Set
1823 check_relocs_failed on error.
1824
5522f910
NC
18252016-04-29 Nick Clifton <nickc@redhat.com>
1826
1827 PR 19938
1828 * elf-bfd.h (struct elf_backend_data): Rename
1829 elf_backend_set_special_section_info_and_link to
1830 elf_backend_copy_special_section_fields.
1831 * elfxx-target.h: Likewise.
1832 * elf.c (section_match): Ignore the SHF_INFO_LINK flag when
1833 comparing section flags.
1834 (copy_special_section_fields): New function.
1835 (_bfd_elf_copy_private_bfd_data): Copy the EI_ABIVERSION field.
1836 Perform two scans over special sections. The first one looks for
1837 a direct mapping between the output section and an input section.
1838 The second scan looks for a possible match based upon section
1839 characteristics.
1840 * elf32-arm.c (elf32_arm_copy_special_section_fields): New
1841 function. Handle setting the sh_link field of SHT_ARM_EXIDX
1842 sections.
1843 * elf32-i386.c (elf32_i386_set_special_info_link): Rename to
1844 elf32_i386_copy_solaris_special_section_fields.
1845 * elf32-sparc.c (elf32_sparc_set_special_section_info_link):
1846 Rename to elf32_sparc_copy_solaris_special_section_fields.
1847 * elf64-x86-64.c (elf64_x86_64_set_special_info_link): Rename to
1848 elf64_x86_64_copy_solaris_special_section_fields.
1849
786a118c
NC
18502016-04-28 Nick Clifton <nickc@redhat.com>
1851
1852 * po/zh_CN.po: Updated Chinese (simplified) translation.
1853
91f8bf69
L
18542016-04-27 H.J. Lu <hongjiu.lu@intel.com>
1855
1856 PR ld/20006
1857 * elf64-x86-64.c (elf_x86_64_convert_load): Skip debug sections
1858 when estimating distances between output sections.
1859
a6a4679f
AM
18602016-04-27 Alan Modra <amodra@gmail.com>
1861
1862 * elflink.c (_bfd_elf_is_start_stop): New function.
1863 (_bfd_elf_gc_mark_rsec): Use it.
1864 * elf-bfd.h (_bfd_elf_is_start_stop): Declare.
1865
28cc9170
TS
18662016-04-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1867
1868 * elf32-rx.c (rx_set_section_contents): Avoid arithmetic on void *.
1869 * mmo.c (mmo_get_section_contents): Likewise.
1870 (mmo_set_section_contents): Likewise.
1871
d5486c43
L
18722016-04-26 H.J. Lu <hongjiu.lu@intel.com>
1873
1874 * elf-bfd.h (elf_link_hash_table): Update comments for
1875 dynsymcount.
1876 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always count for
1877 the unused NULL entry at the head of dynamic symbol table.
1878 (bfd_elf_size_dynsym_hash_dynstr): Remove dynsymcount != 0
1879 checks.
1880
6645479e
L
18812016-04-21 H.J. Lu <hongjiu.lu@intel.com>
1882
1883 * elflink.c (_bfd_elf_link_create_dynstrtab): Exclude linker
1884 created file from dynobj.
1885
6cd255ca
L
18862016-04-21 H.J. Lu <hongjiu.lu@intel.com>
1887
1888 * elflink.c (_bfd_elf_link_create_dynstrtab): Set dynobj to a
1889 normal input file if possible.
1890
4f3b23b3
NC
18912016-04-21 Nick Clifton <nickc@redhat.com>
1892
1893 * aout-adobe.c: Use _bfd_generic_link_check_relocs.
1894 * aout-target.h: Likewise.
1895 * aout-tic30.c: Likewise.
1896 * binary.c: Likewise.
1897 * bout.c: Likewise.
1898 * coff-alpha.c: Likewise.
1899 * coff-rs6000.c: Likewise.
1900 * coff64-rs6000.c: Likewise.
1901 * coffcode.h: Likewise.
1902 * i386msdos.c: Likewise.
1903 * i386os9k.c: Likewise.
1904 * ieee.c: Likewise.
1905 * ihex.c: Likewise.
1906 * libbfd-in.h: Likewise.
1907 * libecoff.h: Likewise.
1908 * mach-o-target.c: Likewise.
1909 * mmo.c: Likewise.
1910 * nlm-target.h: Likewise.
1911 * oasys.c: Likewise.
1912 * pef.c: Likewise.
1913 * plugin.c: Likewise.
1914 * ppcboot.c: Likewise.
1915 * som.c: Likewise.
1916 * srec.c: Likewise.
1917 * tekhex.c: Likewise.
1918 * versados.c: Likewise.
1919 * vms-alpha.c: Likewise.
1920 * xsym.c: Likewise.
1921 * elfxx-target.h: Use _bfd_elf_link_check_relocs.
1922 * linker.c (bfd_link_check_relocs): New function.
1923 (_bfd_generic_link_check_relocs): New function.
1924 * targets.c (BFD_JUMP_TABLE_LINK): Add initialization of
1925 _bfd_link_check_relocs field.
1926 (struct bfd_target)L Add _bfd_link_check_relocs field.
1927 * bfd-in2.h: Regenerate.
1928 * libbfd.h: Regenerate.
1929
e66cdd68
L
19302016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1931
1932 * elf32-i386.c (elf_i386_gc_sweep_hook): Removed.
1933 (elf_backend_gc_sweep_hook): Likewise.
1934 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
1935 (elf_backend_gc_sweep_hook): Likewise.
1936
5ce03cea
L
19372016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1938
1939 * elflink.c (_bfd_elf_link_check_relocs): Don't check relocations
1940 in excluded sections
1941
338c190a
L
19422016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1943
1944 PR ld/19969
1945 * elf64-x86-64.c (check_relocs_failed): New.
1946 (elf_x86_64_need_pic): Moved before elf_x86_64_check_relocs.
1947 Support relocation agaist local symbol. Set check_relocs_failed.
1948 (elf_x86_64_check_relocs): Use elf_x86_64_need_pic. Check
1949 R_X86_64_32 relocation overflow.
1950 (elf_x86_64_relocate_section): Skip if check_relocs failed.
1951 Update one elf_x86_64_need_pic and remove one elf_x86_64_need_pic.
1952
466ee2af
L
19532016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1954
1955 * elf32-i386.c (elf_i386_check_relocs): Call
1956 _bfd_elf_create_ifunc_sections only for STT_GNU_IFUNC symbol.
1957 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1958
d9689752
L
19592016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1960
1961 * elf-bfd.h (_bfd_elf_link_check_relocs): New.
1962 * elflink.c (_bfd_elf_link_check_relocs): New function.
1963 (elf_link_add_object_symbols): Call _bfd_elf_link_check_relocs
1964 if check_relocs_after_open_input is FALSE.
1965
e6c7cdec
TS
19662016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1967
1968 * cache.c: Update old style function definitions.
1969 * elf32-m68k.c: Likewise.
1970 * elf64-mmix.c: Likewise.
1971 * stab-syms.c: Likewise.
1972
b98e6871
TS
19732016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1974
1975 * elf32-arm.c (put_thumb2_insn): Change argument type to bfd_byte *.
1976
6fd8e7c2
L
19772016-04-15 H.J. Lu <hongjiu.lu@intel.com>
1978
1979 * Makefile.in: Regenerated with automake 1.11.6.
1980 * aclocal.m4: Likewise.
1981 * doc/Makefile.in: Likewise.
1982
4b0c052e
AB
19832016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
1984
1985 * reloc.c: Add BFD_RELOC_ARC_NPS_CMEM16 entry.
1986 * bfd-in2.h: Regenerate.
1987 * libbfd.h: Regenerate.
1988 * elf32-arc.c: Add 'opcode/arc.h' include.
1989 (struct arc_relocation_data): Add symbol_name.
1990 (arc_special_overflow_checks): New function.
1991 (arc_do_relocation): Use arc_special_overflow_checks, reindent as
1992 required, add an extra comment.
1993 (elf_arc_relocate_section): Setup symbol_name in reloc_data.
1994
33cbe6c0
AB
19952016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
1996
1997 * elf32-arc.c (tls_got_entries): Add 'TLS_GOT_' prefix to all
1998 entries.
1999 (elf_arc_relocate_section): Update enum uses.
2000 (elf_arc_check_relocs): Likewise.
2001 (elf_arc_finish_dynamic_symbol): Likewise.
2002
7634c4e6
L
20032016-04-14 H.J. Lu <hongjiu.lu@intel.com>
2004
2005 * elf.c (_bfd_elf_copy_private_bfd_data): Replace "link" with
2006 "sh_link".
2007
84865015
NC
20082016-04-14 Nick Clifton <nickc@redhat.com>
2009
2010 PR target/19938
2011 * elf-bbfd.h (struct elf_backend_data): New field:
2012 elf_strtab_flags.
2013 New field: elf_backend_set_special_section_info_and_link
2014 * elfxx-target.h (elf_backend_strtab_flags): Define if not already
2015 defined.
2016 (elf_backend_set_special_section_info_and_link): Define if not
2017 already defined.
2018 (elfNN_bed): Use elf_backend_set_special_section_info_and_link and
2019 elf_backend_strtab_flags macros to initialise fields in structure.
2020 * elf.c (_bfd_elf_make_section_from_shdr): Check for SHF_STRINGS
2021 being set even if SHF_MERGE is not set.
2022 (elf_fake_sections): Likewise.
2023 (section_match): New function. Matches two ELF sections based
2024 upon fixed characteristics.
2025 (find_link): New function. Locates a section in a BFD that
2026 matches a section in a different BFD.
2027 (_bfd_elf_copy_private_bfd_data): Copy the sh_info and sh_link
2028 fields of reserved sections.
2029 (bfd_elf_compute_section_file_positions): Set the flags for the
2030 .shstrtab section based upon the elf_strtab_flags field in the
2031 elf_backend_data structure.
2032 (swap_out_syms): Likewise for the .strtab section.
2033 * elflink.c (bfd_elf_final_link): Set the flags for the
2034 .strtab section based upon the elf_strtab_flags field in the
2035 elf_backend_data structure.
2036 * elf32-i386.c (elf32_i386_set_special_info_link): New function.
2037 (elf_backend_strtab_flags): Set to SHF_STRINGS for Solaris
2038 targets.
2039 (elf_backend_set_special_section_info_and_link): Define for
2040 Solaris targets.
2041 * elf32-sparc.c: Likewise.
2042 * elf64-x86-64.c: Likewise.
2043
2df3368d
L
20442016-04-11 H.J. Lu <hongjiu.lu@intel.com>
2045
2046 PR ld/19939
2047 * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): Add a pointer
2048 to bfd_boolean.
2049 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Updated.
2050 Set *readonly_dynrelocs_against_ifunc_p to TRUE if dynamic reloc
2051 applies to read-only section.
2052 * elf32-i386.c (elf_i386_link_hash_table): Add
2053 readonly_dynrelocs_against_ifunc.
2054 (elf_i386_allocate_dynrelocs): Updated.
2055 (elf_i386_size_dynamic_sections): Issue an error for read-only
2056 segment with dynamic IFUNC relocations only if
2057 readonly_dynrelocs_against_ifunc is TRUE.
2058 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
2059 readonly_dynrelocs_against_ifunc.
2060 (elf_x86_64_allocate_dynrelocs): Updated.
2061 (elf_x86_64_size_dynamic_sections): Issue an error for read-only
2062 segment with dynamic IFUNC relocations only if
2063 readonly_dynrelocs_against_ifunc is TRUE.
2064 * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs):
2065 Updated.
2066
15dd01b1
TP
20672016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
2068
2069 * elf32-arm.c (elf32_arm_size_stubs): Move error_ret_free_local to be
2070 a fall through from error_ret_free_internal. Free local_syms in
2071 error_ret_free_local if allocated from bfd_elf_get_elf_syms ().
2072
1e5885b7
CZ
20732016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
2074
2075 * elf32-arc.c (plt_do_relocs_for_symbol): Changed.
2076 (relocate_plt_for_entry): Likewise.
2077
b3aee839
CZ
20782016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
2079
2080 * elf32-arc.c (elf_arc_check_relocs): Changed
2081
094fb063
CZ
20822016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
2083
2084 * elf32-arc.c (name_for_global_symbol): Changed assert.
2085 (get_replace_function): Created.:
2086 (struct arc_relocation_data): Changed to signed types.
2087 (defines S, L, P, PDATA): Casted to signed type.
2088 (defines SECTSTART, _SDA_BASE_, TLS_REL): Likewise.
2089 (PRINT_DEBUG_RELOC_INFO_BEFORE): Changed.
2090 (arc_do_relocation): Changed.
2091
94e5c971
CZ
20922016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
2093
2094 * elf32-arc.c (name_for_global_symbol): Added assert to check for
2095 symbol index.
2096 (elf_arc_relocate_section): Added and changed asserts, validating
2097 the synamic symbol index.
2098 (elf_arc_finish_dynamic_symbol): Do not fill the dynamic
2099 relocation if symbol has dynindx set to -1.
2100
1f599d0e
MR
21012016-04-05 Maciej W. Rozycki <macro@imgtec.com>
2102
2103 * elflink.c (elf_link_add_object_symbols): Always turn hidden
2104 and internal symbols which have a dynamic index into local
2105 ones.
2106
67f101ee
NC
21072016-04-04 Nick Clifton <nickc@redhat.com>
2108
2109 PR 19872
2110 * dwarf2.c (parse_comp_unit): Skip warning about unrecognised
2111 version number if the version is zero.
2112
7b15fa7a
AM
21132016-04-01 Alan Modra <amodra@gmail.com>
2114
2115 PR 19886
2116 * elflink.c (on_needed_list): Recursively check needed status.
2117 (elf_link_add_object_symbols): Adjust.
2118
024ea11b
SKS
21192016-03-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2120
2121 * elf32-avr.c (avr_elf32_load_records_from_section): Free
2122 internal_relocs only if they aren't cached.
2123
ed3056eb
NC
21242016-03-29 Nick Clifton <nickc@redhat.com>
2125
2126 PR 17334
2127 * elf32-bfin.c (elf32_bfinfdpic_finish_dynamic_sections): Relax
2128 assertion on the size of the got section to allow it to be bigger
2129 than the number of relocs.
2130
e2b4fc91
TS
21312016-03-29 Toni Spets <toni.spets@iki.fi>
2132
2133 PR 19878
2134 * coffcode.h (coff_write_object_contents): Revert accidental
2135 2014-11-10 change.
2136
a97fbc7e
AM
21372016-03-22 Alan Modra <amodra@gmail.com>
2138
2139 PR 19850
2140 * dwarf2.c (read_attribute_value): Skip info_ptr check for
2141 DW_FORM_flag_present.
2142
9780e045
NC
21432016-03-22 Nick Clifton <nickc@redhat.com>
2144
96254e5c
NC
2145 * cpu-v850_rh850.c (arch_info_struct): Restore v850-rh850 as an
2146 architecture name for backwards compatibility.
2147
7769fa97
NC
2148 * peXXigen.c (_bfd_XXi_write_codeview_record): Fix possible
2149 unbounded stack use.
2150
9780e045
NC
2151 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wstack-usage if using a
2152 sufficiently recent version of GCC.
2153 * configure: Regenerate.
2154
6f4c0a42
AM
21552016-03-22 Alan Modra <amodra@gmail.com>
2156
2157 PR 19851
2158 * plugin.c (try_load_plugin): Avoid -Wstack-usage warning.
2159
8699fc3e
AB
21602016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
2161
2162 * archures.c (bfd_mach_arc_nps400): Define.
2163 * bfd-in2.h: Regenerate.
2164 * cpu-arc.c (arch_info_struct): New entry for nps400, renumber
2165 some existing entries to make space.
2166 * elf32-arc.c (arc_elf_object_p): Add nps400 case.
2167 (arc_elf_final_write_processing): Likewise.
2168
a9522a21
AB
21692016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
2170
2171 * elf32-arc.c (arc_elf_print_private_bfd_data): Remove use of
2172 EF_ARC_CPU_GENERIC.
2173 (arc_elf_final_write_processing): Don't bother setting cpu field
2174 in e_flags, this will have been set elsewhere.
2175
c0334580
AB
21762016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
2177
2178 * elf32-arc.c (arc_elf_final_write_processing): Switch to using
2179 EF_ARC_MACH_MSK.
2180
e1fa0163
NC
21812016-03-21 Nick Clifton <nickc@redhat.com>
2182
2183 * warning.m4 (GCC_WARN_CFLAGS): Add -Wstack-usage=262144
2184 * configure: Regenerate.
2185 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Replace use of
2186 alloca with call to xmalloc.
2187 * elf32-nds32.c: Likewise.
2188 * elf64-hppa.c: Likewise.
2189 * elfxx-mips.c: Likewise.
2190 * pef.c: Likewise.
2191 * pei-x86_64.c: Likewise.
2192 * som.c: Likewise.
2193 * xsym.c: Likewise.
2194
4e0c91e4
L
21952016-03-15 H.J. Lu <hongjiu.lu@intel.com>
2196
2197 PR ld/19827
2198 * elf32-i386.c (elf_i386_check_relocs): Bind defined symbol
2199 locally in PIE.
2200 (elf_i386_relocate_section): Likewise.
2201 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
2202 (elf_x86_64_relocate_section): Likewise.
2203
4c10bbaa
L
22042016-03-15 H.J. Lu <hongjiu.lu@intel.com>
2205
2206 PR ld/19807
2207 * elf64-x86-64.c (elf_x86_64_relocate_section): Check
2208 no_reloc_overflow_check to diable R_X86_64_32/R_X86_64_32S
2209 relocation overflow check.
2210
fbe48798
L
22112016-03-14 H.J. Lu <hongjiu.lu@intel.com>
2212
2213 * bfd-in2.h: Regenerated.
2214
37b01f6a
DG
22152016-03-11 Dan Gissel <dgisselq@ieee.org>
2216
2217 PR 19713
2218 * elf.c (_bfd_elf_section_offset): Ensure that the returned offset
2219 uses bytes not octets.
2220 * elflink.c (resolve_section): Likewise.
2221 Add a bfd parameter.
2222 (eval_section): Pass the input_bfd to resolve_section.
2223 (bfd_elf_perform_complex_relocation): Convert byte offset to
2224 octets before read and writing values.
2225 (elf_link_input_bfd): Add byte to octet conversions.
2226 (elf_reloc_link_order): Likewise.
2227 (elf_fixup_link_order): Likewise.
2228 (bfd_elf_final_link): Likewise.
2229 * reloc.c (_bfd_final_link_relocate): Likewise.
2230 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
2231
3ed4ff97
NC
22322016-03-10 Nick Clifton <nickc@redhat.com>
2233
2234 * config.bfd: Mark the i370 target as obsolete.
2235
4b05e0a7
PA
22362016-03-09 Pedro Alves <palves@redhat.com>
2237
2238 * cpu-v850.c (N): Append ":old-gcc-abi" instead of " (using old
2239 gcc ABI)" to printable name.
2240 * cpu-v850_rh850.c (bfd_v850_rh850_arch): Use "v850:rh850" instead
2241 of "v850-rh850" as printable name.
2242
26c62da0
LW
22432016-03-09 Leon Winter <winter-gcc@bfw-online.de>
2244
2245 PR ld/19623
2246 * cofflink.c (_bfd_coff_generic_relocate_section): Do not apply
2247 relocations against absolute symbols.
2248
03ee8583
AM
22492016-03-09 Alan Modra <amodra@gmail.com>
2250
2251 PR binutils/19775
2252 * coff-alpha.c (alpha_ecoff_openr_next_archived_file): Allow zero
2253 length elements in the archive.
2254
9c1d7a08
L
22552016-03-08 H.J. Lu <hongjiu.lu@intel.com>
2256
2257 PR ld/19789
2258 * elflink.c (elf_link_add_object_symbols): Create dynamic sections
2259 for -E/--dynamic-list only when not relocatable.
2260
d1ed1c7d
L
22612016-03-08 H.J. Lu <hongjiu.lu@intel.com>
2262
2263 PR ld/19784
2264 * elf32-i386.c (elf_i386_check_relocs): Increment PLT reference
2265 count for locally defined local IFUNC symbols in shared object.
2266 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
2267
202ac193
L
22682016-03-08 H.J. Lu <hongjiu.lu@intel.com>
2269
2270 PR ld/19579
2271 * elflink.c (_bfd_elf_merge_symbol): Group common symbol checking
2272 together.
2273
72f3b6aa
CZ
22742016-03-08 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
2275 Andrew Burgess <andrew.burgess@embecosm.com>
2276
2277 * elf32-arc.c (arc_bfd_get_32): Becomes an alias for bfd_get_32.
2278 (arc_bfd_put_32): Becomes an alias for bfd_put_32.
2279 (arc_elf_howto_init): Added assert to validate relocations.
2280 (get_middle_endian_relocation): Delete.
2281 (middle_endian_convert): New function.
2282 (ME): Redefine, now does nothing.
2283 (IS_ME): New define.
2284 (arc_do_relocation): Extend the attached 'ARC_RELOC_HOWTO'
2285 definition to call middle_endian_convert. Add a new local
2286 variable and make use of this throughout. Added call to
2287 arc_bfd_get_8 and arc_bfd_put_8 for 8 bit relocations.
2288
4fc87424
NC
22892016-03-07 Nick Clifton <nickc@redhat.com>
2290
2291 PR binutils/19775
2292 * archive.c (bfd_generic_openr_next_archived_file): Allow zero
2293 length elements in the archive.
2294
18f822a0
JW
22952016-03-07 Jiong Wang <jiong.wang@arm.com>
2296
2297 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Always create .got
2298 section if the symbol "_GLOBAL_OFFSET_TABLE_" is referenced.
2299
07492f66
L
23002016-03-04 H.J. Lu <hongjiu.lu@intel.com>
2301
2302 PR ld/19579
2303 * elflink.c (_bfd_elf_merge_symbol): Treat common symbol in
2304 executable as definition if the new definition comes from a
2305 shared library.
2306
70a5df4f
AM
23072016-03-02 Alan Modra <amodra@gmail.com>
2308
2309 * Makefile.in: Regenerate.
2310 * po/SRC-POTFILES.in: Regenerate.
2311
841fdfcd
CZ
23122016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
2313
2314 * elf32-arc.c (elf_arc_relocate_section): Added rules to fix the
2315 relocation addend when sections get merged.
2316
7e458899
CZ
23172016-02-29 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
2318
2319 * elf32-arc.c (arc_elf_final_write_processing): Add condition to
2320 the flag change.
2321 (elf_arc_relocate_section): Fixes and conditions to support PIE.
2322 Assert for code sections dynamic relocs.
2323
c5e3a364
RL
23242016-02-26 Renlin Li <renlin.li@arm.com>
2325
2326 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix signed overflow
2327 check for MOVW_SABS_G0, MOVW_SABS_G1, MOVW_SABS_G2.
2328
bae420ef
L
23292016-02-26 H.J. Lu <hongjiu.lu@intel.com>
2330
2331 PR ld/19609
2332 * elf32-i386.c (elf_i386_convert_load): Convert to R_386_32 for
2333 load with locally bound symbols if PIC is false or there is no
2334 base register. Optimize branch to 0 if PIC is false.
2335 (elf_i386_relocate_section): Don't generate dynamic relocations
2336 against undefined weak symbols if PIC is false.
2337 * elf64-x86-64.c (elf_x86_64_convert_load): Disable optimization
2338 if we can't estimate relocation overflow with --no-relax.
2339 Convert to R_X86_64_32S/R_X86_64_32 for load with locally bound
2340 symbols if PIC is false. Optimize branch to 0 if PIC is false.
2341 (elf_x86_64_relocate_section): Don't generate dynamic relocations
2342 against undefined weak symbols if PIC is false.
2343
11e5f1ec
L
23442016-02-26 H.J. Lu <hongjiu.lu@intel.com>
2345
2346 PR ld/19645
2347 * bfd.c (bfd): Change flags to 20 bits.
2348 (BFD_CONVERT_ELF_COMMON): New.
2349 (BFD_USE_ELF_STT_COMMON): Likewise.
2350 (BFD_FLAGS_SAVED): Add BFD_CONVERT_ELF_COMMON and
2351 BFD_USE_ELF_STT_COMMON.
2352 (BFD_FLAGS_FOR_BFD_USE_MASK): Likewise.
2353 * configure.ac: Remove --enable-elf-stt-common.
2354 * elf.c (swap_out_syms): Choose STT_COMMON or STT_OBJECT for
2355 common symbol depending on BFD_CONVERT_ELF_COMMON and
2356 BFD_USE_ELF_STT_COMMON.
2357 * elfcode.h (elf_slurp_symbol_table): Set BSF_ELF_COMMON for
2358 STT_COMMON.
2359 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Also check
2360 STT_COMMON.
2361 (elf_link_convert_common_type): New function.
2362 (elf_link_output_extsym): Choose STT_COMMON or STT_OBJECT for
2363 common symbol depending on BFD_CONVERT_ELF_COMMON and
2364 BFD_USE_ELF_STT_COMMON. Set sym.st_info after sym.st_shndx.
2365 * elfxx-target.h (TARGET_BIG_SYM): Add BFD_CONVERT_ELF_COMMON
2366 and BFD_USE_ELF_STT_COMMON to object_flags.
2367 (TARGET_LITTLE_SYM): Likewise.
2368 * syms.c (BSF_KEEP_G): Renamed to ...
2369 (BSF_ELF_COMMON): This.
2370 * bfd-in2.h: Regenerated.
2371 * config.in: Likewise.
2372 * configure: Likewise.
2373
aec6b87e
L
23742016-02-26 H.J. Lu <hongjiu.lu@intel.com>
2375
2376 PR ld/19636
2377 PR ld/19704
2378 PR ld/19719
2379 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
2380 (elf_i386_link_hash_entry): Add has_got_reloc and
2381 has_non_got_reloc.
2382 (elf_i386_link_hash_table): Add interp.
2383 (elf_i386_link_hash_newfunc): Initialize has_got_reloc and
2384 has_non_got_reloc.
2385 (elf_i386_copy_indirect_symbol): Copy has_got_reloc and
2386 has_non_got_reloc.
2387 (elf_i386_check_relocs): Set has_got_reloc and has_non_got_reloc.
2388 (elf_i386_fixup_symbol): New function.
2389 (elf_i386_pie_finish_undefweak_symbol): Likewise.
2390 (elf_i386_allocate_dynrelocs): Don't allocate space for dynamic
2391 relocations and discard relocations against resolved undefined
2392 weak symbols in executable. Don't make resolved undefined weak
2393 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
2394 relocation against undefined weak symbols in PIE.
2395 (elf_i386_size_dynamic_sections): Set interp to .interp section.
2396 (elf_i386_relocate_section): Don't generate dynamic relocations
2397 against resolved undefined weak symbols in PIE, except for
2398 R_386_PC32.
2399 (elf_i386_finish_dynamic_symbol): Keep PLT/GOT entries without
2400 dynamic PLT/GOT relocations for resolved undefined weak symbols.
2401 Don't generate dynamic relocation against resolved undefined weak
2402 symbol in executable.
2403 (elf_i386_finish_dynamic_sections): Call
2404 elf_i386_pie_finish_undefweak_symbol on all symbols in PIE.
2405 (elf_backend_fixup_symbol): New.
2406 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
2407 (elf_x86_64_link_hash_entry): Add has_got_reloc and
2408 has_non_got_reloc.
2409 (elf_x86_64_link_hash_table): Add interp.
2410 (elf_x86_64_link_hash_newfunc): Initialize has_got_reloc and
2411 has_non_got_reloc.
2412 (elf_x86_64_copy_indirect_symbol): Copy has_got_reloc and
2413 has_non_got_reloc.
2414 (elf_x86_64_check_relocs): Set has_got_reloc and
2415 has_non_got_reloc.
2416 (elf_x86_64_fixup_symbol): New function.
2417 (elf_x86_64_pie_finish_undefweak_symbol): Likewise.
2418 (elf_x86_64_allocate_dynrelocs): Don't allocate space for dynamic
2419 relocations and discard relocations against resolved undefined
2420 weak symbols in executable. Don't make resolved undefined weak
2421 symbols in executable dynamic.
2422 (elf_x86_64_size_dynamic_sections): Set interp to .interp section.
2423 (elf_x86_64_relocate_section): Check relocation overflow for
2424 dynamic relocations against unresolved weak undefined symbols.
2425 Don't generate dynamic relocations against resolved weak
2426 undefined symbols in PIE.
2427 (elf_x86_64_finish_dynamic_symbol): Keep PLT/GOT entries without
2428 dynamic PLT/GOT relocations for resolved undefined weak symbols.
2429 Don't generate dynamic relocation against resolved undefined weak
2430 symbol in executable.
2431 (elf_x86_64_finish_dynamic_sections): Call
2432 elf_x86_64_pie_finish_undefweak_symbol on all symbols in PIE.
2433 (elf_backend_fixup_symbol): New.
2434
b32547cd
AM
24352016-02-26 Alan Modra <amodra@gmail.com>
2436
2437 * elf64-ppc.c (create_linkage_sections): Create sfpr when
2438 save_restore_funcs, rest of sections when not relocatable.
2439 (ppc64_elf_init_stub_bfd): Always call create_linkage_sections.
2440 (sfpr_define): Define all symbols on emitted code.
2441 (ppc64_elf_func_desc_adjust): Adjust for sfpr now being created
2442 when relocatable. Move sfpr_define loop earlier.
2443
ef77d6af
L
24442016-02-24 H.J. Lu <hongjiu.lu@intel.com>
2445
2446 * elf64-x86-64.c (elf_x86_64_need_pic): New function.
2447 (elf_x86_64_relocate_section): Use it. Replace
2448 x86_64_elf_howto_table[r_type] with howto.
2449
0f550b3d
L
24502016-02-24 H.J. Lu <hongjiu.lu@intel.com>
2451
2452 PR ld/19698
2453 * elflink.c (bfd_elf_record_link_assignment): Set versioned if
2454 symbol version is unknown.
2455
13f42277
L
24562016-02-24 H.J. Lu <hongjiu.lu@intel.com>
2457
2458 * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset
2459 to (bfd_vma) -1 when setting needs_plt to 0.
2460 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
2461
6b3b0ab8
L
24622016-02-23 H.J. Lu <hongjiu.lu@intel.com>
2463
2464 * elflink.c (bfd_elf_record_link_assignment): Check for shared
2465 library, instead of PIC, and don't check PDE when making linker
2466 assigned symbol dynamic.
2467
17733f5b
FS
24682016-02-23 Faraz Shahbazker <faraz.shahbazker@imgtec.com>
2469
2470 * bfd/elfxx-mips.c (_bfd_mips_post_process_headers): Increment
2471 ABIVERSION for non-executable stack.
2472
47993b4a
RF
24732016-02-23 Rich Felker <bugdal@aerifal.cx>
2474
2475 PR target/19516
2476 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol):
2477 Always produce a RELATIVE reloc for a local symbol.
2478
2d8dcb81
HPN
24792016-02-23 Hans-Peter Nilsson <hp@axis.com>
2480
2481 Fix test-case ld-elf/pr19617b
2482 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
2483 discard unused non-function symbols when --dynamic-list-data.
2484
1a6e6083
L
24852016-02-22 H.J. Lu <hongjiu.lu@intel.com>
2486
2487 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always create the
2488 dynsym section, even if it is empty, with dynamic sections.
2489
75c1920b
L
24902016-02-22 H.J. Lu <hongjiu.lu@intel.com>
2491
2492 * syms.c: Remove BSF_COMMON from comments.
2493 * bfd-in2.h: Regenerated.
2494
9a228467
JW
24952016-02-22 Jiong Wang <jiong.wang@arm.com>
2496
2497 * elfnn-aarch64. (aarch64_type_of_stub): Remove redundation calcuation
2498 for destination. Remove useless function parameters.
2499 (elfNN_aarch64_size_stubs): Update parameters for aarch64_type_of_stub.
2500
73768414
NC
25012016-02-19 Nick Clifton <nickc@redhat.com>
2502
e517df3d
NC
2503 PR ld/19629
2504 * aoutx.h (aout_link_add_symbols): Check for out of range string
2505 table offsets.
2506
73768414
NC
2507 PR ld/19628
2508 * reloc.c (bfd_generic_get_relocated_section_contents): Stop
2509 processing if we encounter a reloc without an associated symbol.
2510
bf89386a
L
25112016-02-18 H.J. Lu <hongjiu.lu@intel.com>
2512
2513 PR ld/19617
2514 * elflink.c (elf_link_add_object_symbols): Always create dynamic
2515 sections for -E/--dynamic-list.
2516
8f79b794
L
25172016-02-17 H.J. Lu <hongjiu.lu@intel.com>
2518
2519 * elf64-x86-64.c (elf_backend_omit_section_dynsym): New. Defined
2520 to bfd_true.
2521
64bfc258
JM
25222016-02-16 Joseph Myers <joseph@codesourcery.com>
2523
2524 * plugin.c (plugin_vec): Set match priority to 255.
2525 * format.c (bfd_check_format_matches) [BFD_SUPPORTS_PLUGINS]: When
2526 matching against the plugin vector, take priority from there not
2527 from TEMP.
2528
9fb71ee4
NC
25292016-02-15 Nick Clifton <nickc@redhat.com>
2530
2531 * elf-bfd.h (struct bfd_elf_special_section): Use unsigned values
2532 for length and type fields. Use a signed value for the
2533 suffix_length field.
2534
32875eb1
L
25352016-02-10 H.J. Lu <hongjiu.lu@intel.com>
2536
2537 PR ld/19601
2538 * elf32-i386.c (elf_i386_relocate_section): Mask off the least
2539 significant bit in GOT offset for R_386_GOT32X.
2540
83da6e74
NC
25412016-02-10 Nick Clifton <nickc@redhat.com>
2542
2543 PR 19405
2544 * elf32-nios2.c (nios2_elf32_install_imm16): Allow for signed
2545 immediate values.
2546 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Limit the
2547 number of messages about FDE encoding preventing .eh_frame_hdr
2548 generation.
2549
027e9c75
NC
25502016-02-09 Nick Clifton <nickc@redhat.com>
2551
609332f1
NC
2552 * oasys.c (oasys_archive_p): Fix indentation.
2553 * elf32-nds32.c (nds32_elf_relax_section): Use an unsigned
2554 constant for left shifting.
2555
027e9c75
NC
2556 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Add a more
2557 helpful warning message to explain why certain AArch64 relocs
2558 might overflow.
2559
6f57d046
SM
25602016-02-05 Simon Marchi <simon.marchi@ericsson.com>
2561
2562 * pe-mips.c (coff_mips_reloc): Fix formatting.
2563
bdbca4e6
CM
25642016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
2565
2566 * cpu-arc.c: Change default archure from bfd_mach_arc_arcv2
2567 to bfd_mach_arc_arc600.
2568
4f038ee5
AM
25692016-02-04 Alan Modra <amodra@gmail.com>
2570
2571 * elf64-ppc.c (ppc64_elf_relocate_section): Adjust last patch
2572 for big-endian.
2573
4a539596
L
25742016-02-02 H.J. Lu <hongjiu.lu@intel.com>
2575
2576 PR ld/19542
2577 * elf64-x86-64.c (elf_x86_64_convert_load): Store the estimated
fb06f1c0 2578 distances in the compressed_size field of the output section.
4a539596 2579
85fabe71
AM
25802016-02-02 Alan Modra <amodra@gmail.com>
2581
2582 * elf64-ppc.c (ppc64_elf_relocate_section): Further restrict
2583 ELFv2 entry optimization.
2584
14f2c699
L
25852016-02-02 H.J. Lu <hongjiu.lu@intel.com>
2586
2587 PR binutils/19547
2588 * elf.c (assign_section_numbers): Clear HAS_RELOC if there are
2589 no relocations in relocatable files.
2590
aef28989
L
25912016-02-01 H.J. Lu <hongjiu.lu@intel.com>
2592
2593 PR ld/19553
2594 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
2595 if a symbol from a library loaded via DT_NEEDED doesn't match
2596 the symbol referenced by regular object.
2597
655ed9ea
NS
25982016-02-01 Nathaniel Smith <njs@pobox.com>
2599
2600 * peicode.h (pe_ILF_build_a_bfd): Create an import symbol for both
2601 CODE and DATA.
2602
ec1f73bb
AM
26032016-02-01 Alan Modra <amodra@gmail.com>
2604
2605 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Don't abort on
2606 an out of range reloc_index.
2607 * elf32-i386.c (elf_i386_get_plt_sym_val): Likewise.
2608
b6471e6e
KR
26092016-02-01 Kamil Rytarowski <n54@gmx.com>
2610
2611 * Makefile.am (OPTIONAL_BACKENDS): Add netbsd-core.lo.
2612 (OPTIONAL_BACKENDS_CFILES): Add netbsd-core.c.
2613 * Makefile.in: Regenerated.
2614
0bc7245a
JK
26152016-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2616
2617 * elf64-s390.c (elf_s390_reloc_name_lookup): Fix indentation.
2618
6d4b2867
JDA
26192016-01-31 John David Anglin <danglin@gcc.gnu.org>
2620
2621 PR ld/19526
2622 * elf32-hppa.c (elf32_hppa_final_link): Don't sort non-regular output
2623 files.
2624 * elf64-hppa.c (elf32_hppa_final_link): Likewise. Remove retval.
2625
d9e3b590
L
26262016-01-30 H.J. Lu <hongjiu.lu@intel.com>
2627
2628 PR ld/19539
2629 * elf32-i386.c (elf_i386_reloc_type_class): Check relocation
2630 against STT_GNU_IFUNC symbol only with dynamic symbols.
2631 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise.
2632
bf150a0b
L
26332016-01-28 H.J. Lu <hongjiu.lu@intel.com>
2634
2635 PR binutils/19523
2636 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Set BFD_DECOMPRESS to
2637 decompress debug sections.
2638
840855c5
MR
26392016-01-25 Maciej W. Rozycki <macro@imgtec.com>
2640
2641 * elf32-arc.c (elf_arc_finish_dynamic_symbol): Rename `index' to
2642 `dynindx'.
2643
cf466c2a
NC
26442016-01-25 Nick Clifton <nickc@redhat.com>
2645
2646 PR target/19435
2647 * mach-o.c (bfd_mach_o_close_and_cleanup): Suppress code to free
2648 dsym filename buffer.
2649
eb6b0cf4
MR
26502016-01-24 Maciej W. Rozycki <macro@imgtec.com>
2651
2652 * elfxx-mips.c (BZ16_REG_FIELD): Simplify calculation.
2653
e67f83e5
MR
26542016-01-24 Maciej W. Rozycki <macro@imgtec.com>
2655
2656 * elfxx-mips.c (BZ16_REG): Correct calculation.
2657
23a42089
NC
26582016-01-21 Nick Clifton <nickc@redhat.com>
2659
2660 * elf32-arc.c (ADD_RELA): Fix compile time warning errors by
2661 changing the type of _loc to be bfd_byte *.
2662 (elf_arc_finish_dynamic_symbol): Likewise.
2663
aebf9be7
NC
26642016-01-21 Nick Clifton <nickc@redhat.com>
2665
2666 PR ld/19455
2667 * elf32-arm.c (elf32_arm_create_dynamic_sections): Set the ELF
2668 class of the linker stub bfd.
2669 (elf32_arm_check_relocs): Skip check for pic format after
2670 processing a vxWorks R_ARM_ABS12 reloc.
2671 * elflink.c (bfd_elf_final_link): Check for ELFCLASSNONE when
2672 reporting a class mismatch.
2673
2f340668
JW
26742016-01-21 Jiong Wang <jiong.wang@arm.com>
2675
2676 * elfnn-aarch64.c (aarch64_type_of_stub): Allow insert long branch
2677 veneer for sym_sec != input_sec.
2678 (elfNN_aarch64_size_stub): Support STT_SECTION symbol.
2679 (elfNN_aarch64_final_link_relocate): Take rela addend into account when
2680 calculation destination.
2681
aeb70569
AM
26822016-01-21 Alan Modra <amodra@gmail.com>
2683
2684 * elf-linux-core.h (swap_linux_prpsinfo32_out): New function.
2685 (swap_linux_prpsinfo64_out): New function.
2686 (LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
2687 (LINUX_PRPSINFO64_SWAP_FIELDS): Delete.
2688 * elf.c (elfcore_write_linux_prpsinfo32): Adjust. Don't memset.
2689 (elfcore_write_linux_prpsinfo64): Likewise.
2690 * elf32-ppc.c (swap_ppc_linux_prpsinfo32_out): New function.
2691 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
2692 (elfcore_write_ppc_linux_prpsinfo32): Adjust. Don't memset.
2693
de64ce13
AM
26942016-01-21 Alan Modra <amodra@gmail.com>
2695
2696 * elf-linux-core.h: Rename from elf-linux-psinfo.h.
2697 * elf.c: Adjust #include.
2698 * elf32-ppc.c: Don't #include elf-linux-psinfo.h
2699 * Makefile.am (SOURCE_HFILES): Update.
2700 * Makefile.in: Regenerate.
2701 * po/SRC-PORFILES.in: Regenerate.
2702
c603b11b
AM
27032016-01-21 Alan Modra <amodra@gmail.com>
2704
2705 * configure.ac: Move corefile selection later in file. Move
2706 tdefaults code immediately after other target vector code.
2707 * configure: Regenerate.
2708
91f68a68
MG
27092016-01-20 Mickael Guene <mickael.guene@st.com>
2710
2711 * elf32-arm.c (elf32_arm_special_sections): Remove catch of noread
2712 section using '.text.noread' pattern.
2713
5b2c414d
JB
27142016-01-19 John Baldwin <jhb@FreeBSD.org>
2715
2716 * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.
2717
34e967a5
MC
27182016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
2719 Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
2720
2721 * arc-plt.def: New file.
2722 * arc-plt.h: Likewise.
2723 * elf32-arc.c (elf_arc_abs_plt0_entry, elf_arc_abs_pltn_entry,
2724 elf_arcV2_abs_plt0_entry, elf_arcV2_abs_pltn_entry,
2725 elf_arc_pic_plt0_entry, elf_arc_pic_pltn_entry,
2726 elf_arcV2_pic_plt0_entry, elf_arcV2_pic_pltn_entry): Remove.
2727 (name_for_global_symbol): Added.
2728 (ADD_RELA): Helper to create dynamic relocs.
2729 (new_got_entry_to_list): Create a new got entry in linked list.
2730 (symbol_has_entry_of_type): Search for specific type of entry in
2731 list.
2732 (is_reloc_for_GOT): return FALSE for any TLS related relocs.
2733 (is_reloc_for_TLS, arc_elf_set_private_flags)
2734 (arc_elf_print_private_bfd_data, arc_elf_copy_private_bfd_data)
2735 (arc_elf_merge_private_bfd_data): New functions.
2736 (debug_arc_reloc): Cleaned debug info printing.
2737 (PDATA reloc): Changed not to perform address alignment.
2738 (reverse_me): Added. Fix for ARC_32 relocs.
2739 (arc_do_relocation): Return bfd_reloc_of when no relocation should
2740 occur.
2741 (arc_get_local_got_ents): Renamed from arc_get_local_got_offsets.
2742 Changed function to access an array of list of GOT entries instead
2743 of just an array of offsets.
2744 (elf_arc_relocate_section): Added support for PIC and TLS related relocations.
2745 (elf_arc_check_relocs): Likewise.
2746 (elf_arc_adjust_dynamic_symbol, elf_arc_finish_dynamic_symbol,
2747 (elf_arc_finish_dynamic_sections): Likewise
2748 (arc_create_dynamic_sections): Modified conditions to create
2749 dynamic sections.
2750 (ADD_SYMBOL_REF_SEC_AND_RELOC): New macro.
2751 (plt_do_relocs_for_symbol, relocate_plt_for_symbol)
2752 (relocate_plt_for_entry): Changed to support new way to define PLT
2753 related code.
2754 (add_symbol_to_plt): Likewise.
2755 (arc_elf_link_hash_table_create): New function.
2756
9ae678af
NC
27572016-01-18 Nick Clifton <nickc@redhat.com>
2758
2759 PR ld/19440
2760 * coff-rs6000.c (_bfd_xcoff_swap_sym_in): Sign extend external
2761 section number into internal section number.
2762 * coff64-rs6000.c (_bfd_xcoff64_swap_sym_in): Likewise.
2763 * coffswap.h (coff_swap_sym_in): Likewise.
2764 * peXXigen.c (_bfd_XXi_swap_sym_in): Likewise.
2765 * coffcode.h (_coff_bigobj_swap_sym_in): Make sure that internal
2766 section number field is big enough to hold the external value.
2767
5c14705f
AM
27682016-01-17 Alan Modra <amodra@gmail.com>
2769
2770 * configure: Regenerate.
2771
ac06903d
YU
27722016-01-12 Yury Usishchev <y.usishchev@samsung.com>
2773
2774 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Insert cantunwind
2775 when address in first unwind entry does not match start of
2776 section.
2777
109575d7
JW
27782016-01-08 Richard Sandiford <richard.sandiford@arm.com>
2779 Jiong Wang <jiong.wang@arm.com>
2780
2781 PR ld/19368
2782 * elf32-arm.c (elf32_arm_reloc_type_class): Map R_ARM_IRELATIVE to
2783 reloc_class_ifunc.
2784
b05a65d0
AB
27852016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
2786
2787 * elf32-arc.c (reloc_type_to_name): Change ARC_RELOC_HOWTO to
2788 place 'R_' before the reloc name returned.
2789 (elf_arc_howto_table): Change ARC_RELOC_HOWTO to place 'R_' before
2790 the relocation string.
2791
a3dc0a7f
MR
27922016-01-04 Maciej W. Rozycki <macro@imgtec.com>
2793
2794 * elfxx-mips.c (mips_elf_merge_obj_abiflags): New function,
2795 factored out from...
2796 (_bfd_mips_elf_merge_private_bfd_data): ... here.
2797
d537eeb5
MR
27982016-01-04 Maciej W. Rozycki <macro@imgtec.com>
2799
2800 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Move
2801 attribute check after ELF file header flag check.
2802
43d223b5
MR
28032016-01-04 Maciej W. Rozycki <macro@imgtec.com>
2804
2805 * elfxx-mips.c (mips_elf_merge_obj_attributes): Propagate the
2806 return status from `_bfd_elf_merge_object_attributes'.
2807
b2e9744f
MR
28082016-01-04 Maciej W. Rozycki <macro@imgtec.com>
2809
2810 * elfxx-mips.c (mips_elf_merge_obj_e_flags): New function,
2811 factored out from...
2812 (_bfd_mips_elf_merge_private_bfd_data): ... here.
2813
28d45e28
MR
28142016-01-04 Maciej W. Rozycki <macro@imgtec.com>
2815
2816 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Fold the
2817 handling of input MIPS ABI flags together.
2818
23ba6f18
MR
28192016-01-04 Maciej W. Rozycki <macro@imgtec.com>
2820
2821 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Suppress
2822 attribute checks for null input.
2823
cf8502c1
MR
28242016-01-04 Maciej W. Rozycki <macro@imgtec.com>
2825
2826 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Use local
2827 pointers to target data.
2828
dcb1c796
MR
28292016-01-04 Maciej W. Rozycki <macro@imgtec.com>
2830
2831 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
2832 an FP ABI warning.
2833
6f2750fe
AM
28342016-01-01 Alan Modra <amodra@gmail.com>
2835
2836 Update year range in copyright notice of all files.
2837
3499769a
AM
2838For older changes see ChangeLog-2015 and doc/ChangeLog-0415
2839\f
2840Copyright (C) 2016 Free Software Foundation, Inc.
2841
2842Copying and distribution of this file, with or without modification,
2843are permitted in any medium without royalty provided the copyright
2844notice and this notice are preserved.
2845
2846Local Variables:
2847mode: change-log
2848left-margin: 8
2849fill-column: 74
2850version-control: never
2851End:
This page took 0.174622 seconds and 4 git commands to generate.