ld -z combreloc elf_link_sort_relocs
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2016-05-13 Alan Modra <amodra@gmail.com>
2
3 * elflink.c (elf_link_sort_relocs): Wrap overlong lines. Fix
4 octets_per_byte. Put dynamic .rela.plt last in link orders.
5 Assign output_offset for reloc sections rather than writing
6 sorted relocs from block corresponding to output_offset.
7
8 2016-05-12 Alan Modra <amodra@gmail.com>
9
10 * elf-bfd.h (elf_reloc_type_class): Put reloc_class_plt last.
11
12 2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
13
14 * elfxx-mips.c (print_mips_ases): Add DSPR3.
15
16 2016-05-11 Alan Modra <amodra@gmail.com>
17
18 * elf32-hppa.c (elf32_hppa_init_stub_bfd): New function.
19 (elf32_hppa_check_relocs): Don't set dynobj.
20 (elf32_hppa_size_stubs): Test !SEC_LINKER_CREATED for stub sections.
21 (elf32_hppa_build_stubs): Likewise.
22 * elf32-hppa.h (elf32_hppa_init_stub_bfd): Declare.
23
24 2016-05-11 Alan Modra <amodra@gmail.com>
25
26 PR 20060
27 * elf64-ppc.c (ppc64_elf_tls_setup): Clear forced_local.
28 * elf32-ppc.c (ppc_elf_tls_setup): Likewise.
29
30 2016-05-10 Jiong Wang <jiong.wang@arm.com>
31
32 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Remove redundant
33 aarch64_tls_transition check.
34
35 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
36
37 * elf32-arm.c (enum elf32_arm_stub_type): New max_stub_type
38 enumerator.
39 (arm_stub_sym_claimed): New function.
40 (elf32_arm_create_stub): Use veneered symbol name and section if
41 veneer needs to claim its symbol, and keep logic unchanged otherwise.
42 (arm_stub_claim_sym): New function.
43 (arm_map_one_stub): Call arm_stub_claim_sym if veneer needs to claim
44 veneered symbol, otherwise create local symbol as before.
45
46 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
47
48 * elf32-arm.c (elf32_arm_size_stubs): Use new macros
49 ARM_GET_SYM_BRANCH_TYPE and ARM_SET_SYM_BRANCH_TYPE to respectively get
50 and set branch type of a symbol.
51 (bfd_elf32_arm_process_before_allocation): Likewise.
52 (elf32_arm_relocate_section): Likewise and fix identation along the
53 way.
54 (allocate_dynrelocs_for_symbol): Likewise.
55 (elf32_arm_finish_dynamic_symbol): Likewise.
56 (elf32_arm_swap_symbol_in): Likewise.
57 (elf32_arm_swap_symbol_out): Likewise.
58
59 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
60
61 * bfd-in.h (elf32_arm_size_stubs): Add an output section parameter.
62 * bfd-in2.h: Regenerated.
63 * elf32-arm.c (struct elf32_arm_link_hash_table): Add an output section
64 parameter to add_stub_section callback.
65 (elf32_arm_create_or_find_stub_sec): Get output section from link_sec
66 and pass it down to add_stub_section.
67 (elf32_arm_add_stub): Set section to stub_sec if NULL before using it
68 for error message.
69 (elf32_arm_size_stubs): Add output section parameter to
70 add_stub_section function pointer parameter.
71
72 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
73
74 * elf32-arm.c (elf32_arm_create_stub): New function.
75 (elf32_arm_size_stubs): Use elf32_arm_create_stub for stub creation.
76
77 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
78
79 * elf32-arm.c (enum elf32_arm_stub_type): Delete
80 arm_stub_a8_veneer_lwm enumerator.
81 (arm_stub_a8_veneer_lwm): New unsigned constant to replace
82 aforementioned enumerator.
83 (struct elf32_arm_stub_hash_entry): Delete target_addend
84 field and add source_value.
85 (struct a8_erratum_fix): Delete addend field and add target_offset.
86 (stub_hash_newfunc): Initialize source_value field amd remove
87 initialization for target_addend.
88 (arm_build_one_stub): Stop special casing Thumb relocations: promote
89 the else to being always executed, moving the
90 arm_stub_a8_veneer_b_cond specific code in it. Remove
91 stub_entry->target_addend from points_to computation.
92 (cortex_a8_erratum_scan): Store in a8_erratum_fix structure the offset
93 to target symbol from start of section rather than the offset from the
94 stub address.
95 (elf32_arm_size_stubs): Set stub_entry's source_value and target_value
96 fields from struct a8_erratum_fix's offset and target_offset
97 respectively.
98 (make_branch_to_a8_stub): Rename target variable to loc. Compute
99 veneered_insn_loc and loc using stub_entry's source_value.
100
101 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
102
103 (elf32_arm_merge_eabi_attributes): Add merging logic for
104 Tag_DSP_extension.
105
106 2016-05-10 Pip Cet <pipcet@gmail.com>
107
108 PR ld/20059
109 * elfxx-target.h (bfd_elfNN_bfd_copy_link_hash_symbol_type):
110 Define as _bfd_generic_copy_link_hash_symbol_type when using
111 generic hash table.
112
113 2016-05-09 Nick Clifton <nickc@redhat.com>
114
115 PR binutils/20063
116 * elf.c (bfd_elf_get_elf_syms): Check for out of range sh_link
117 field before accessing sections array.
118
119 2016-05-09 Christophe Monat <christophe.monat@st.com>
120
121 PR ld/20030
122 * elf32-arm.c (is_thumb2_vldm): Account for T1 (DP) encoding.
123 (stm32l4xx_need_create_replacing_stub): Rename ambiguous nb_regs
124 to nb_words.
125 (create_instruction_vldmia): Add is_dp to disambiguate SP/DP
126 encoding.
127 (create_instruction_vldmdb): Likewise.
128 (stm32l4xx_create_replacing_stub_vldm): is_dp detects DP encoding,
129 uses it to re-encode.
130
131 2016-05-09 Nick Clifton <nickc@redhat.com>
132
133 PR 19938
134 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Revert accidental
135 commit.
136
137 2016-05-09 Alan Modra <amodra@gmail.com>
138
139 * elf64-ppc.c (ppc64_elf_init_stub_bfd): Remove redundant NULL check.
140
141 2016-05-06 H.J. Lu <hongjiu.lu@intel.com>
142
143 PR ld/17550
144 * elf-bfd.h (elf_link_hash_entry): Update comments for indx,
145 documenting that indx == -3 if symbol is defined in a discarded
146 section.
147 * elflink.c (elf_link_add_object_symbols): Set indx to -3 if
148 symbol is defined in a discarded section.
149 (elf_link_output_extsym): Strip a global symbol defined in a
150 discarded section.
151
152 2016-05-06 H.J. Lu <hongjiu.lu@intel.com>
153
154 * elf32-i386.c (elf_backend_add_symbol_hook): Defined for Intel
155 MCU.
156
157 2016-05-05 H.J. Lu <hongjiu.lu@intel.com>
158
159 * elf32-i386.c (elf_i386_convert_load): Extract the GOT load
160 conversion to ...
161 (elf_i386_convert_load_reloc): This. New function.
162 * elf64-x86-64.c (elf_x86_64_convert_load): Extract the GOT load
163 conversion to ...
164 (elf_x86_64_convert_load_reloc): This. New function.
165
166 2016-05-05 H.J. Lu <hongjiu.lu@intel.com>
167
168 * elf32-i386.c (elf_i386_check_tls_transition): Remove abfd.
169 Don't check if contents == NULL.
170 (elf_i386_tls_transition): Add from_relocate_section. Check
171 from_relocate_section instead of contents != NULL. Update
172 elf_i386_check_tls_transition call.
173 (elf_i386_check_relocs): Cache the section contents if
174 keep_memory is FALSE. Pass FALSE as from_relocate_section to
175 elf_i386_tls_transition.
176 (elf_i386_relocate_section): Pass TRUE as from_relocate_section
177 to elf_i386_tls_transition.
178 (elf_backend_caches_rawsize): New.
179 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Don't check
180 if contents == NULL.
181 (elf_x86_64_tls_transition): Add from_relocate_section. Check
182 from_relocate_section instead of contents != NULL.
183 (elf_x86_64_check_relocs): Cache the section contents if
184 keep_memory is FALSE. Pass FALSE as from_relocate_section to
185 elf_x86_64_tls_transition.
186 (elf_x86_64_relocate_section): Pass TRUE as from_relocate_section
187 to elf_x86_64_tls_transition.
188 (elf_backend_caches_rawsize): New.
189
190 2016-05-03 Maciej W. Rozycki <macro@imgtec.com>
191
192 PR 10549
193 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Handle
194 STB_GNU_UNIQUE.
195
196 2016-05-03 Jiong Wang <jiong.wang@arm.com>
197
198 * bfd-in.h (bfd_elf64_aarch64_set_options): Update prototype.
199 * bfd-in2.h (bfd_elf64_aarch64_set_options): Likewise.
200 * elfnn-aarch64.c (bfd_elfNN_aarch64_set_options): Initialize
201 no_apply_dynamic_relocs.
202 (elfNN_aarch64_final_link_relocate): Apply absolute relocations even though
203 dynamic relocations generated.
204
205 2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
206
207 * elf32-i386.c (elf_i386_size_dynamic_sections): Move interp
208 setting to ...
209 (elf_i386_create_dynamic_sections): Here.
210 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Move
211 interp setting to ...
212 (elf_x86_64_create_dynamic_sections): Here.
213
214 2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
215
216 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take GOT_RELOC
217 and replace (EH)->has_got_reloc with GOT_RELOC.
218 (elf_i386_fixup_symbol): Pass has_got_reloc to
219 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
220 (elf_i386_allocate_dynrelocs): Likewise.
221 (elf_i386_relocate_section): Likewise.
222 (elf_i386_finish_dynamic_symbol): Likewise.
223 (elf_i386_convert_load): Pass TRUE to
224 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
225 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take
226 GOT_RELOC and replace (EH)->has_got_reloc with GOT_RELOC.
227 (elf_x86_64_fixup_symbol): Pass has_got_reloc to
228 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
229 (elf_x86_64_allocate_dynrelocs): Likewise.
230 (elf_x86_64_relocate_section): Likewise.
231 (elf_x86_64_finish_dynamic_symbol): Likewise.
232 (elf_x86_64_convert_load): Pass TRUE to
233 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
234
235 2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
236
237 * elf32-i386.c (check_relocs_failed): New.
238 (elf_i386_check_relocs): Set check_relocs_failed on error.
239 (elf_i386_relocate_section): Skip if check_relocs failed.
240
241 2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
242
243 * elf64-x86-64.c (elf_x86_64_check_relocs): Set
244 check_relocs_failed on error.
245
246 2016-04-29 Nick Clifton <nickc@redhat.com>
247
248 PR 19938
249 * elf-bfd.h (struct elf_backend_data): Rename
250 elf_backend_set_special_section_info_and_link to
251 elf_backend_copy_special_section_fields.
252 * elfxx-target.h: Likewise.
253 * elf.c (section_match): Ignore the SHF_INFO_LINK flag when
254 comparing section flags.
255 (copy_special_section_fields): New function.
256 (_bfd_elf_copy_private_bfd_data): Copy the EI_ABIVERSION field.
257 Perform two scans over special sections. The first one looks for
258 a direct mapping between the output section and an input section.
259 The second scan looks for a possible match based upon section
260 characteristics.
261 * elf32-arm.c (elf32_arm_copy_special_section_fields): New
262 function. Handle setting the sh_link field of SHT_ARM_EXIDX
263 sections.
264 * elf32-i386.c (elf32_i386_set_special_info_link): Rename to
265 elf32_i386_copy_solaris_special_section_fields.
266 * elf32-sparc.c (elf32_sparc_set_special_section_info_link):
267 Rename to elf32_sparc_copy_solaris_special_section_fields.
268 * elf64-x86-64.c (elf64_x86_64_set_special_info_link): Rename to
269 elf64_x86_64_copy_solaris_special_section_fields.
270
271 2016-04-28 Nick Clifton <nickc@redhat.com>
272
273 * po/zh_CN.po: Updated Chinese (simplified) translation.
274
275 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
276
277 PR ld/20006
278 * elf64-x86-64.c (elf_x86_64_convert_load): Skip debug sections
279 when estimating distances between output sections.
280
281 2016-04-27 Alan Modra <amodra@gmail.com>
282
283 * elflink.c (_bfd_elf_is_start_stop): New function.
284 (_bfd_elf_gc_mark_rsec): Use it.
285 * elf-bfd.h (_bfd_elf_is_start_stop): Declare.
286
287 2016-04-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
288
289 * elf32-rx.c (rx_set_section_contents): Avoid arithmetic on void *.
290 * mmo.c (mmo_get_section_contents): Likewise.
291 (mmo_set_section_contents): Likewise.
292
293 2016-04-26 H.J. Lu <hongjiu.lu@intel.com>
294
295 * elf-bfd.h (elf_link_hash_table): Update comments for
296 dynsymcount.
297 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always count for
298 the unused NULL entry at the head of dynamic symbol table.
299 (bfd_elf_size_dynsym_hash_dynstr): Remove dynsymcount != 0
300 checks.
301
302 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
303
304 * elflink.c (_bfd_elf_link_create_dynstrtab): Exclude linker
305 created file from dynobj.
306
307 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
308
309 * elflink.c (_bfd_elf_link_create_dynstrtab): Set dynobj to a
310 normal input file if possible.
311
312 2016-04-21 Nick Clifton <nickc@redhat.com>
313
314 * aout-adobe.c: Use _bfd_generic_link_check_relocs.
315 * aout-target.h: Likewise.
316 * aout-tic30.c: Likewise.
317 * binary.c: Likewise.
318 * bout.c: Likewise.
319 * coff-alpha.c: Likewise.
320 * coff-rs6000.c: Likewise.
321 * coff64-rs6000.c: Likewise.
322 * coffcode.h: Likewise.
323 * i386msdos.c: Likewise.
324 * i386os9k.c: Likewise.
325 * ieee.c: Likewise.
326 * ihex.c: Likewise.
327 * libbfd-in.h: Likewise.
328 * libecoff.h: Likewise.
329 * mach-o-target.c: Likewise.
330 * mmo.c: Likewise.
331 * nlm-target.h: Likewise.
332 * oasys.c: Likewise.
333 * pef.c: Likewise.
334 * plugin.c: Likewise.
335 * ppcboot.c: Likewise.
336 * som.c: Likewise.
337 * srec.c: Likewise.
338 * tekhex.c: Likewise.
339 * versados.c: Likewise.
340 * vms-alpha.c: Likewise.
341 * xsym.c: Likewise.
342 * elfxx-target.h: Use _bfd_elf_link_check_relocs.
343 * linker.c (bfd_link_check_relocs): New function.
344 (_bfd_generic_link_check_relocs): New function.
345 * targets.c (BFD_JUMP_TABLE_LINK): Add initialization of
346 _bfd_link_check_relocs field.
347 (struct bfd_target)L Add _bfd_link_check_relocs field.
348 * bfd-in2.h: Regenerate.
349 * libbfd.h: Regenerate.
350
351 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
352
353 * elf32-i386.c (elf_i386_gc_sweep_hook): Removed.
354 (elf_backend_gc_sweep_hook): Likewise.
355 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
356 (elf_backend_gc_sweep_hook): Likewise.
357
358 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
359
360 * elflink.c (_bfd_elf_link_check_relocs): Don't check relocations
361 in excluded sections
362
363 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
364
365 PR ld/19969
366 * elf64-x86-64.c (check_relocs_failed): New.
367 (elf_x86_64_need_pic): Moved before elf_x86_64_check_relocs.
368 Support relocation agaist local symbol. Set check_relocs_failed.
369 (elf_x86_64_check_relocs): Use elf_x86_64_need_pic. Check
370 R_X86_64_32 relocation overflow.
371 (elf_x86_64_relocate_section): Skip if check_relocs failed.
372 Update one elf_x86_64_need_pic and remove one elf_x86_64_need_pic.
373
374 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
375
376 * elf32-i386.c (elf_i386_check_relocs): Call
377 _bfd_elf_create_ifunc_sections only for STT_GNU_IFUNC symbol.
378 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
379
380 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
381
382 * elf-bfd.h (_bfd_elf_link_check_relocs): New.
383 * elflink.c (_bfd_elf_link_check_relocs): New function.
384 (elf_link_add_object_symbols): Call _bfd_elf_link_check_relocs
385 if check_relocs_after_open_input is FALSE.
386
387 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
388
389 * cache.c: Update old style function definitions.
390 * elf32-m68k.c: Likewise.
391 * elf64-mmix.c: Likewise.
392 * stab-syms.c: Likewise.
393
394 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
395
396 * elf32-arm.c (put_thumb2_insn): Change argument type to bfd_byte *.
397
398 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
399
400 * Makefile.in: Regenerated with automake 1.11.6.
401 * aclocal.m4: Likewise.
402 * doc/Makefile.in: Likewise.
403
404 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
405
406 * reloc.c: Add BFD_RELOC_ARC_NPS_CMEM16 entry.
407 * bfd-in2.h: Regenerate.
408 * libbfd.h: Regenerate.
409 * elf32-arc.c: Add 'opcode/arc.h' include.
410 (struct arc_relocation_data): Add symbol_name.
411 (arc_special_overflow_checks): New function.
412 (arc_do_relocation): Use arc_special_overflow_checks, reindent as
413 required, add an extra comment.
414 (elf_arc_relocate_section): Setup symbol_name in reloc_data.
415
416 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
417
418 * elf32-arc.c (tls_got_entries): Add 'TLS_GOT_' prefix to all
419 entries.
420 (elf_arc_relocate_section): Update enum uses.
421 (elf_arc_check_relocs): Likewise.
422 (elf_arc_finish_dynamic_symbol): Likewise.
423
424 2016-04-14 H.J. Lu <hongjiu.lu@intel.com>
425
426 * elf.c (_bfd_elf_copy_private_bfd_data): Replace "link" with
427 "sh_link".
428
429 2016-04-14 Nick Clifton <nickc@redhat.com>
430
431 PR target/19938
432 * elf-bbfd.h (struct elf_backend_data): New field:
433 elf_strtab_flags.
434 New field: elf_backend_set_special_section_info_and_link
435 * elfxx-target.h (elf_backend_strtab_flags): Define if not already
436 defined.
437 (elf_backend_set_special_section_info_and_link): Define if not
438 already defined.
439 (elfNN_bed): Use elf_backend_set_special_section_info_and_link and
440 elf_backend_strtab_flags macros to initialise fields in structure.
441 * elf.c (_bfd_elf_make_section_from_shdr): Check for SHF_STRINGS
442 being set even if SHF_MERGE is not set.
443 (elf_fake_sections): Likewise.
444 (section_match): New function. Matches two ELF sections based
445 upon fixed characteristics.
446 (find_link): New function. Locates a section in a BFD that
447 matches a section in a different BFD.
448 (_bfd_elf_copy_private_bfd_data): Copy the sh_info and sh_link
449 fields of reserved sections.
450 (bfd_elf_compute_section_file_positions): Set the flags for the
451 .shstrtab section based upon the elf_strtab_flags field in the
452 elf_backend_data structure.
453 (swap_out_syms): Likewise for the .strtab section.
454 * elflink.c (bfd_elf_final_link): Set the flags for the
455 .strtab section based upon the elf_strtab_flags field in the
456 elf_backend_data structure.
457 * elf32-i386.c (elf32_i386_set_special_info_link): New function.
458 (elf_backend_strtab_flags): Set to SHF_STRINGS for Solaris
459 targets.
460 (elf_backend_set_special_section_info_and_link): Define for
461 Solaris targets.
462 * elf32-sparc.c: Likewise.
463 * elf64-x86-64.c: Likewise.
464
465 2016-04-11 H.J. Lu <hongjiu.lu@intel.com>
466
467 PR ld/19939
468 * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): Add a pointer
469 to bfd_boolean.
470 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Updated.
471 Set *readonly_dynrelocs_against_ifunc_p to TRUE if dynamic reloc
472 applies to read-only section.
473 * elf32-i386.c (elf_i386_link_hash_table): Add
474 readonly_dynrelocs_against_ifunc.
475 (elf_i386_allocate_dynrelocs): Updated.
476 (elf_i386_size_dynamic_sections): Issue an error for read-only
477 segment with dynamic IFUNC relocations only if
478 readonly_dynrelocs_against_ifunc is TRUE.
479 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
480 readonly_dynrelocs_against_ifunc.
481 (elf_x86_64_allocate_dynrelocs): Updated.
482 (elf_x86_64_size_dynamic_sections): Issue an error for read-only
483 segment with dynamic IFUNC relocations only if
484 readonly_dynrelocs_against_ifunc is TRUE.
485 * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs):
486 Updated.
487
488 2016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
489
490 * elf32-arm.c (elf32_arm_size_stubs): Move error_ret_free_local to be
491 a fall through from error_ret_free_internal. Free local_syms in
492 error_ret_free_local if allocated from bfd_elf_get_elf_syms ().
493
494 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
495
496 * elf32-arc.c (plt_do_relocs_for_symbol): Changed.
497 (relocate_plt_for_entry): Likewise.
498
499 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
500
501 * elf32-arc.c (elf_arc_check_relocs): Changed
502
503 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
504
505 * elf32-arc.c (name_for_global_symbol): Changed assert.
506 (get_replace_function): Created.:
507 (struct arc_relocation_data): Changed to signed types.
508 (defines S, L, P, PDATA): Casted to signed type.
509 (defines SECTSTART, _SDA_BASE_, TLS_REL): Likewise.
510 (PRINT_DEBUG_RELOC_INFO_BEFORE): Changed.
511 (arc_do_relocation): Changed.
512
513 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
514
515 * elf32-arc.c (name_for_global_symbol): Added assert to check for
516 symbol index.
517 (elf_arc_relocate_section): Added and changed asserts, validating
518 the synamic symbol index.
519 (elf_arc_finish_dynamic_symbol): Do not fill the dynamic
520 relocation if symbol has dynindx set to -1.
521
522 2016-04-05 Maciej W. Rozycki <macro@imgtec.com>
523
524 * elflink.c (elf_link_add_object_symbols): Always turn hidden
525 and internal symbols which have a dynamic index into local
526 ones.
527
528 2016-04-04 Nick Clifton <nickc@redhat.com>
529
530 PR 19872
531 * dwarf2.c (parse_comp_unit): Skip warning about unrecognised
532 version number if the version is zero.
533
534 2016-04-01 Alan Modra <amodra@gmail.com>
535
536 PR 19886
537 * elflink.c (on_needed_list): Recursively check needed status.
538 (elf_link_add_object_symbols): Adjust.
539
540 2016-03-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
541
542 * elf32-avr.c (avr_elf32_load_records_from_section): Free
543 internal_relocs only if they aren't cached.
544
545 2016-03-29 Nick Clifton <nickc@redhat.com>
546
547 PR 17334
548 * elf32-bfin.c (elf32_bfinfdpic_finish_dynamic_sections): Relax
549 assertion on the size of the got section to allow it to be bigger
550 than the number of relocs.
551
552 2016-03-29 Toni Spets <toni.spets@iki.fi>
553
554 PR 19878
555 * coffcode.h (coff_write_object_contents): Revert accidental
556 2014-11-10 change.
557
558 2016-03-22 Alan Modra <amodra@gmail.com>
559
560 PR 19850
561 * dwarf2.c (read_attribute_value): Skip info_ptr check for
562 DW_FORM_flag_present.
563
564 2016-03-22 Nick Clifton <nickc@redhat.com>
565
566 * cpu-v850_rh850.c (arch_info_struct): Restore v850-rh850 as an
567 architecture name for backwards compatibility.
568
569 * peXXigen.c (_bfd_XXi_write_codeview_record): Fix possible
570 unbounded stack use.
571
572 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wstack-usage if using a
573 sufficiently recent version of GCC.
574 * configure: Regenerate.
575
576 2016-03-22 Alan Modra <amodra@gmail.com>
577
578 PR 19851
579 * plugin.c (try_load_plugin): Avoid -Wstack-usage warning.
580
581 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
582
583 * archures.c (bfd_mach_arc_nps400): Define.
584 * bfd-in2.h: Regenerate.
585 * cpu-arc.c (arch_info_struct): New entry for nps400, renumber
586 some existing entries to make space.
587 * elf32-arc.c (arc_elf_object_p): Add nps400 case.
588 (arc_elf_final_write_processing): Likewise.
589
590 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
591
592 * elf32-arc.c (arc_elf_print_private_bfd_data): Remove use of
593 EF_ARC_CPU_GENERIC.
594 (arc_elf_final_write_processing): Don't bother setting cpu field
595 in e_flags, this will have been set elsewhere.
596
597 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
598
599 * elf32-arc.c (arc_elf_final_write_processing): Switch to using
600 EF_ARC_MACH_MSK.
601
602 2016-03-21 Nick Clifton <nickc@redhat.com>
603
604 * warning.m4 (GCC_WARN_CFLAGS): Add -Wstack-usage=262144
605 * configure: Regenerate.
606 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Replace use of
607 alloca with call to xmalloc.
608 * elf32-nds32.c: Likewise.
609 * elf64-hppa.c: Likewise.
610 * elfxx-mips.c: Likewise.
611 * pef.c: Likewise.
612 * pei-x86_64.c: Likewise.
613 * som.c: Likewise.
614 * xsym.c: Likewise.
615
616 2016-03-15 H.J. Lu <hongjiu.lu@intel.com>
617
618 PR ld/19827
619 * elf32-i386.c (elf_i386_check_relocs): Bind defined symbol
620 locally in PIE.
621 (elf_i386_relocate_section): Likewise.
622 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
623 (elf_x86_64_relocate_section): Likewise.
624
625 2016-03-15 H.J. Lu <hongjiu.lu@intel.com>
626
627 PR ld/19807
628 * elf64-x86-64.c (elf_x86_64_relocate_section): Check
629 no_reloc_overflow_check to diable R_X86_64_32/R_X86_64_32S
630 relocation overflow check.
631
632 2016-03-14 H.J. Lu <hongjiu.lu@intel.com>
633
634 * bfd-in2.h: Regenerated.
635
636 2016-03-11 Dan Gissel <dgisselq@ieee.org>
637
638 PR 19713
639 * elf.c (_bfd_elf_section_offset): Ensure that the returned offset
640 uses bytes not octets.
641 * elflink.c (resolve_section): Likewise.
642 Add a bfd parameter.
643 (eval_section): Pass the input_bfd to resolve_section.
644 (bfd_elf_perform_complex_relocation): Convert byte offset to
645 octets before read and writing values.
646 (elf_link_input_bfd): Add byte to octet conversions.
647 (elf_reloc_link_order): Likewise.
648 (elf_fixup_link_order): Likewise.
649 (bfd_elf_final_link): Likewise.
650 * reloc.c (_bfd_final_link_relocate): Likewise.
651 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
652
653 2016-03-10 Nick Clifton <nickc@redhat.com>
654
655 * config.bfd: Mark the i370 target as obsolete.
656
657 2016-03-09 Pedro Alves <palves@redhat.com>
658
659 * cpu-v850.c (N): Append ":old-gcc-abi" instead of " (using old
660 gcc ABI)" to printable name.
661 * cpu-v850_rh850.c (bfd_v850_rh850_arch): Use "v850:rh850" instead
662 of "v850-rh850" as printable name.
663
664 2016-03-09 Leon Winter <winter-gcc@bfw-online.de>
665
666 PR ld/19623
667 * cofflink.c (_bfd_coff_generic_relocate_section): Do not apply
668 relocations against absolute symbols.
669
670 2016-03-09 Alan Modra <amodra@gmail.com>
671
672 PR binutils/19775
673 * coff-alpha.c (alpha_ecoff_openr_next_archived_file): Allow zero
674 length elements in the archive.
675
676 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
677
678 PR ld/19789
679 * elflink.c (elf_link_add_object_symbols): Create dynamic sections
680 for -E/--dynamic-list only when not relocatable.
681
682 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
683
684 PR ld/19784
685 * elf32-i386.c (elf_i386_check_relocs): Increment PLT reference
686 count for locally defined local IFUNC symbols in shared object.
687 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
688
689 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
690
691 PR ld/19579
692 * elflink.c (_bfd_elf_merge_symbol): Group common symbol checking
693 together.
694
695 2016-03-08 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
696 Andrew Burgess <andrew.burgess@embecosm.com>
697
698 * elf32-arc.c (arc_bfd_get_32): Becomes an alias for bfd_get_32.
699 (arc_bfd_put_32): Becomes an alias for bfd_put_32.
700 (arc_elf_howto_init): Added assert to validate relocations.
701 (get_middle_endian_relocation): Delete.
702 (middle_endian_convert): New function.
703 (ME): Redefine, now does nothing.
704 (IS_ME): New define.
705 (arc_do_relocation): Extend the attached 'ARC_RELOC_HOWTO'
706 definition to call middle_endian_convert. Add a new local
707 variable and make use of this throughout. Added call to
708 arc_bfd_get_8 and arc_bfd_put_8 for 8 bit relocations.
709
710 2016-03-07 Nick Clifton <nickc@redhat.com>
711
712 PR binutils/19775
713 * archive.c (bfd_generic_openr_next_archived_file): Allow zero
714 length elements in the archive.
715
716 2016-03-07 Jiong Wang <jiong.wang@arm.com>
717
718 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Always create .got
719 section if the symbol "_GLOBAL_OFFSET_TABLE_" is referenced.
720
721 2016-03-04 H.J. Lu <hongjiu.lu@intel.com>
722
723 PR ld/19579
724 * elflink.c (_bfd_elf_merge_symbol): Treat common symbol in
725 executable as definition if the new definition comes from a
726 shared library.
727
728 2016-03-02 Alan Modra <amodra@gmail.com>
729
730 * Makefile.in: Regenerate.
731 * po/SRC-POTFILES.in: Regenerate.
732
733 2016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
734
735 * elf32-arc.c (elf_arc_relocate_section): Added rules to fix the
736 relocation addend when sections get merged.
737
738 2016-02-29 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
739
740 * elf32-arc.c (arc_elf_final_write_processing): Add condition to
741 the flag change.
742 (elf_arc_relocate_section): Fixes and conditions to support PIE.
743 Assert for code sections dynamic relocs.
744
745 2016-02-26 Renlin Li <renlin.li@arm.com>
746
747 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix signed overflow
748 check for MOVW_SABS_G0, MOVW_SABS_G1, MOVW_SABS_G2.
749
750 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
751
752 PR ld/19609
753 * elf32-i386.c (elf_i386_convert_load): Convert to R_386_32 for
754 load with locally bound symbols if PIC is false or there is no
755 base register. Optimize branch to 0 if PIC is false.
756 (elf_i386_relocate_section): Don't generate dynamic relocations
757 against undefined weak symbols if PIC is false.
758 * elf64-x86-64.c (elf_x86_64_convert_load): Disable optimization
759 if we can't estimate relocation overflow with --no-relax.
760 Convert to R_X86_64_32S/R_X86_64_32 for load with locally bound
761 symbols if PIC is false. Optimize branch to 0 if PIC is false.
762 (elf_x86_64_relocate_section): Don't generate dynamic relocations
763 against undefined weak symbols if PIC is false.
764
765 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
766
767 PR ld/19645
768 * bfd.c (bfd): Change flags to 20 bits.
769 (BFD_CONVERT_ELF_COMMON): New.
770 (BFD_USE_ELF_STT_COMMON): Likewise.
771 (BFD_FLAGS_SAVED): Add BFD_CONVERT_ELF_COMMON and
772 BFD_USE_ELF_STT_COMMON.
773 (BFD_FLAGS_FOR_BFD_USE_MASK): Likewise.
774 * configure.ac: Remove --enable-elf-stt-common.
775 * elf.c (swap_out_syms): Choose STT_COMMON or STT_OBJECT for
776 common symbol depending on BFD_CONVERT_ELF_COMMON and
777 BFD_USE_ELF_STT_COMMON.
778 * elfcode.h (elf_slurp_symbol_table): Set BSF_ELF_COMMON for
779 STT_COMMON.
780 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Also check
781 STT_COMMON.
782 (elf_link_convert_common_type): New function.
783 (elf_link_output_extsym): Choose STT_COMMON or STT_OBJECT for
784 common symbol depending on BFD_CONVERT_ELF_COMMON and
785 BFD_USE_ELF_STT_COMMON. Set sym.st_info after sym.st_shndx.
786 * elfxx-target.h (TARGET_BIG_SYM): Add BFD_CONVERT_ELF_COMMON
787 and BFD_USE_ELF_STT_COMMON to object_flags.
788 (TARGET_LITTLE_SYM): Likewise.
789 * syms.c (BSF_KEEP_G): Renamed to ...
790 (BSF_ELF_COMMON): This.
791 * bfd-in2.h: Regenerated.
792 * config.in: Likewise.
793 * configure: Likewise.
794
795 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
796
797 PR ld/19636
798 PR ld/19704
799 PR ld/19719
800 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
801 (elf_i386_link_hash_entry): Add has_got_reloc and
802 has_non_got_reloc.
803 (elf_i386_link_hash_table): Add interp.
804 (elf_i386_link_hash_newfunc): Initialize has_got_reloc and
805 has_non_got_reloc.
806 (elf_i386_copy_indirect_symbol): Copy has_got_reloc and
807 has_non_got_reloc.
808 (elf_i386_check_relocs): Set has_got_reloc and has_non_got_reloc.
809 (elf_i386_fixup_symbol): New function.
810 (elf_i386_pie_finish_undefweak_symbol): Likewise.
811 (elf_i386_allocate_dynrelocs): Don't allocate space for dynamic
812 relocations and discard relocations against resolved undefined
813 weak symbols in executable. Don't make resolved undefined weak
814 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
815 relocation against undefined weak symbols in PIE.
816 (elf_i386_size_dynamic_sections): Set interp to .interp section.
817 (elf_i386_relocate_section): Don't generate dynamic relocations
818 against resolved undefined weak symbols in PIE, except for
819 R_386_PC32.
820 (elf_i386_finish_dynamic_symbol): Keep PLT/GOT entries without
821 dynamic PLT/GOT relocations for resolved undefined weak symbols.
822 Don't generate dynamic relocation against resolved undefined weak
823 symbol in executable.
824 (elf_i386_finish_dynamic_sections): Call
825 elf_i386_pie_finish_undefweak_symbol on all symbols in PIE.
826 (elf_backend_fixup_symbol): New.
827 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
828 (elf_x86_64_link_hash_entry): Add has_got_reloc and
829 has_non_got_reloc.
830 (elf_x86_64_link_hash_table): Add interp.
831 (elf_x86_64_link_hash_newfunc): Initialize has_got_reloc and
832 has_non_got_reloc.
833 (elf_x86_64_copy_indirect_symbol): Copy has_got_reloc and
834 has_non_got_reloc.
835 (elf_x86_64_check_relocs): Set has_got_reloc and
836 has_non_got_reloc.
837 (elf_x86_64_fixup_symbol): New function.
838 (elf_x86_64_pie_finish_undefweak_symbol): Likewise.
839 (elf_x86_64_allocate_dynrelocs): Don't allocate space for dynamic
840 relocations and discard relocations against resolved undefined
841 weak symbols in executable. Don't make resolved undefined weak
842 symbols in executable dynamic.
843 (elf_x86_64_size_dynamic_sections): Set interp to .interp section.
844 (elf_x86_64_relocate_section): Check relocation overflow for
845 dynamic relocations against unresolved weak undefined symbols.
846 Don't generate dynamic relocations against resolved weak
847 undefined symbols in PIE.
848 (elf_x86_64_finish_dynamic_symbol): Keep PLT/GOT entries without
849 dynamic PLT/GOT relocations for resolved undefined weak symbols.
850 Don't generate dynamic relocation against resolved undefined weak
851 symbol in executable.
852 (elf_x86_64_finish_dynamic_sections): Call
853 elf_x86_64_pie_finish_undefweak_symbol on all symbols in PIE.
854 (elf_backend_fixup_symbol): New.
855
856 2016-02-26 Alan Modra <amodra@gmail.com>
857
858 * elf64-ppc.c (create_linkage_sections): Create sfpr when
859 save_restore_funcs, rest of sections when not relocatable.
860 (ppc64_elf_init_stub_bfd): Always call create_linkage_sections.
861 (sfpr_define): Define all symbols on emitted code.
862 (ppc64_elf_func_desc_adjust): Adjust for sfpr now being created
863 when relocatable. Move sfpr_define loop earlier.
864
865 2016-02-24 H.J. Lu <hongjiu.lu@intel.com>
866
867 * elf64-x86-64.c (elf_x86_64_need_pic): New function.
868 (elf_x86_64_relocate_section): Use it. Replace
869 x86_64_elf_howto_table[r_type] with howto.
870
871 2016-02-24 H.J. Lu <hongjiu.lu@intel.com>
872
873 PR ld/19698
874 * elflink.c (bfd_elf_record_link_assignment): Set versioned if
875 symbol version is unknown.
876
877 2016-02-24 H.J. Lu <hongjiu.lu@intel.com>
878
879 * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset
880 to (bfd_vma) -1 when setting needs_plt to 0.
881 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
882
883 2016-02-23 H.J. Lu <hongjiu.lu@intel.com>
884
885 * elflink.c (bfd_elf_record_link_assignment): Check for shared
886 library, instead of PIC, and don't check PDE when making linker
887 assigned symbol dynamic.
888
889 2016-02-23 Faraz Shahbazker <faraz.shahbazker@imgtec.com>
890
891 * bfd/elfxx-mips.c (_bfd_mips_post_process_headers): Increment
892 ABIVERSION for non-executable stack.
893
894 2016-02-23 Rich Felker <bugdal@aerifal.cx>
895
896 PR target/19516
897 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol):
898 Always produce a RELATIVE reloc for a local symbol.
899
900 2016-02-23 Hans-Peter Nilsson <hp@axis.com>
901
902 Fix test-case ld-elf/pr19617b
903 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
904 discard unused non-function symbols when --dynamic-list-data.
905
906 2016-02-22 H.J. Lu <hongjiu.lu@intel.com>
907
908 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always create the
909 dynsym section, even if it is empty, with dynamic sections.
910
911 2016-02-22 H.J. Lu <hongjiu.lu@intel.com>
912
913 * syms.c: Remove BSF_COMMON from comments.
914 * bfd-in2.h: Regenerated.
915
916 2016-02-22 Jiong Wang <jiong.wang@arm.com>
917
918 * elfnn-aarch64. (aarch64_type_of_stub): Remove redundation calcuation
919 for destination. Remove useless function parameters.
920 (elfNN_aarch64_size_stubs): Update parameters for aarch64_type_of_stub.
921
922 2016-02-19 Nick Clifton <nickc@redhat.com>
923
924 PR ld/19629
925 * aoutx.h (aout_link_add_symbols): Check for out of range string
926 table offsets.
927
928 PR ld/19628
929 * reloc.c (bfd_generic_get_relocated_section_contents): Stop
930 processing if we encounter a reloc without an associated symbol.
931
932 2016-02-18 H.J. Lu <hongjiu.lu@intel.com>
933
934 PR ld/19617
935 * elflink.c (elf_link_add_object_symbols): Always create dynamic
936 sections for -E/--dynamic-list.
937
938 2016-02-17 H.J. Lu <hongjiu.lu@intel.com>
939
940 * elf64-x86-64.c (elf_backend_omit_section_dynsym): New. Defined
941 to bfd_true.
942
943 2016-02-16 Joseph Myers <joseph@codesourcery.com>
944
945 * plugin.c (plugin_vec): Set match priority to 255.
946 * format.c (bfd_check_format_matches) [BFD_SUPPORTS_PLUGINS]: When
947 matching against the plugin vector, take priority from there not
948 from TEMP.
949
950 2016-02-15 Nick Clifton <nickc@redhat.com>
951
952 * elf-bfd.h (struct bfd_elf_special_section): Use unsigned values
953 for length and type fields. Use a signed value for the
954 suffix_length field.
955
956 2016-02-10 H.J. Lu <hongjiu.lu@intel.com>
957
958 PR ld/19601
959 * elf32-i386.c (elf_i386_relocate_section): Mask off the least
960 significant bit in GOT offset for R_386_GOT32X.
961
962 2016-02-10 Nick Clifton <nickc@redhat.com>
963
964 PR 19405
965 * elf32-nios2.c (nios2_elf32_install_imm16): Allow for signed
966 immediate values.
967 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Limit the
968 number of messages about FDE encoding preventing .eh_frame_hdr
969 generation.
970
971 2016-02-09 Nick Clifton <nickc@redhat.com>
972
973 * oasys.c (oasys_archive_p): Fix indentation.
974 * elf32-nds32.c (nds32_elf_relax_section): Use an unsigned
975 constant for left shifting.
976
977 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Add a more
978 helpful warning message to explain why certain AArch64 relocs
979 might overflow.
980
981 2016-02-05 Simon Marchi <simon.marchi@ericsson.com>
982
983 * pe-mips.c (coff_mips_reloc): Fix formatting.
984
985 2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
986
987 * cpu-arc.c: Change default archure from bfd_mach_arc_arcv2
988 to bfd_mach_arc_arc600.
989
990 2016-02-04 Alan Modra <amodra@gmail.com>
991
992 * elf64-ppc.c (ppc64_elf_relocate_section): Adjust last patch
993 for big-endian.
994
995 2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
996
997 PR ld/19542
998 * elf64-x86-64.c (elf_x86_64_convert_load): Store the estimated
999 distances in the compressed_size field of the output section.
1000
1001 2016-02-02 Alan Modra <amodra@gmail.com>
1002
1003 * elf64-ppc.c (ppc64_elf_relocate_section): Further restrict
1004 ELFv2 entry optimization.
1005
1006 2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
1007
1008 PR binutils/19547
1009 * elf.c (assign_section_numbers): Clear HAS_RELOC if there are
1010 no relocations in relocatable files.
1011
1012 2016-02-01 H.J. Lu <hongjiu.lu@intel.com>
1013
1014 PR ld/19553
1015 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
1016 if a symbol from a library loaded via DT_NEEDED doesn't match
1017 the symbol referenced by regular object.
1018
1019 2016-02-01 Nathaniel Smith <njs@pobox.com>
1020
1021 * peicode.h (pe_ILF_build_a_bfd): Create an import symbol for both
1022 CODE and DATA.
1023
1024 2016-02-01 Alan Modra <amodra@gmail.com>
1025
1026 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Don't abort on
1027 an out of range reloc_index.
1028 * elf32-i386.c (elf_i386_get_plt_sym_val): Likewise.
1029
1030 2016-02-01 Kamil Rytarowski <n54@gmx.com>
1031
1032 * Makefile.am (OPTIONAL_BACKENDS): Add netbsd-core.lo.
1033 (OPTIONAL_BACKENDS_CFILES): Add netbsd-core.c.
1034 * Makefile.in: Regenerated.
1035
1036 2016-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1037
1038 * elf64-s390.c (elf_s390_reloc_name_lookup): Fix indentation.
1039
1040 2016-01-31 John David Anglin <danglin@gcc.gnu.org>
1041
1042 PR ld/19526
1043 * elf32-hppa.c (elf32_hppa_final_link): Don't sort non-regular output
1044 files.
1045 * elf64-hppa.c (elf32_hppa_final_link): Likewise. Remove retval.
1046
1047 2016-01-30 H.J. Lu <hongjiu.lu@intel.com>
1048
1049 PR ld/19539
1050 * elf32-i386.c (elf_i386_reloc_type_class): Check relocation
1051 against STT_GNU_IFUNC symbol only with dynamic symbols.
1052 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise.
1053
1054 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
1055
1056 PR binutils/19523
1057 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Set BFD_DECOMPRESS to
1058 decompress debug sections.
1059
1060 2016-01-25 Maciej W. Rozycki <macro@imgtec.com>
1061
1062 * elf32-arc.c (elf_arc_finish_dynamic_symbol): Rename `index' to
1063 `dynindx'.
1064
1065 2016-01-25 Nick Clifton <nickc@redhat.com>
1066
1067 PR target/19435
1068 * mach-o.c (bfd_mach_o_close_and_cleanup): Suppress code to free
1069 dsym filename buffer.
1070
1071 2016-01-24 Maciej W. Rozycki <macro@imgtec.com>
1072
1073 * elfxx-mips.c (BZ16_REG_FIELD): Simplify calculation.
1074
1075 2016-01-24 Maciej W. Rozycki <macro@imgtec.com>
1076
1077 * elfxx-mips.c (BZ16_REG): Correct calculation.
1078
1079 2016-01-21 Nick Clifton <nickc@redhat.com>
1080
1081 * elf32-arc.c (ADD_RELA): Fix compile time warning errors by
1082 changing the type of _loc to be bfd_byte *.
1083 (elf_arc_finish_dynamic_symbol): Likewise.
1084
1085 2016-01-21 Nick Clifton <nickc@redhat.com>
1086
1087 PR ld/19455
1088 * elf32-arm.c (elf32_arm_create_dynamic_sections): Set the ELF
1089 class of the linker stub bfd.
1090 (elf32_arm_check_relocs): Skip check for pic format after
1091 processing a vxWorks R_ARM_ABS12 reloc.
1092 * elflink.c (bfd_elf_final_link): Check for ELFCLASSNONE when
1093 reporting a class mismatch.
1094
1095 2016-01-21 Jiong Wang <jiong.wang@arm.com>
1096
1097 * elfnn-aarch64.c (aarch64_type_of_stub): Allow insert long branch
1098 veneer for sym_sec != input_sec.
1099 (elfNN_aarch64_size_stub): Support STT_SECTION symbol.
1100 (elfNN_aarch64_final_link_relocate): Take rela addend into account when
1101 calculation destination.
1102
1103 2016-01-21 Alan Modra <amodra@gmail.com>
1104
1105 * elf-linux-core.h (swap_linux_prpsinfo32_out): New function.
1106 (swap_linux_prpsinfo64_out): New function.
1107 (LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
1108 (LINUX_PRPSINFO64_SWAP_FIELDS): Delete.
1109 * elf.c (elfcore_write_linux_prpsinfo32): Adjust. Don't memset.
1110 (elfcore_write_linux_prpsinfo64): Likewise.
1111 * elf32-ppc.c (swap_ppc_linux_prpsinfo32_out): New function.
1112 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
1113 (elfcore_write_ppc_linux_prpsinfo32): Adjust. Don't memset.
1114
1115 2016-01-21 Alan Modra <amodra@gmail.com>
1116
1117 * elf-linux-core.h: Rename from elf-linux-psinfo.h.
1118 * elf.c: Adjust #include.
1119 * elf32-ppc.c: Don't #include elf-linux-psinfo.h
1120 * Makefile.am (SOURCE_HFILES): Update.
1121 * Makefile.in: Regenerate.
1122 * po/SRC-PORFILES.in: Regenerate.
1123
1124 2016-01-21 Alan Modra <amodra@gmail.com>
1125
1126 * configure.ac: Move corefile selection later in file. Move
1127 tdefaults code immediately after other target vector code.
1128 * configure: Regenerate.
1129
1130 2016-01-20 Mickael Guene <mickael.guene@st.com>
1131
1132 * elf32-arm.c (elf32_arm_special_sections): Remove catch of noread
1133 section using '.text.noread' pattern.
1134
1135 2016-01-19 John Baldwin <jhb@FreeBSD.org>
1136
1137 * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.
1138
1139 2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
1140 Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
1141
1142 * arc-plt.def: New file.
1143 * arc-plt.h: Likewise.
1144 * elf32-arc.c (elf_arc_abs_plt0_entry, elf_arc_abs_pltn_entry,
1145 elf_arcV2_abs_plt0_entry, elf_arcV2_abs_pltn_entry,
1146 elf_arc_pic_plt0_entry, elf_arc_pic_pltn_entry,
1147 elf_arcV2_pic_plt0_entry, elf_arcV2_pic_pltn_entry): Remove.
1148 (name_for_global_symbol): Added.
1149 (ADD_RELA): Helper to create dynamic relocs.
1150 (new_got_entry_to_list): Create a new got entry in linked list.
1151 (symbol_has_entry_of_type): Search for specific type of entry in
1152 list.
1153 (is_reloc_for_GOT): return FALSE for any TLS related relocs.
1154 (is_reloc_for_TLS, arc_elf_set_private_flags)
1155 (arc_elf_print_private_bfd_data, arc_elf_copy_private_bfd_data)
1156 (arc_elf_merge_private_bfd_data): New functions.
1157 (debug_arc_reloc): Cleaned debug info printing.
1158 (PDATA reloc): Changed not to perform address alignment.
1159 (reverse_me): Added. Fix for ARC_32 relocs.
1160 (arc_do_relocation): Return bfd_reloc_of when no relocation should
1161 occur.
1162 (arc_get_local_got_ents): Renamed from arc_get_local_got_offsets.
1163 Changed function to access an array of list of GOT entries instead
1164 of just an array of offsets.
1165 (elf_arc_relocate_section): Added support for PIC and TLS related relocations.
1166 (elf_arc_check_relocs): Likewise.
1167 (elf_arc_adjust_dynamic_symbol, elf_arc_finish_dynamic_symbol,
1168 (elf_arc_finish_dynamic_sections): Likewise
1169 (arc_create_dynamic_sections): Modified conditions to create
1170 dynamic sections.
1171 (ADD_SYMBOL_REF_SEC_AND_RELOC): New macro.
1172 (plt_do_relocs_for_symbol, relocate_plt_for_symbol)
1173 (relocate_plt_for_entry): Changed to support new way to define PLT
1174 related code.
1175 (add_symbol_to_plt): Likewise.
1176 (arc_elf_link_hash_table_create): New function.
1177
1178 2016-01-18 Nick Clifton <nickc@redhat.com>
1179
1180 PR ld/19440
1181 * coff-rs6000.c (_bfd_xcoff_swap_sym_in): Sign extend external
1182 section number into internal section number.
1183 * coff64-rs6000.c (_bfd_xcoff64_swap_sym_in): Likewise.
1184 * coffswap.h (coff_swap_sym_in): Likewise.
1185 * peXXigen.c (_bfd_XXi_swap_sym_in): Likewise.
1186 * coffcode.h (_coff_bigobj_swap_sym_in): Make sure that internal
1187 section number field is big enough to hold the external value.
1188
1189 2016-01-17 Alan Modra <amodra@gmail.com>
1190
1191 * configure: Regenerate.
1192
1193 2016-01-12 Yury Usishchev <y.usishchev@samsung.com>
1194
1195 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Insert cantunwind
1196 when address in first unwind entry does not match start of
1197 section.
1198
1199 2016-01-08 Richard Sandiford <richard.sandiford@arm.com>
1200 Jiong Wang <jiong.wang@arm.com>
1201
1202 PR ld/19368
1203 * elf32-arm.c (elf32_arm_reloc_type_class): Map R_ARM_IRELATIVE to
1204 reloc_class_ifunc.
1205
1206 2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
1207
1208 * elf32-arc.c (reloc_type_to_name): Change ARC_RELOC_HOWTO to
1209 place 'R_' before the reloc name returned.
1210 (elf_arc_howto_table): Change ARC_RELOC_HOWTO to place 'R_' before
1211 the relocation string.
1212
1213 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1214
1215 * elfxx-mips.c (mips_elf_merge_obj_abiflags): New function,
1216 factored out from...
1217 (_bfd_mips_elf_merge_private_bfd_data): ... here.
1218
1219 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1220
1221 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Move
1222 attribute check after ELF file header flag check.
1223
1224 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1225
1226 * elfxx-mips.c (mips_elf_merge_obj_attributes): Propagate the
1227 return status from `_bfd_elf_merge_object_attributes'.
1228
1229 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1230
1231 * elfxx-mips.c (mips_elf_merge_obj_e_flags): New function,
1232 factored out from...
1233 (_bfd_mips_elf_merge_private_bfd_data): ... here.
1234
1235 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1236
1237 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Fold the
1238 handling of input MIPS ABI flags together.
1239
1240 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1241
1242 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Suppress
1243 attribute checks for null input.
1244
1245 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1246
1247 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Use local
1248 pointers to target data.
1249
1250 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1251
1252 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
1253 an FP ABI warning.
1254
1255 2016-01-01 Alan Modra <amodra@gmail.com>
1256
1257 Update year range in copyright notice of all files.
1258
1259 For older changes see ChangeLog-2015 and doc/ChangeLog-0415
1260 \f
1261 Copyright (C) 2016 Free Software Foundation, Inc.
1262
1263 Copying and distribution of this file, with or without modification,
1264 are permitted in any medium without royalty provided the copyright
1265 notice and this notice are preserved.
1266
1267 Local Variables:
1268 mode: change-log
1269 left-margin: 8
1270 fill-column: 74
1271 version-control: never
1272 End:
This page took 0.056502 seconds and 4 git commands to generate.