Allow zero length archive elements
[external/binutils.git] / bfd / ChangeLog
1 2016-03-09  Alan Modra  <amodra@gmail.com>
2
3         PR binutils/19775
4         * coff-alpha.c (alpha_ecoff_openr_next_archived_file): Allow zero
5         length elements in the archive.
6
7 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
8
9         PR ld/19789
10         * elflink.c (elf_link_add_object_symbols): Create dynamic sections
11         for -E/--dynamic-list only when not relocatable.
12
13 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
14
15         PR ld/19784
16         * elf32-i386.c (elf_i386_check_relocs): Increment PLT reference
17         count for locally defined local IFUNC symbols in shared object.
18         * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
19
20 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
21
22         PR ld/19579
23         * elflink.c (_bfd_elf_merge_symbol): Group common symbol checking
24         together.
25
26 2016-03-08  Cupertino Miranda  <Cupertino.Miranda@synopsys.com>
27             Andrew Burgess  <andrew.burgess@embecosm.com>
28
29         * elf32-arc.c (arc_bfd_get_32): Becomes an alias for bfd_get_32.
30         (arc_bfd_put_32): Becomes an alias for bfd_put_32.
31         (arc_elf_howto_init): Added assert to validate relocations.
32         (get_middle_endian_relocation): Delete.
33         (middle_endian_convert): New function.
34         (ME): Redefine, now does nothing.
35         (IS_ME): New define.
36         (arc_do_relocation): Extend the attached 'ARC_RELOC_HOWTO'
37         definition to call middle_endian_convert.  Add a new local
38         variable and make use of this throughout. Added call to
39         arc_bfd_get_8 and arc_bfd_put_8 for 8 bit relocations.
40
41 2016-03-07  Nick Clifton  <nickc@redhat.com>
42
43         PR binutils/19775
44         * archive.c (bfd_generic_openr_next_archived_file): Allow zero
45         length elements in the archive.
46
47 2016-03-07  Jiong Wang  <jiong.wang@arm.com>
48
49         * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Always create .got
50         section if the symbol "_GLOBAL_OFFSET_TABLE_" is referenced.
51
52 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
53
54         PR ld/19579
55         * elflink.c (_bfd_elf_merge_symbol): Treat common symbol in
56         executable as definition if the new definition comes from a
57         shared library.
58
59 2016-03-02  Alan Modra  <amodra@gmail.com>
60
61         * Makefile.in: Regenerate.
62         * po/SRC-POTFILES.in: Regenerate.
63
64 2016-02-29  Cupertino Miranda  <cmiranda@synopsys.com>
65
66         * elf32-arc.c (elf_arc_relocate_section): Added rules to fix the
67         relocation addend when sections get merged.
68
69 2016-02-29  Cupertino Miranda <Cupertino.Miranda@synopsys.com>
70
71         * elf32-arc.c (arc_elf_final_write_processing): Add condition to
72         the flag change.
73         (elf_arc_relocate_section): Fixes and conditions to support PIE.
74         Assert for code sections dynamic relocs.
75
76 2016-02-26  Renlin Li  <renlin.li@arm.com>
77
78         * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix signed overflow
79         check for MOVW_SABS_G0, MOVW_SABS_G1, MOVW_SABS_G2.
80
81 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
82
83         PR ld/19609
84         * elf32-i386.c (elf_i386_convert_load): Convert to R_386_32 for
85         load with locally bound symbols if PIC is false or there is no
86         base register.  Optimize branch to 0 if PIC is false.
87         (elf_i386_relocate_section): Don't generate dynamic relocations
88         against undefined weak symbols if PIC is false.
89         * elf64-x86-64.c (elf_x86_64_convert_load): Disable optimization
90         if we can't estimate relocation overflow with --no-relax.
91         Convert to R_X86_64_32S/R_X86_64_32 for load with locally bound
92         symbols if PIC is false.  Optimize branch to 0 if PIC is false.
93         (elf_x86_64_relocate_section): Don't generate dynamic relocations
94         against undefined weak symbols if PIC is false.
95
96 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
97
98         PR ld/19645
99         * bfd.c (bfd): Change flags to 20 bits.
100         (BFD_CONVERT_ELF_COMMON): New.
101         (BFD_USE_ELF_STT_COMMON): Likewise.
102         (BFD_FLAGS_SAVED): Add BFD_CONVERT_ELF_COMMON and
103         BFD_USE_ELF_STT_COMMON.
104         (BFD_FLAGS_FOR_BFD_USE_MASK): Likewise.
105         * configure.ac: Remove --enable-elf-stt-common.
106         * elf.c (swap_out_syms): Choose STT_COMMON or STT_OBJECT for
107         common symbol depending on BFD_CONVERT_ELF_COMMON and
108         BFD_USE_ELF_STT_COMMON.
109         * elfcode.h (elf_slurp_symbol_table): Set BSF_ELF_COMMON for
110         STT_COMMON.
111         * elflink.c (bfd_elf_link_mark_dynamic_symbol): Also check
112         STT_COMMON.
113         (elf_link_convert_common_type): New function.
114         (elf_link_output_extsym): Choose STT_COMMON or STT_OBJECT for
115         common symbol depending on BFD_CONVERT_ELF_COMMON and
116         BFD_USE_ELF_STT_COMMON.  Set sym.st_info after sym.st_shndx.
117         * elfxx-target.h (TARGET_BIG_SYM): Add BFD_CONVERT_ELF_COMMON
118         and BFD_USE_ELF_STT_COMMON to object_flags.
119         (TARGET_LITTLE_SYM): Likewise.
120         * syms.c (BSF_KEEP_G): Renamed to ...
121         (BSF_ELF_COMMON): This.
122         * bfd-in2.h: Regenerated.
123         * config.in: Likewise.
124         * configure: Likewise.
125
126 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
127
128         PR ld/19636
129         PR ld/19704
130         PR ld/19719
131         * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
132         (elf_i386_link_hash_entry): Add has_got_reloc and
133         has_non_got_reloc.
134         (elf_i386_link_hash_table): Add interp.
135         (elf_i386_link_hash_newfunc): Initialize has_got_reloc and
136         has_non_got_reloc.
137         (elf_i386_copy_indirect_symbol): Copy has_got_reloc and
138         has_non_got_reloc.
139         (elf_i386_check_relocs): Set has_got_reloc and has_non_got_reloc.
140         (elf_i386_fixup_symbol): New function.
141         (elf_i386_pie_finish_undefweak_symbol): Likewise.
142         (elf_i386_allocate_dynrelocs): Don't allocate space for dynamic
143         relocations and discard relocations against resolved undefined
144         weak symbols in executable.  Don't make resolved undefined weak
145         symbols in executable dynamic.  Keep dynamic non-GOT/non-PLT
146         relocation against undefined weak symbols in PIE.
147         (elf_i386_size_dynamic_sections): Set interp to .interp section.
148         (elf_i386_relocate_section): Don't generate dynamic relocations
149         against resolved undefined weak symbols in PIE, except for
150         R_386_PC32.
151         (elf_i386_finish_dynamic_symbol): Keep PLT/GOT entries without
152         dynamic PLT/GOT relocations for resolved undefined weak symbols.
153         Don't generate dynamic relocation against resolved undefined weak
154         symbol in executable.
155         (elf_i386_finish_dynamic_sections): Call
156         elf_i386_pie_finish_undefweak_symbol on all symbols in PIE.
157         (elf_backend_fixup_symbol): New.
158         * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
159         (elf_x86_64_link_hash_entry): Add has_got_reloc and
160         has_non_got_reloc.
161         (elf_x86_64_link_hash_table): Add interp.
162         (elf_x86_64_link_hash_newfunc): Initialize has_got_reloc and
163         has_non_got_reloc.
164         (elf_x86_64_copy_indirect_symbol): Copy has_got_reloc and
165         has_non_got_reloc.
166         (elf_x86_64_check_relocs): Set has_got_reloc and
167         has_non_got_reloc.
168         (elf_x86_64_fixup_symbol): New function.
169         (elf_x86_64_pie_finish_undefweak_symbol): Likewise.
170         (elf_x86_64_allocate_dynrelocs): Don't allocate space for dynamic
171         relocations and discard relocations against resolved undefined
172         weak symbols in executable.  Don't make resolved undefined weak
173         symbols in executable dynamic.
174         (elf_x86_64_size_dynamic_sections): Set interp to .interp section.
175         (elf_x86_64_relocate_section): Check relocation overflow for
176         dynamic relocations against unresolved weak undefined symbols.
177         Don't generate dynamic relocations against resolved weak
178         undefined symbols in PIE.
179         (elf_x86_64_finish_dynamic_symbol): Keep PLT/GOT entries without
180         dynamic PLT/GOT relocations for resolved undefined weak symbols.
181         Don't generate dynamic relocation against resolved undefined weak
182         symbol in executable.
183         (elf_x86_64_finish_dynamic_sections): Call
184         elf_x86_64_pie_finish_undefweak_symbol on all symbols in PIE.
185         (elf_backend_fixup_symbol): New.
186
187 2016-02-26  Alan Modra  <amodra@gmail.com>
188
189         * elf64-ppc.c (create_linkage_sections): Create sfpr when
190         save_restore_funcs, rest of sections when not relocatable.
191         (ppc64_elf_init_stub_bfd): Always call create_linkage_sections.
192         (sfpr_define): Define all symbols on emitted code.
193         (ppc64_elf_func_desc_adjust): Adjust for sfpr now being created
194         when relocatable.  Move sfpr_define loop earlier.
195
196 2016-02-24  H.J. Lu  <hongjiu.lu@intel.com>
197
198         * elf64-x86-64.c (elf_x86_64_need_pic): New function.
199         (elf_x86_64_relocate_section): Use it.  Replace
200         x86_64_elf_howto_table[r_type] with howto.
201
202 2016-02-24  H.J. Lu  <hongjiu.lu@intel.com>
203
204         PR ld/19698
205         * elflink.c (bfd_elf_record_link_assignment): Set versioned if
206         symbol version is unknown.
207
208 2016-02-24  H.J. Lu  <hongjiu.lu@intel.com>
209
210         * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset
211         to (bfd_vma) -1 when setting needs_plt to 0.
212         * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
213
214 2016-02-23  H.J. Lu  <hongjiu.lu@intel.com>
215
216         * elflink.c (bfd_elf_record_link_assignment): Check for shared
217         library, instead of PIC, and don't check PDE when making linker
218         assigned symbol dynamic.
219
220 2016-02-23  Faraz Shahbazker  <faraz.shahbazker@imgtec.com>
221
222         * bfd/elfxx-mips.c (_bfd_mips_post_process_headers): Increment
223         ABIVERSION for non-executable stack.
224
225 2016-02-23  Rich Felker  <bugdal@aerifal.cx>
226
227         PR target/19516
228         * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol):
229         Always produce a RELATIVE reloc for a local symbol.
230
231 2016-02-23  Hans-Peter Nilsson  <hp@axis.com>
232
233         Fix test-case ld-elf/pr19617b
234         * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
235         discard unused non-function symbols when --dynamic-list-data.
236
237 2016-02-22  H.J. Lu  <hongjiu.lu@intel.com>
238
239         * elflink.c (_bfd_elf_link_renumber_dynsyms): Always create the
240         dynsym section, even if it is empty, with dynamic sections.
241
242 2016-02-22  H.J. Lu  <hongjiu.lu@intel.com>
243
244         * syms.c: Remove BSF_COMMON from comments.
245         * bfd-in2.h: Regenerated.
246
247 2016-02-22  Jiong Wang  <jiong.wang@arm.com>
248
249         * elfnn-aarch64. (aarch64_type_of_stub): Remove redundation calcuation
250         for destination.  Remove useless function parameters.
251         (elfNN_aarch64_size_stubs): Update parameters for aarch64_type_of_stub.
252
253 2016-02-19  Nick Clifton  <nickc@redhat.com>
254
255         PR ld/19629
256         * aoutx.h (aout_link_add_symbols): Check for out of range string
257         table offsets.
258
259         PR ld/19628
260         * reloc.c (bfd_generic_get_relocated_section_contents): Stop
261         processing if we encounter a reloc without an associated symbol.
262
263 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
264
265         PR ld/19617
266         * elflink.c (elf_link_add_object_symbols): Always create dynamic
267         sections for -E/--dynamic-list.
268
269 2016-02-17  H.J. Lu  <hongjiu.lu@intel.com>
270
271         * elf64-x86-64.c (elf_backend_omit_section_dynsym): New.  Defined
272         to bfd_true.
273
274 2016-02-16  Joseph Myers  <joseph@codesourcery.com>
275
276         * plugin.c (plugin_vec): Set match priority to 255.
277         * format.c (bfd_check_format_matches) [BFD_SUPPORTS_PLUGINS]: When
278         matching against the plugin vector, take priority from there not
279         from TEMP.
280
281 2016-02-15  Nick Clifton  <nickc@redhat.com>
282
283         * elf-bfd.h (struct bfd_elf_special_section): Use unsigned values
284         for length and type fields.  Use a signed value for the
285         suffix_length field.
286
287 2016-02-10  H.J. Lu  <hongjiu.lu@intel.com>
288
289         PR ld/19601
290         * elf32-i386.c (elf_i386_relocate_section): Mask off the least
291         significant bit in GOT offset for R_386_GOT32X.
292
293 2016-02-10  Nick Clifton  <nickc@redhat.com>
294
295         PR 19405
296         * elf32-nios2.c (nios2_elf32_install_imm16): Allow for signed
297         immediate values.
298         * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Limit the
299         number of messages about FDE encoding preventing .eh_frame_hdr
300         generation.
301
302 2016-02-09  Nick Clifton  <nickc@redhat.com>
303
304         * oasys.c (oasys_archive_p): Fix indentation.
305         * elf32-nds32.c (nds32_elf_relax_section): Use an unsigned
306         constant for left shifting.
307
308         * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Add a more
309         helpful warning message to explain why certain AArch64 relocs
310         might overflow.
311
312 2016-02-05  Simon Marchi  <simon.marchi@ericsson.com>
313
314         * pe-mips.c (coff_mips_reloc): Fix formatting.
315
316 2016-02-05  Cupertino Miranda  <Cupertino.Miranda@synopsys.com>
317
318         * cpu-arc.c: Change default archure from bfd_mach_arc_arcv2
319         to bfd_mach_arc_arc600.
320
321 2016-02-04  Alan Modra  <amodra@gmail.com>
322
323         * elf64-ppc.c (ppc64_elf_relocate_section): Adjust last patch
324         for big-endian.
325
326 2016-02-02  H.J. Lu  <hongjiu.lu@intel.com>
327
328         PR ld/19542
329         * elf64-x86-64.c (elf_x86_64_convert_load): Store the estimated
330         distances in the compressed_size field of the output section.
331
332 2016-02-02  Alan Modra  <amodra@gmail.com>
333
334         * elf64-ppc.c (ppc64_elf_relocate_section): Further restrict
335         ELFv2 entry optimization.
336
337 2016-02-02  H.J. Lu  <hongjiu.lu@intel.com>
338
339         PR binutils/19547
340         * elf.c (assign_section_numbers): Clear HAS_RELOC if there are
341         no relocations in relocatable files.
342
343 2016-02-01  H.J. Lu  <hongjiu.lu@intel.com>
344
345         PR ld/19553
346         * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
347         if a symbol from a library loaded via DT_NEEDED doesn't match
348         the symbol referenced by regular object.
349
350 2016-02-01  Nathaniel Smith  <njs@pobox.com>
351
352         * peicode.h (pe_ILF_build_a_bfd): Create an import symbol for both
353         CODE and DATA.
354
355 2016-02-01  Alan Modra  <amodra@gmail.com>
356
357         * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Don't abort on
358         an out of range reloc_index.
359         * elf32-i386.c (elf_i386_get_plt_sym_val): Likewise.
360
361 2016-02-01  Kamil Rytarowski  <n54@gmx.com>
362
363         * Makefile.am (OPTIONAL_BACKENDS): Add netbsd-core.lo.
364         (OPTIONAL_BACKENDS_CFILES): Add netbsd-core.c.
365         * Makefile.in: Regenerated.
366
367 2016-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
368
369         * elf64-s390.c (elf_s390_reloc_name_lookup): Fix indentation.
370
371 2016-01-31  John David Anglin  <danglin@gcc.gnu.org>
372
373         PR ld/19526
374         * elf32-hppa.c (elf32_hppa_final_link): Don't sort non-regular output
375         files.
376         * elf64-hppa.c (elf32_hppa_final_link): Likewise.  Remove retval.
377
378 2016-01-30  H.J. Lu  <hongjiu.lu@intel.com>
379
380         PR ld/19539
381         * elf32-i386.c (elf_i386_reloc_type_class): Check relocation
382         against STT_GNU_IFUNC symbol only with dynamic symbols.
383         * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise.
384
385 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
386
387         PR binutils/19523
388         * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Set BFD_DECOMPRESS to
389         decompress debug sections.
390
391 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
392
393         * elf32-arc.c (elf_arc_finish_dynamic_symbol): Rename `index' to
394         `dynindx'.
395
396 2016-01-25  Nick Clifton  <nickc@redhat.com>
397
398         PR target/19435
399         * mach-o.c (bfd_mach_o_close_and_cleanup): Suppress code to free
400         dsym filename buffer.
401
402 2016-01-24  Maciej W. Rozycki  <macro@imgtec.com>
403
404         * elfxx-mips.c (BZ16_REG_FIELD): Simplify calculation.
405
406 2016-01-24  Maciej W. Rozycki  <macro@imgtec.com>
407
408         * elfxx-mips.c (BZ16_REG): Correct calculation.
409
410 2016-01-21  Nick Clifton  <nickc@redhat.com>
411
412         * elf32-arc.c (ADD_RELA): Fix compile time warning errors by
413         changing the type of _loc to be bfd_byte *.
414         (elf_arc_finish_dynamic_symbol): Likewise.
415
416 2016-01-21  Nick Clifton  <nickc@redhat.com>
417
418         PR ld/19455
419         * elf32-arm.c (elf32_arm_create_dynamic_sections): Set the ELF
420         class of the linker stub bfd.
421         (elf32_arm_check_relocs): Skip check for pic format after
422         processing a vxWorks R_ARM_ABS12 reloc.
423         * elflink.c (bfd_elf_final_link): Check for ELFCLASSNONE when
424         reporting a class mismatch.
425
426 2016-01-21  Jiong Wang  <jiong.wang@arm.com>
427
428         * elfnn-aarch64.c (aarch64_type_of_stub): Allow insert long branch
429         veneer for sym_sec != input_sec.
430         (elfNN_aarch64_size_stub): Support STT_SECTION symbol.
431         (elfNN_aarch64_final_link_relocate): Take rela addend into account when
432         calculation destination.
433
434 2016-01-21  Alan Modra  <amodra@gmail.com>
435
436         * elf-linux-core.h (swap_linux_prpsinfo32_out): New function.
437         (swap_linux_prpsinfo64_out): New function.
438         (LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
439         (LINUX_PRPSINFO64_SWAP_FIELDS): Delete.
440         * elf.c (elfcore_write_linux_prpsinfo32): Adjust.  Don't memset.
441         (elfcore_write_linux_prpsinfo64): Likewise.
442         * elf32-ppc.c (swap_ppc_linux_prpsinfo32_out): New function.
443         (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
444         (elfcore_write_ppc_linux_prpsinfo32): Adjust.  Don't memset.
445
446 2016-01-21  Alan Modra  <amodra@gmail.com>
447
448         * elf-linux-core.h: Rename from elf-linux-psinfo.h.
449         * elf.c: Adjust #include.
450         * elf32-ppc.c: Don't #include elf-linux-psinfo.h
451         * Makefile.am (SOURCE_HFILES): Update.
452         * Makefile.in: Regenerate.
453         * po/SRC-PORFILES.in: Regenerate.
454
455 2016-01-21  Alan Modra  <amodra@gmail.com>
456
457         * configure.ac: Move corefile selection later in file.  Move
458         tdefaults code immediately after other target vector code.
459         * configure: Regenerate.
460
461 2016-01-20  Mickael Guene  <mickael.guene@st.com>
462
463         * elf32-arm.c (elf32_arm_special_sections): Remove catch of noread
464         section using '.text.noread' pattern.
465
466 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
467
468         * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.
469
470 2016-01-18  Miranda Cupertino  <Cupertino.Miranda@synopsys.com>
471             Zissulescu Claudiu  <Claudiu.Zissulescu@synopsys.com>
472
473         * arc-plt.def: New file.
474         * arc-plt.h: Likewise.
475         * elf32-arc.c (elf_arc_abs_plt0_entry, elf_arc_abs_pltn_entry,
476                        elf_arcV2_abs_plt0_entry, elf_arcV2_abs_pltn_entry,
477                        elf_arc_pic_plt0_entry, elf_arc_pic_pltn_entry,
478                        elf_arcV2_pic_plt0_entry, elf_arcV2_pic_pltn_entry): Remove.
479         (name_for_global_symbol): Added.
480         (ADD_RELA): Helper to create dynamic relocs.
481         (new_got_entry_to_list): Create a new got entry in linked list.
482         (symbol_has_entry_of_type): Search for specific type of entry in
483         list.
484         (is_reloc_for_GOT): return FALSE for any TLS related relocs.
485         (is_reloc_for_TLS, arc_elf_set_private_flags)
486         (arc_elf_print_private_bfd_data, arc_elf_copy_private_bfd_data)
487         (arc_elf_merge_private_bfd_data): New functions.
488         (debug_arc_reloc): Cleaned debug info printing.
489         (PDATA reloc): Changed not to perform address alignment.
490         (reverse_me): Added. Fix for ARC_32 relocs.
491         (arc_do_relocation): Return bfd_reloc_of when no relocation should
492         occur.
493         (arc_get_local_got_ents): Renamed from arc_get_local_got_offsets.
494         Changed function to access an array of list of GOT entries instead
495         of just an array of offsets.
496         (elf_arc_relocate_section): Added support for PIC and TLS related relocations.
497         (elf_arc_check_relocs): Likewise.
498         (elf_arc_adjust_dynamic_symbol, elf_arc_finish_dynamic_symbol,
499         (elf_arc_finish_dynamic_sections): Likewise
500         (arc_create_dynamic_sections): Modified conditions to create
501         dynamic sections.
502         (ADD_SYMBOL_REF_SEC_AND_RELOC): New macro.
503         (plt_do_relocs_for_symbol, relocate_plt_for_symbol)
504         (relocate_plt_for_entry): Changed to support new way to define PLT
505         related code.
506         (add_symbol_to_plt): Likewise.
507         (arc_elf_link_hash_table_create): New function.
508
509 2016-01-18  Nick Clifton  <nickc@redhat.com>
510
511         PR ld/19440
512         * coff-rs6000.c (_bfd_xcoff_swap_sym_in): Sign extend external
513         section number into internal section number.
514         * coff64-rs6000.c (_bfd_xcoff64_swap_sym_in): Likewise.
515         * coffswap.h (coff_swap_sym_in): Likewise.
516         * peXXigen.c (_bfd_XXi_swap_sym_in): Likewise.
517         * coffcode.h (_coff_bigobj_swap_sym_in): Make sure that internal
518         section number field is big enough to hold the external value.
519
520 2016-01-17  Alan Modra  <amodra@gmail.com>
521
522         * configure: Regenerate.
523
524 2016-01-12  Yury Usishchev  <y.usishchev@samsung.com>
525
526         * elf32-arm.c (elf32_arm_fix_exidx_coverage): Insert cantunwind
527         when address in first unwind entry does not match start of
528         section.
529
530 2016-01-08  Richard Sandiford  <richard.sandiford@arm.com>
531             Jiong Wang  <jiong.wang@arm.com>
532
533         PR ld/19368
534         * elf32-arm.c (elf32_arm_reloc_type_class): Map R_ARM_IRELATIVE to
535         reloc_class_ifunc.
536
537 2016-01-06  Andrew Burgess  <andrew.burgess@embecosm.com>
538
539         * elf32-arc.c (reloc_type_to_name): Change ARC_RELOC_HOWTO to
540         place 'R_' before the reloc name returned.
541         (elf_arc_howto_table): Change ARC_RELOC_HOWTO to place 'R_' before
542         the relocation string.
543
544 2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
545
546         * elfxx-mips.c (mips_elf_merge_obj_abiflags): New function,
547         factored out from...
548         (_bfd_mips_elf_merge_private_bfd_data): ... here.
549
550 2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
551
552         * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Move
553         attribute check after ELF file header flag check.
554
555 2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
556
557         * elfxx-mips.c (mips_elf_merge_obj_attributes): Propagate the
558         return status from `_bfd_elf_merge_object_attributes'.
559
560 2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
561
562         * elfxx-mips.c (mips_elf_merge_obj_e_flags): New function,
563         factored out from...
564         (_bfd_mips_elf_merge_private_bfd_data): ... here.
565
566 2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
567
568         * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Fold the
569         handling of input MIPS ABI flags together.
570
571 2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
572
573         * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Suppress
574         attribute checks for null input.
575
576 2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
577
578         * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Use local
579         pointers to target data.
580
581 2016-01-04  Maciej W. Rozycki  <macro@imgtec.com>
582
583         * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
584         an FP ABI warning.
585
586 2016-01-01  Alan Modra  <amodra@gmail.com>
587
588         Update year range in copyright notice of all files.
589
590 For older changes see ChangeLog-2015 and doc/ChangeLog-0415
591 \f
592 Copyright (C) 2016 Free Software Foundation, Inc.
593
594 Copying and distribution of this file, with or without modification,
595 are permitted in any medium without royalty provided the copyright
596 notice and this notice are preserved.
597
598 Local Variables:
599 mode: change-log
600 left-margin: 8
601 fill-column: 74
602 version-control: never
603 End: