1 2018-04-14 Alan Modra <amodra@gmail.com>
3 * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss*
6 2018-04-11 Alan Modra <amodra@gmail.com>
8 * aout-adobe.c: Delete.
10 * coff-i860.c: Delete.
11 * coff-i960.c: Delete.
14 * elf32-i860.c: Delete.
15 * elf32-i960.c: Delete.
16 * hosts/i860mach3.h: Delete.
17 * Makefile.am: Remove i860, i960, bout, and adobe support.
18 * archures.c: Remove i860 and i960 support.
19 * coffcode.h: Likewise.
21 * aoutx.h: Comment updates.
22 * archive.c: Remove BOUT and i960 support.
23 * bfd.c: Remove BOUT support.
24 * coffswap.h: Remove i960 support.
25 * config.bfd: Remove i860, i960 and adobe targets.
26 * configure.ac: Remove adode, bout, i860, i960, icoff targets.
27 * targets.c: Likewise.
28 * ieee.c: Remove i960 support.
29 * mach-o.c: Remove i860 support.
30 * Makefile.in: Regenerate.
31 * bfd-in2.h: Regenerate.
32 * configure: Regenerate.
33 * libbfd.h: Regenerate.
34 * po/SRC-POTFILES.in: Regenerate.
36 2018-04-09 Maciej W. Rozycki <macro@mips.com>
38 * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer
39 in the BFD symbol referred by the relocation.
40 (mips_elf64_write_rela): Likewise.
42 2018-04-09 Maciej W. Rozycki <macro@mips.com>
44 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an
45 error for out-of-range `r_sym' values.
47 2018-04-09 Alan Modra <amodra@gmail.com>
49 * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field.
50 (struct ppc_link_hash_table): Add can_convert_all_inline_plt.
51 (ppc64_elf_check_relocs): Set has_pltcall.
52 (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries.
53 (ppc64_elf_inline_plt): New function.
54 (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals.
55 * elf64-ppc.h (ppc64_elf_inline_plt): Declare.
56 * elf32-ppc.c (has_pltcall): Define.
57 (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt.
58 (ppc_elf_check_relocs): Set has_pltcall.
59 (ppc_elf_inline_plt): New function.
60 (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries.
61 (ppc_elf_size_dynamic_sections): Likewise.
62 * elf32-ppc.h (ppc_elf_inline_plt): Declare.
64 2018-04-09 Alan Modra <amodra@gmail.com>
66 * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos.
67 (is_plt_seq_reloc): New function.
68 (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs.
69 (ppc_elf_tls_optimize): Handle inline plt call sequence.
70 (ppc_elf_relax_section): Handle PLTCALL reloc.
71 (ppc_elf_relocate_section): Nop out inline plt call sequence when
73 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and
74 R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE.
75 (has_tls_get_addr_call): Correct comment.
76 (is_branch_reloc): Add PLTCALL.
77 (is_plt_seq_reloc): New function.
78 (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set
79 has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt
80 entry for R_PPC64_PLTCALL.
81 (ppc64_elf_tls_optimize): Handle inline plt call sequence.
82 (ppc_type_of_stub): Handle PLTCALL reloc.
83 (toc_adjusting_stub_needed): Likewise.
84 (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL
85 reloc insn. Nop out inline plt call sequence when resolving
86 locally. Handle __tls_get_addr inline plt call optimization.
88 2018-04-09 Alan Modra <amodra@gmail.com>
90 * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define.
91 (struct ppc_stub_hash_entry): Add symtype field.
93 (struct ppc_link_hash_table): Add pltlocal and relpltlocal.
94 (create_linkage_sections): Create pltlocal and relpltlocal.
95 (ppc64_elf_check_relocs): Allow PLT relocs on local symbols.
97 (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
98 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
99 (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
100 Keep PLT entries for inline calls against locals.
101 (ppc_build_one_stub): Use pltlocal as appropriate.
102 (ppc_size_one_stub): Likewise.
103 (ppc64_elf_size_stubs): Set symtype.
104 (build_global_entry_stubs_and_plt): Init pltlocal and write
105 relpltlocal for globals.
106 (write_plt_relocs_for_local_syms): Likewise for local syms.
107 (ppc64_elf_relocate_section): Support PLT for local syms.
108 * elf32-ppc.c (PLT_KEEP): Define.
109 (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal.
110 (ppc_elf_create_glink): Create pltlocal and relpltlocal.
111 (ppc_elf_check_relocs): Allow PLT relocs on local symbols.
112 Set PLT_KEEP. Adjust update_local_sym_info call.
113 (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
114 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
115 (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
116 (ppc_elf_relocate_section): Support PLT16 relocs for local syms.
117 (write_global_sym_plt): Init pltlocal and write relpltlocal.
118 (ppc_finish_symbols): Likewise for locals.
120 2018-04-09 Alan Modra <amodra@gmail.com>
122 * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs
123 for local symbols to..
124 (write_plt_relocs_for_local_syms): ..here. New function.
125 (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for
127 (build_global_entry_stubs_and_plt): ..here. Rename from
128 build_global_entry_stubs.
129 (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt.
130 Call write_plt_relocs_for_local_syms.
131 * elf32-ppc.c (get_sym_h): New function.
132 (ppc_elf_relax_section): Use get_sym_h.
133 (ppc_elf_relocate_section): Move output of PLT relocs and glink
134 stubs for local symbols to..
135 (ppc_finish_symbols): ..here. New function.
136 (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for
138 (write_global_sym_plt): ..here. New function.
139 * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute.
140 (ppc_finish_symbols): Declare.
142 2018-04-09 Alan Modra <amodra@gmail.com>
144 * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs.
145 (ppc_elf_relocate_section): Likewise.
146 * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS.
147 (ppc64_elf_relocate_section): Likewise. Correct PLT16
148 resolution to plt entry relative to toc pointer.
150 2018-04-09 Alan Modra <amodra@gmail.com>
152 * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
153 TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout
154 file when other TLS flags are tested in a mask.
155 (TLS_MARK, NON_GOT): Define.
156 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
157 (update_local_sym_info): Don't create got entry when NON_GOT.
158 (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
160 (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK.
161 (ppc64_elf_relocate_section): Likewise.
162 (ppc64_elf_tls_optimize): Don't attempt to optimize indirect
163 __tls_get_addr calls lacking a marker reloc.
164 * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
165 TLS_TPRELGD): Renumber. Update comment.
166 (TLS_MARK, NON_GOT): Define.
167 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
168 (update_local_sym_info): Don't create got entry when NON_GOT.
169 (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
171 (ppc_elf_tls_optimize): Don't attempt to optimize indirect
172 __tls_get_addr calls lacking a marker reloc.
174 2018-04-06 H.J. Lu <hongjiu.lu@intel.com>
176 * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out
177 R_X86_64_converted_reloc_bit.
179 2018-04-05 H.J. Lu <hongjiu.lu@intel.com>
182 * configure: Regenerated.
184 2018-04-05 Alan Modra <amodra@gmail.com>
186 * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
187 (elf_hppa_info_to_howto_rel): Likewise.
189 2018-04-04 Maciej W. Rozycki <macro@mips.com>
191 * elf-hppa.h (elf_hppa_info_to_howto): Also return
192 unsuccessfully for unimplemented relocations.
193 (elf_hppa_info_to_howto_rel): Likewise.
195 2018-04-04 Maciej W. Rozycki <macro@mips.com>
197 * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the
198 `bfd_error_bad_value' error and call `_bfd_error_handler' on a
199 howto lookup failure.
200 (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call
202 (elf32_i860_info_to_howto_rela): Likewise.
203 (elf32_i860_relocate_splitn): Likewise.
204 (elf32_i860_relocate_pc16): Likewise.
205 (elf32_i860_relocate_pc26): Likewise.
206 (elf32_i860_relocate_section): Likewise.
208 2018-04-04 Maciej W. Rozycki <macro@mips.com>
210 * elf32-visium.c (visium_info_to_howto_rela): Correct the range
211 check for `visium_elf_howto_table' table access.
213 2018-04-04 Maciej W. Rozycki <macro@mips.com>
215 * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range
216 check for `iq2000_elf_howto_table' table access.
218 2018-04-04 Maciej W. Rozycki <macro@mips.com>
220 * elf32-frv.c (frv_info_to_howto_rela): Correct the range check
221 for `elf32_frv_howto_table' table access.
223 2018-04-04 Maciej W. Rozycki <macro@mips.com>
225 * elf32-mips.c (mips_elf32_rtype_to_howto): Also return
226 unsuccessfully for placeholder howtos.
227 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
228 * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise.
230 2018-03-29 Maciej W. Rozycki <macro@mips.com>
232 * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to
233 `_bfd_error_handler' and to set the `bfd_error_bad_value' error.
235 2018-03-28 Maciej W. Rozycki <macro@mips.com>
237 * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove
238 ATTRIBUTE_UNUSED from `abfd'.
240 2018-03-28 Maciej W. Rozycki <macro@mips.com>
242 * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct
243 `_bfd_error_handler' call formatting.
245 2018-03-28 Maciej W. Rozycki <macro@mips.com>
247 * elf32-mips.c (mips_info_to_howto_rel): Call
248 `mips_elf32_rtype_to_howto' directly rather than via
249 `->elf_backend_mips_rtype_to_howto'.
251 2018-03-28 Renlin Li <renlin.li@arm.com>
254 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for
255 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
256 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
257 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
258 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
259 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
260 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
261 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
262 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
263 (elfNN_aarch64_final_link_relocate): Support new relocations.
264 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new
266 (_bfd_aarch64_elf_resolve_relocation): Support new relocations.
268 2018-03-28 Renlin Li <renlin.li@arm.com>
271 * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12
272 BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC,
273 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
274 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
275 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
276 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
277 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
278 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
279 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
280 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
281 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for
282 TLSLE_LDST16_TPREL_LO12,
283 TLSLE_LDST16_TPREL_LO12_NC,
284 TLSLE_LDST32_TPREL_LO12,
285 TLSLE_LDST32_TPREL_LO12_NC,
286 TLSLE_LDST64_TPREL_LO12,
287 TLSLE_LDST64_TPREL_LO12_NC,
288 TLSLE_LDST8_TPREL_LO12,
289 TLSLE_LDST8_TPREL_LO12_NC.
290 * bfd-in2.h: Regenerated.
291 * libbfd.h: Regenerated.
293 2018-03-28 Eric Botcazou <ebotcazou@adacore.com>
296 * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag
297 has_old_style_got_reloc.
298 (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style
299 relocations. Fix a couple of long lines.
300 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate
301 a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style
304 2018-03-25 H.J. Lu <hongjiu.lu@intel.com>
307 * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add
308 ENDBR64 to the TLSDESC PLT entry.
310 2018-03-21 Alan Modra <amodra@gmail.com>
312 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting
313 symbols. Use size_t counts. Delete redundant opd test.
315 2018-03-21 Alan Modra <amodra@gmail.com>
317 * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms.
319 2018-03-21 Alan Modra <amodra@gmail.com>
321 * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask
323 (update_local_sym_info): Likewise for local_got_tls_masks.
324 (ppc_elf_tls_optimize): Likewise for lgot_masks.
326 2018-03-21 Alan Modra <amodra@gmail.com>
328 * elf64-ppc.c (ppc_size_one_stub): Fix comment typo.
329 (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we
330 do in size_dynamic_sections.
332 2018-03-21 Alan Modra <amodra@gmail.com>
334 * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1]
335 without first checking array bounds.
336 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
338 2018-03-20 H.J. Lu <hongjiu.lu@intel.com>
341 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
342 non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.
344 2018-03-19 Nick Clifton <nickc@redhat.com>
346 * po/es.po: Updated Spanish translation.
348 2018-03-15 Max Filippov <jcmvbkbc@gmail.com>
350 * elf32-xtensa.c (xlate_map_entry): Change types of address
351 fields from 'unsigned' to 'bfd_vma'.
352 (xlate_offset_with_removed_text): Use struct xlate_map_entry as
353 the key argument to bsearch. Allow offsets past the end of a
354 section, use the last map entry for translation of such offsets.
356 2018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com>
358 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed.
359 Not support the target feature.
360 (nds32_elf_ex9_itb_base): Likewise.
361 (nds32_elf_ex9_import_table): Likewise.
362 (nds32_elf_ex9_finish): Likewise.
363 (nds32_elf_ex9_reloc_jmp): Likewise.
364 (nds32_elf_get_insn_with_reg): Likewise.
365 (nds32_get_local_syms): Likewise.
366 (nds32_elf_ex9_replace_instruction): Likewise.
367 (nds32_elf_ifc_calc): Likewise.
368 (nds32_elf_ifc_finish): Likewise.
369 (nds32_elf_ifc_replace): Likewise.
370 (nds32_elf_ifc_reloc): Likewise.
372 2018-03-14 Alan Modra <amodra@gmail.com>
374 * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having
375 sfpr size added before defining alias symbols.
376 (ppc64_elf_build_stubs): Add stub section padding before
377 copying sfpr contents and defining save/restore alias symbols.
379 2018-03-14 H.J. Lu <hongjiu.lu@intel.com>
382 * elflink.c (elf_gc_mark_debug_section): Also check the local
383 debug definition section.
385 2018-03-13 Nick Clifton <nickc@redhat.com>
388 * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean
389 function. Add an end address parameter. Check access of the data
390 pointer to make sure that they do not extend beyond the end
391 address. Return FALSE if any check fails. Add the end address
392 pointer to the ui structure.
393 (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind
394 codes to make sure that they do not extend beyond the end address
395 pointer. Print an error message and return immediately if any
398 2018-03-09 Nick Clifton <nickc@redhat.com>
400 * elf64-s390.c (elf_s390_relocate_section): Move check for
401 relocations against non-allocated sections to before the code that
402 handles ifunc relocations.
403 * elf32-s390.c (elf_s390_relocate_section): Likewise.
404 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat
405 relocs against IFUNC symbols in non-allocated sections as relocs
406 against FUNC symbols.
407 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
409 2018-03-08 H.J. Lu <hongjiu.lu@intel.com>
412 * elf32-i386.c (elf_i386_relocate_section): Treat relocation
413 against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as
414 relocation against FUNC symbol.
415 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
417 2018-03-07 Renlin Li <renlin.li@arm.com>
420 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute
421 symbol, and don't emit relocation in specific case.
423 2018-03-07 Alan Modra <amodra@gmail.com>
425 * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error.
426 (mips_elf64_slurp_one_reloc_table): Pass on error.
428 2018-03-03 James Cowgill <james.cowgill@mips.com>
429 Maciej W. Rozycki <macro@mips.com>
432 * elfxx-mips.c (mips_elf_calculate_relocation): Only return
433 after calling `undefined_symbol' hook if this is an error
434 condition. Assume the value of 0 for the symbol requested
437 2018-03-02 Jim Wilson <jimw@sifive.com>
440 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch
441 and nop instead of 4.
442 (elfNN_arch64_build_stubs): Add nop after branch. Increase size by
445 2018-03-01 Jim Wilson <jimw@sifive.com>
448 * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use
449 else if instead of if.
451 2018-03-01 Alan Modra <amodra@gmail.com>
453 * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
455 2018-02-28 Alan Modra <amodra@gmail.com>
458 * aoutx.h (swap_std_reloc_in): Correct r_index bound check.
460 2018-02-28 Nick Clifton <nickc@redhat.com>
464 * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block
465 pointer. Drop unused abfd parameter. Check the size of the block
466 before initialising the data field. Return the end pointer if the
468 (read_attribute_value): Adjust invocations of read_n_bytes.
471 * dwarf1.c (parse_die): Check the length of form blocks before
472 advancing the data pointer.
474 2018-02-28 Alan Modra <amodra@gmail.com>
477 * aoutx.h (translate_symbol_table): Print an error message and set
478 bfd_error on finding an invalid name string offset.
480 2018-02-27 H.J. Lu <hongjiu.lu@intel.com>
482 * config.in: Regenerated.
483 * configure: Likewise.
484 * configure.ac: Add --enable-separate-code.
485 (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default
486 to 1 for Linux/x86 targets,
487 * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if
488 DEFAULT_LD_Z_SEPARATE_CODE is 1.
490 2018-02-27 Nick Clifton <nickc@redhat.com>
492 * aout-cris.c (swap_ext_reloc_out): Standadize error/warning
494 * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise.
495 * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise.
496 * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise.
497 * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise.
498 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
499 * elf64-sh64.c (sh_elf64_info_to_howto): Likewise.
500 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
501 * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise.
502 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
505 * elf-bfd.h (struct elf_backend_data): Change the return type of
506 the elf_info_to_howto and elf_info_to_howto_rel function pointers
508 * elfcode.h (elf_slurp_reloc_table_from_section): Check the return
509 value from the info_to_howto function and fail if that function
511 * elf32-h8300.c (elf32_h8_relocate_section): Check return value
512 from the info_to_howto function.
513 (elf32_h8_relax_section): Likewise.
514 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
515 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
516 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
517 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
518 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
519 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
520 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise.
521 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
522 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
523 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise.
524 (riscv_elf_relocate_section): Likewise.
525 * elf-hppa.h (elf_hppa_info_to_howto): Change return type to
526 bfd_boolean. Issue an error message, set an error value and
527 return FALSE if the reloc is not recognized.
528 (elf_hppa_info_to_howto_rel): Likewise.
529 * elf-m10200.c (mn10200_info_to_howto): Likewise.
530 * elf-m10300.c (mn10300_info_to_howto): Likewise.
531 * elf.c (_bfd_elf_no_info_to_howto): Likewise.
532 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
533 * elf32-arm.c (elf32_arm_info_to_howto): Likewise.
534 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
535 * elf32-bfin.c (bfin_info_to_howto): Likewise.
536 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
537 * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise.
538 * elf32-cris.c (elf_cr16c_info_to_howto_rel)
539 (cris_info_to_howto_rela): Likewise.
540 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
541 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
542 * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela):
544 * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto)
545 (elf32_dlx_info_to_howto_rel): Likewise.
546 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
547 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
548 * elf32-frv.c (frv_info_to_howto_rela)
549 (frvfdpic_info_to_howto_rel): Likewise.
550 * elf32-ft32.c (ft32_info_to_howto_rela): Likewise.
551 * elf32-gen.c (elf_generic_info_to_howto)
552 (elf_generic_info_to_howto_rel): Likewise.
553 * elf32-h8300.c (elf32_h8_info_to_howto)
554 (elf32_h8_info_to_howto_rel): Likewise.
555 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
556 * elf32-i386.c (elf_i386_reloc_type_lookup)
557 (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise.
558 * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela):
560 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
561 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
562 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
563 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
564 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
565 * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto):
567 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
568 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
569 * elf32-m68k.c (rtype_to_howto): Likewise.
570 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
571 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
572 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
573 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
574 * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
576 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
577 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
578 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
579 * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto):
581 * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise.
582 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
583 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
584 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
585 * elf32-pru.c (pru_elf32_info_to_howto): Likewise.
586 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
587 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
588 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
589 * elf32-score.c (s3_bfd_score_info_to_howto)
590 (_bfd_score_info_to_howto): Likewise.
591 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
592 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
593 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
594 * elf32-tic6x.c (elf32_tic6x_info_to_howto)
595 (elf32_tic6x_info_to_howto_rel): Likewise.
596 * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise.
597 * elf32-v850.c (v850_elf_info_to_howto_rel)
598 (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise.
599 * elf32-vax.c (rtype_to_howto): Likewise.
600 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
601 * elf32-wasm32.c (elf32_wasm32_rtype_to_howto)
602 (elf32_wasm32_info_to_howto_rela): Likewise.
603 * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise.
604 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
605 * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise.
606 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
607 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
608 * elf64-gen.c (elf_generic_info_to_howto)
609 (elf_generic_info_to_howto_rel): Likewise.
610 * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise.
611 * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise.
612 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
613 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
614 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
615 * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto):
617 * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise.
618 * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
620 * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise.
621 * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise.
622 * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise.
623 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
624 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise.
625 * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise.
626 * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype.
627 * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype.
628 * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype.
629 * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel):
632 2018-02-26 Jim Wilson <jimw@sifive.com>
633 Stephan Schreiber <info@fs-driver.org>
636 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl
637 call, set changed_contents and changed_relocs. Likewise after
638 successful ia64_elf_relax_br call.
640 2018-02-26 Alan Modra <amodra@gmail.com>
642 * elf.c (assign_file_positions_except_relocs): Don't segfault
643 when actual number of phdrs is less than allocated. Delete
644 outdated comment. Formatting.
646 2018-02-26 Alan Modra <amodra@gmail.com>
648 * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c,
649 * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c,
650 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c,
651 * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c,
652 * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c,
653 * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c,
654 * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c,
655 * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c,
656 * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c,
657 * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize
658 error/warning messages.
660 2018-02-26 Alan Modra <amodra@gmail.com>
662 * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c,
663 * syms.c: Standardize error/warning messages.
665 2018-02-26 Alan Modra <amodra@gmail.com>
667 * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c,
668 * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c,
669 * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c,
670 * peXXigen.c, * peicode.h: Standardize error/warning messages.
672 2018-02-26 Alan Modra <amodra@gmail.com>
674 * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages.
676 2018-02-26 Alan Modra <amodra@gmail.com>
678 * elfxx-mips.c: Standardize error/warning messages.
680 2018-02-26 Alan Modra <amodra@gmail.com>
682 * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c,
683 * elflink.c: Standardize error/warning messages. Replace use of
684 linker callback einfo with _bfd_error_handler when possible.
686 2018-02-26 Alan Modra <amodra@gmail.com>
688 * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c,
689 * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
690 * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c,
691 * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c,
692 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
693 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
694 * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c,
695 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
696 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
697 * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
698 * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
699 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c,
700 * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c,
701 * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
702 * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
703 * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c,
704 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
705 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
706 * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
707 * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h,
708 * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize
709 unrecognized/unsupported reloc message.
711 2018-02-26 Alan Modra <amodra@gmail.com>
713 * elf32-ppc.c: Standardize error/warning messages. Use
714 _bfd_error_handler rather than einfo when einfo features not used.
715 * elf64-ppc.c: Likewise.
717 2018-02-23 Alan Modra <amodra@gmail.com>
720 * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO
721 segment if no matching LOAD segment.
723 2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
725 * elf32-nds32.h: Define mask for ict_model.
727 2018-02-20 Jason Duerstock <jason.duerstock@gmail.com>
729 * elfnn-ia64.c (elf_backend_can_gc_sections): Enable.
731 2018-02-19 Maciej W. Rozycki <macro@mips.com>
734 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
736 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
737 .reginfo section has wrong size.
739 2018-02-19 Maciej W. Rozycki <macro@mips.com>
741 * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set
742 SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and
743 `.MIPS.abiflags' sections.
744 (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo'
747 2018-02-19 Maciej W. Rozycki <macro@mips.com>
749 * section.c (SEC_FIXED_SIZE): New macro.
750 * bfd-in2.h: Regenerate.
752 2018-02-19 Maciej W. Rozycki <macro@mips.com>
754 * section.c (SEC_HAS_GOT_REF): Remove macro.
755 * bfd-in2.h: Regenerate.
757 2018-02-19 Alan Modra <amodra@gmail.com>
759 * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
761 * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise.
762 * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise.
763 (_bfd_riscv_relax_pc): Likewise and fix typos.
764 * libbfd-in.h (_bfd_error_handler): Add attribute printf.
765 * libbfd.h: Regenerate.
767 2018-02-19 Alan Modra <amodra@gmail.com>
769 * dwarf2.c (read_section): Don't use 'll' format modifier.
770 (find_abstract_instance): Likewise.
771 * elfcore.h (elf_core_file_p): Likewise.
773 2018-02-19 Alan Modra <amodra@gmail.com>
775 * bfd-in.h: Include inttypes.h or if not available define
776 PRId64, PRIu64 and PRIx64.
777 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L
778 modifier to print bfd_vma.
779 * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c,
780 * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c,
781 * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c,
782 * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c,
783 * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c,
784 * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c,
785 * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
786 * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c,
787 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c,
788 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
789 * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c,
790 * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c,
791 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c,
792 * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c,
793 * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64,
794 and cast input to uint64_t, and similarly for Ld and Lu.
795 * bfd-in2.h: Regenerate.
797 2018-02-19 Alan Modra <amodra@gmail.com>
799 * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c,
800 * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c,
801 * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c,
802 * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c,
803 * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c,
804 * reloc.c: Replace use of %R and %T in format strings passed to
805 einfo and friends by %pR and %pT.
807 2018-02-19 Alan Modra <amodra@gmail.com>
809 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place
811 * aout-adobe.c: Update all messages using %A and %B.
812 * aout-cris.c: Likewise.
814 * archive.c: Likewise.
815 * binary.c: Likewise.
817 * coff-alpha.c: Likewise.
818 * coff-arm.c: Likewise.
819 * coff-i860.c: Likewise.
820 * coff-mcore.c: Likewise.
821 * coff-ppc.c: Likewise.
822 * coff-rs6000.c: Likewise.
823 * coff-sh.c: Likewise.
824 * coff-tic4x.c: Likewise.
825 * coff-tic54x.c: Likewise.
826 * coff-tic80.c: Likewise.
827 * coff64-rs6000.c: Likewise.
828 * coffcode.h: Likewise.
829 * coffgen.c: Likewise.
830 * cofflink.c: Likewise.
831 * coffswap.h: Likewise.
832 * compress.c: Likewise.
833 * cpu-arm.c: Likewise.
835 * elf-attrs.c: Likewise.
836 * elf-eh-frame.c: Likewise.
837 * elf-ifunc.c: Likewise.
838 * elf-m10300.c: Likewise.
839 * elf-properties.c: Likewise.
840 * elf-s390-common.c: Likewise.
842 * elf32-arc.c: Likewise.
843 * elf32-arm.c: Likewise.
844 * elf32-avr.c: Likewise.
845 * elf32-bfin.c: Likewise.
846 * elf32-cr16.c: Likewise.
847 * elf32-cr16c.c: Likewise.
848 * elf32-cris.c: Likewise.
849 * elf32-crx.c: Likewise.
850 * elf32-d10v.c: Likewise.
851 * elf32-d30v.c: Likewise.
852 * elf32-epiphany.c: Likewise.
853 * elf32-fr30.c: Likewise.
854 * elf32-frv.c: Likewise.
855 * elf32-gen.c: Likewise.
856 * elf32-hppa.c: Likewise.
857 * elf32-i370.c: Likewise.
858 * elf32-i386.c: Likewise.
859 * elf32-i960.c: Likewise.
860 * elf32-ip2k.c: Likewise.
861 * elf32-iq2000.c: Likewise.
862 * elf32-lm32.c: Likewise.
863 * elf32-m32c.c: Likewise.
864 * elf32-m32r.c: Likewise.
865 * elf32-m68hc11.c: Likewise.
866 * elf32-m68hc12.c: Likewise.
867 * elf32-m68hc1x.c: Likewise.
868 * elf32-m68k.c: Likewise.
869 * elf32-mcore.c: Likewise.
870 * elf32-mep.c: Likewise.
871 * elf32-metag.c: Likewise.
872 * elf32-microblaze.c: Likewise.
873 * elf32-moxie.c: Likewise.
874 * elf32-msp430.c: Likewise.
875 * elf32-mt.c: Likewise.
876 * elf32-nds32.c: Likewise.
877 * elf32-nios2.c: Likewise.
878 * elf32-or1k.c: Likewise.
879 * elf32-pj.c: Likewise.
880 * elf32-ppc.c: Likewise.
881 * elf32-rl78.c: Likewise.
882 * elf32-rx.c: Likewise.
883 * elf32-s390.c: Likewise.
884 * elf32-score.c: Likewise.
885 * elf32-score7.c: Likewise.
886 * elf32-sh-symbian.c: Likewise.
887 * elf32-sh.c: Likewise.
888 * elf32-sh64.c: Likewise.
889 * elf32-sparc.c: Likewise.
890 * elf32-spu.c: Likewise.
891 * elf32-tic6x.c: Likewise.
892 * elf32-tilepro.c: Likewise.
893 * elf32-v850.c: Likewise.
894 * elf32-vax.c: Likewise.
895 * elf32-visium.c: Likewise.
896 * elf32-wasm32.c: Likewise.
897 * elf32-xgate.c: Likewise.
898 * elf32-xtensa.c: Likewise.
899 * elf64-alpha.c: Likewise.
900 * elf64-gen.c: Likewise.
901 * elf64-hppa.c: Likewise.
902 * elf64-ia64-vms.c: Likewise.
903 * elf64-mmix.c: Likewise.
904 * elf64-ppc.c: Likewise.
905 * elf64-s390.c: Likewise.
906 * elf64-sh64.c: Likewise.
907 * elf64-sparc.c: Likewise.
908 * elf64-x86-64.c: Likewise.
909 * elfcode.h: Likewise.
910 * elfcore.h: Likewise.
911 * elflink.c: Likewise.
912 * elfnn-aarch64.c: Likewise.
913 * elfnn-ia64.c: Likewise.
914 * elfnn-riscv.c: Likewise.
915 * elfxx-mips.c: Likewise.
916 * elfxx-sparc.c: Likewise.
917 * elfxx-tilegx.c: Likewise.
918 * elfxx-x86.c: Likewise.
919 * hpux-core.c: Likewise.
922 * libbfd.c: Likewise.
923 * linker.c: Likewise.
924 * mach-o.c: Likewise.
929 * pe-mips.c: Likewise.
930 * peXXigen.c: Likewise.
931 * peicode.h: Likewise.
933 * rs6000-core.c: Likewise.
936 * vms-alpha.c: Likewise.
937 * xcofflink.c: Likewise.
939 2018-02-19 Alan Modra <amodra@gmail.com>
942 * elf.c (IS_TBSS): Define.
943 (_bfd_elf_map_sections_to_segments): Use IS_TBSS.
944 (assign_file_positions_for_non_load_sections): Revert last change.
945 Properly calculate load segment limits to compare against relro limits.
947 2018-02-17 Alan Modra <amodra@gmail.com>
950 * elf.c (assign_file_positions_for_non_load_sections): Ignore
951 degenerate zero size PT_LOAD segments when finding one overlapping
952 the PT_GNU_RELRO segment.
954 2018-02-16 Alan Modra <amodra@gmail.com>
956 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false.
957 (_bfd_bool_bfd_true): Rename from bfd_true.
958 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr.
959 (_bfd_int_bfd_0): Rename from bfd_0.
960 (_bfd_uint_bfd_0): Rename from bfd_0u.
961 (_bfd_long_bfd_0): Rename from bfd_0l.
962 (_bfd_long_bfd_n1_error): Rename from _bfd_n1.
963 (_bfd_void_bfd): Rename from bfd_void.
964 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false),
965 (_bfd_bool_bfd_link_false_error),
966 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true),
967 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true),
968 (_bfd_bool_bfd_asection_bfd_asection_true),
969 (_bfd_bool_bfd_asymbol_bfd_asymbol_true),
970 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions.
971 * archive.c (_bfd_noarchive_get_elt_at_index),
972 (_bfd_noarchive_openr_next_archived_file),
973 (_bfd_noarchive_construct_extended_name_table),
974 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname),
975 (_bfd_noarchive_write_armap): New functions.
976 * archures.c (_bfd_nowrite_set_arch_mach): New function.
977 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in),
978 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in),
979 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out),
980 (alpha_ecoff_swap_coff_lineno_out),
981 (alpha_ecoff_swap_coff_reloc_out): New functions.
982 * coff-mips.c (mips_ecoff_swap_coff_aux_in),
983 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in),
984 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out),
985 (mips_ecoff_swap_coff_lineno_out),
986 (mips_ecoff_swap_coff_reloc_out): New functions.
987 * coffcode.h (coff_set_alignment_hook): Replace define with
989 (symname_in_debug_hook): Likewise.
990 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function.
991 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0.
992 * elf.c (assign_file_positions_except_relocs): Test
993 elf_backend_allow_non_load_phdr for NULL.
994 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from
995 _bfd_elf_link_omit_section_dynsym. Update uses.
996 (_bfd_elf_omit_section_dynsym_all): New function.
997 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete.
998 (_bfd_elf_omit_section_dynsym_default): Declare.
999 (_bfd_elf_omit_section_dynsym_all): Declare.
1000 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section),
1001 (_bfd_nolink_bfd_get_relocated_section_contents),
1002 (_bfd_nolink_bfd_lookup_section_flags),
1003 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group),
1004 (_bfd_nolink_bfd_link_hash_table_create),
1005 (_bfd_nolink_bfd_link_just_syms),
1006 (_bfd_nolink_bfd_copy_link_hash_symbol_type),
1007 (_bfd_nolink_bfd_link_split_section),
1008 (_bfd_nolink_section_already_linked),
1009 (_bfd_nolink_bfd_define_common_symbol),
1010 (_bfd_nolink_bfd_define_start_stop): New functions.
1011 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup),
1012 (_bfd_norelocs_bfd_reloc_name_lookup),
1013 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions.
1014 * section.c (_bfd_nowrite_set_section_contents): New function.
1015 * syms.c (_bfd_nosymbols_canonicalize_symtab),
1016 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info),
1017 (_bfd_nosymbols_get_symbol_version_string),
1018 (_bfd_nosymbols_bfd_is_local_label_name),
1019 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line),
1020 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info),
1021 (_bfd_nosymbols_bfd_make_debug_symbol),
1022 ( _bfd_nosymbols_read_minisymbols),
1023 ( _bfd_nosymbols_minisymbol_to_symbol),
1024 (_bfd_nodynamic_get_synthetic_symtab): New functions.
1025 * libbfd-in.h: Declare new functions. Update existing defines,
1027 * aix386-core.c: Update to use new hooks. Formatting.
1028 * aout-adobe.c: Likewise.
1029 * aout-arm.c: Likewise.
1030 * aout-target.h: Likewise.
1031 * aout-tic30.c: Likewise.
1032 * aoutf1.h: Likewise.
1033 * binary.c: Likewise.
1035 * cisco-core.c: Likewise.
1036 * coff-alpha.c: Likewise.
1037 * coff-i386.c: Likewise.
1038 * coff-i860.c: Likewise.
1039 * coff-i960.c: Likewise.
1040 * coff-ia64.c: Likewise.
1041 * coff-mips.c: Likewise.
1042 * coff-ppc.c: Likewise.
1043 * coff-rs6000.c: Likewise.
1044 * coff-sh.c: Likewise.
1045 * coff-tic30.c: Likewise.
1046 * coff-tic54x.c: Likewise.
1047 * coff-x86_64.c: Likewise.
1048 * coff64-rs6000.c: Likewise.
1049 * coffcode.h: Likewise.
1050 * elf-m10300.c: Likewise.
1051 * elf32-cr16.c: Likewise.
1052 * elf32-lm32.c: Likewise.
1053 * elf32-m32r.c: Likewise.
1054 * elf32-metag.c: Likewise.
1055 * elf32-score.c: Likewise.
1056 * elf32-score7.c: Likewise.
1057 * elf32-tilepro.c: Likewise.
1058 * elf32-xstormy16.c: Likewise.
1059 * elf32-xtensa.c: Likewise.
1060 * elf64-alpha.c: Likewise.
1061 * elf64-hppa.c: Likewise.
1062 * elf64-ia64-vms.c: Likewise.
1063 * elf64-mmix.c: Likewise.
1064 * elf64-sh64.c: Likewise.
1065 * elfnn-ia64.c: Likewise.
1066 * elfxx-sparc.c: Likewise.
1067 * elfxx-target.h: Likewise.
1068 * elfxx-tilegx.c: Likewise.
1069 * elfxx-x86.h: Likewise.
1070 * hp300hpux.c: Likewise.
1071 * hppabsd-core.c: Likewise.
1072 * hpux-core.c: Likewise.
1073 * i386msdos.c: Likewise.
1074 * i386os9k.c: Likewise.
1077 * irix-core.c: Likewise.
1078 * libaout.h: Likewise.
1079 * libecoff.h: Likewise.
1080 * mach-o-target.c: Likewise.
1081 * mach-o.c: Likewise.
1082 * mipsbsd.c: Likewise.
1084 * netbsd-core.c: Likewise.
1085 * nlm-target.h: Likewise.
1086 * oasys.c: Likewise.
1087 * osf-core.c: Likewise.
1088 * pdp11.c: Likewise.
1089 * pe-mips.c: Likewise.
1090 * pe-x86_64.c: Likewise.
1092 * plugin.c: Likewise.
1093 * ppcboot.c: Likewise.
1094 * ptrace-core.c: Likewise.
1095 * sco5-core.c: Likewise.
1097 * sparclynx.c: Likewise.
1099 * tekhex.c: Likewise.
1100 * trad-core.c: Likewise.
1101 * verilog.c: Likewise.
1102 * versados.c: Likewise.
1103 * vms-alpha.c: Likewise.
1104 * vms-lib.c: Likewise.
1105 * wasm-module.c: Likewise.
1107 * libbfd.h: Regenerate.
1109 2018-02-15 Jim Wilson <jimw@sifive.com>
1111 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
1112 symbols whose section address is zero.
1114 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous
1115 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for
1116 bfd_reloc_dangerous. Use einfo instead of warning callback for errors.
1117 Add %X%P to error messages.
1119 2018-02-15 Eric Botcazou <ebotcazou@adacore.com>
1122 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
1123 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
1124 and assert that the result of the call is not NULL.
1126 2018-02-14 Nick Clifton <nickc@redhat.com>
1129 Revert previous delta. Add extra casts to avoid compile time
1131 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra
1132 cast to avoid warning from gcc v8 compiler.
1133 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
1134 (_bfd_generic_bfd_set_private_flags): Likewise.
1135 (_bfd_generic_bfd_copy_private_section_data): Likewise.
1136 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
1137 (_bfd_generic_bfd_copy_private_header_data): Likewise.
1138 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
1139 (_bfd_noarchive_construct_extended_name_table): Likewise.
1140 (_bfd_noarchive_truncate_arname): Likewise.
1141 (_bfd_noarchive_write_ar_hdr): Likewise.
1142 (_bfd_noarchive_get_elt_at_index): Likewise.
1143 (_bfd_nosymbols_canonicalize_symtab): Likewise.
1144 (_bfd_nosymbols_print_symbol): Likewise.
1145 (_bfd_nosymbols_get_symbol_info): Likewise.
1146 (_bfd_nosymbols_get_symbol_version_string): Likewise.
1147 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
1148 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
1149 (_bfd_nosymbols_get_lineno): Likewise.
1150 (_bfd_nosymbols_find_nearest_line): Likewise.
1151 (_bfd_nosymbols_find_line): Likewise.
1152 (_bfd_nosymbols_find_inliner_info): Likewise.
1153 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
1154 (_bfd_nosymbols_read_minisymbols): Likewise.
1155 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
1156 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
1157 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
1158 (_bfd_nowrite_set_arch_mach): Likewise.
1159 (_bfd_nowrite_set_section_contents): Likewise.
1160 (_bfd_nolink_sizeof_headers): Likewise.
1161 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
1162 (_bfd_nolink_bfd_relax_section): Likewise.
1163 (_bfd_nolink_bfd_gc_sections): Likewise.
1164 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
1165 (_bfd_nolink_bfd_merge_sections): Likewise.
1166 (_bfd_nolink_bfd_is_group_section): Likewise.
1167 (_bfd_nolink_bfd_discard_group): Likewise.
1168 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
1169 (_bfd_nolink_bfd_link_add_symbols): Likewise.
1170 (_bfd_nolink_bfd_link_just_syms): Likewise.
1171 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
1172 (_bfd_nolink_bfd_final_link): Likewise.
1173 (_bfd_nolink_bfd_link_split_section): Likewise.
1174 (_bfd_nolink_section_already_linked): Likewise.
1175 (_bfd_nolink_bfd_define_common_symbol): Likewise.
1176 (_bfd_nolink_bfd_define_start_stop): Likewise.
1177 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
1178 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
1179 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
1180 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
1181 * libbfd.c (bfd_false_any): Delete.
1182 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete.
1183 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete.
1184 * libbfd.h (extern): Regenerate
1185 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra
1186 cast to avoid warning from gcc v8 compiler.
1187 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
1188 * binary.c (binary_get_symbol_info): Likewise.
1189 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
1190 * coff-mips.c (mips_ecoff_backend_data): Likewise.
1191 * coffcode.h (coff_set_alignment_hook): Likewise.
1192 (symname_in_debug_hook): Likewise.
1193 (bfd_coff_backend_data bigobj_swap_table): Likewise.
1194 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
1195 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
1196 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
1197 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
1198 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
1199 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
1200 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
1201 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
1202 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
1203 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
1204 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
1205 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
1206 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
1207 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
1208 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
1209 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
1210 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
1211 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
1212 (bfd_elfNN_bfd_set_private_flags): Likewise.
1213 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
1214 (elf_backend_init_index_section): Likewise.
1215 (elf_backend_allow_non_load_phdr): Likewise.
1216 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
1217 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
1218 * ieee.c (ieee_construct_extended_name_table): Likewise.
1219 (ieee_write_armap): Likewise.
1220 (ieee_write_ar_hdr): Likewise.
1221 (ieee_bfd_is_target_special_symbol): Likewise.
1222 * ihex.c (ihex_canonicalize_symtab): Likewise.
1223 (ihex_bfd_is_target_special_symbol): Likewise.
1224 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
1225 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
1226 (_bfd_ecoff_set_alignment_hook): Likewise.
1227 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
1228 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
1229 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
1230 * oasys.c (oasys_construct_extended_name_table): Likewise.
1231 (oasys_write_armap): Likewise.
1232 (oasys_write_ar_hdr): Likewise.
1233 (oasys_bfd_is_target_special_symbol): Likewise.
1234 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
1235 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
1236 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
1237 * som.c (som_bfd_is_target_special_symbol): Likewise.
1238 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
1239 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
1240 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
1241 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
1242 (versados_bfd_reloc_name_lookup): Likewise.
1243 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
1244 (vms_bfd_define_start_stop): Likewise.
1245 (alpha_vms_bfd_is_target_special_symbol): Likewise.
1246 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
1247 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
1249 2018-02-14 H.J. Lu <hongjiu.lu@intel.com>
1252 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non
1253 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
1254 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for
1255 R_X86_64_PC32 reloc against dynamic function in data section.
1256 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
1257 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc
1258 against dynamic function in data section.
1259 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as
1260 function address only if pcrel_plt is true.
1261 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt.
1262 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for
1263 PC-relative PLT. If PLT is PC-relative, don't generate dynamic
1264 PC-relative relocation against a function definition in data
1265 secton in PIE. Remove the obsolete comments.
1266 (elf_x86_link_hash_table): Add pcrel_plt.
1268 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
1270 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
1271 instead of bfd_link_pic, for building shared library.
1273 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
1276 * elf64-x86-64.c (is_32bit_relative_branch): Removed.
1277 (elf_x86_64_relocate_section): Check PIC relocations in PIE.
1278 Remove is_32bit_relative_branch usage. Disallow PC32 reloc
1279 against protected function in shared object.
1281 2018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
1284 * po/ru.po: Fix typo in Russian translation.
1286 2018-02-13 Maciej W. Rozycki <macro@mips.com>
1288 * wasm-module.c (wasm_scan_name_function_section): Rename
1289 `index' local variable to `idx'.
1291 2018-02-13 Nick Clifton <nickc@redhat.com>
1294 Fix compile time warnings generated by gcc version 8.
1295 * libbfd-in.h: Remove extraneous text from prototypes.
1296 Add prototypes for bfd_false_any, bfd_true_any,
1297 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any,
1298 bfd_n1_any, bfd_void_any.
1299 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy
1301 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
1302 (_bfd_generic_bfd_set_private_flags): Likewise.
1303 (_bfd_generic_bfd_copy_private_section_data): Likewise.
1304 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
1305 (_bfd_generic_bfd_copy_private_header_data): Likewise.
1306 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
1307 (_bfd_noarchive_construct_extended_name_table): Likewise.
1308 (_bfd_noarchive_truncate_arname): Likewise.
1309 (_bfd_noarchive_write_ar_hdr): Likewise.
1310 (_bfd_noarchive_get_elt_at_index): Likewise.
1311 (_bfd_nosymbols_canonicalize_symtab): Likewise.
1312 (_bfd_nosymbols_print_symbol): Likewise.
1313 (_bfd_nosymbols_get_symbol_info): Likewise.
1314 (_bfd_nosymbols_get_symbol_version_string): Likewise.
1315 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
1316 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
1317 (_bfd_nosymbols_get_lineno): Likewise.
1318 (_bfd_nosymbols_find_nearest_line): Likewise.
1319 (_bfd_nosymbols_find_line): Likewise.
1320 (_bfd_nosymbols_find_inliner_info): Likewise.
1321 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
1322 (_bfd_nosymbols_read_minisymbols): Likewise.
1323 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
1324 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
1325 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
1326 (_bfd_nowrite_set_arch_mach): Likewise.
1327 (_bfd_nowrite_set_section_contents): Likewise.
1328 (_bfd_nolink_sizeof_headers): Likewise.
1329 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
1330 (_bfd_nolink_bfd_relax_section): Likewise.
1331 (_bfd_nolink_bfd_gc_sections): Likewise.
1332 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
1333 (_bfd_nolink_bfd_merge_sections): Likewise.
1334 (_bfd_nolink_bfd_is_group_section): Likewise.
1335 (_bfd_nolink_bfd_discard_group): Likewise.
1336 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
1337 (_bfd_nolink_bfd_link_add_symbols): Likewise.
1338 (_bfd_nolink_bfd_link_just_syms): Likewise.
1339 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
1340 (_bfd_nolink_bfd_final_link): Likewise.
1341 (_bfd_nolink_bfd_link_split_section): Likewise.
1342 (_bfd_nolink_section_already_linked): Likewise.
1343 (_bfd_nolink_bfd_define_common_symbol): Likewise.
1344 (_bfd_nolink_bfd_define_start_stop): Likewise.
1345 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
1346 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
1347 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
1348 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
1349 * libbfd.c (bfd_false_any): New function. Like bfd_false but
1350 accepts one or more arguments.
1351 (bfd_true_any): Likewise.
1352 (bfd_nullvoidptr_any): Likewise.
1353 (bfd_0_any): Likewise.
1354 (bfd_0u_any): Likewise.
1355 (bfd_0l_any): Likewise.
1356 (_bfd_n1_any): Likewise.
1357 (bfd_void_any): Likewise.
1358 * libbfd.h (extern): Regenerate
1359 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg
1360 based dummy function.
1361 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
1362 * binary.c (binary_get_symbol_info): Likewise.
1363 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
1364 * coff-mips.c (mips_ecoff_backend_data): Likewise.
1365 * coffcode.h (coff_set_alignment_hook): Likewise.
1366 (symname_in_debug_hook): Likewise.
1367 (bfd_coff_backend_data bigobj_swap_table): Likewise.
1368 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
1369 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
1370 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
1371 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
1372 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
1373 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
1374 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
1375 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
1376 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
1377 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
1378 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
1379 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
1380 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
1381 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
1382 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
1383 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
1384 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
1385 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
1386 (bfd_elfNN_bfd_set_private_flags): Likewise.
1387 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
1388 (elf_backend_init_index_section): Likewise.
1389 (elf_backend_allow_non_load_phdr): Likewise.
1390 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
1391 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
1392 * ieee.c (ieee_construct_extended_name_table): Likewise.
1393 (ieee_write_armap): Likewise.
1394 (ieee_write_ar_hdr): Likewise.
1395 (ieee_bfd_is_target_special_symbol): Likewise.
1396 * ihex.c (ihex_canonicalize_symtab): Likewise.
1397 (ihex_bfd_is_target_special_symbol): Likewise.
1398 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
1399 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
1400 (_bfd_ecoff_set_alignment_hook): Likewise.
1401 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
1402 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
1403 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
1404 * oasys.c (oasys_construct_extended_name_table): Likewise.
1405 (oasys_write_armap): Likewise.
1406 (oasys_write_ar_hdr): Likewise.
1407 (oasys_bfd_is_target_special_symbol): Likewise.
1408 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
1409 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
1410 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
1411 * som.c (som_bfd_is_target_special_symbol): Likewise.
1412 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
1413 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
1414 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
1415 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
1416 (versados_bfd_reloc_name_lookup): Likewise.
1417 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
1418 (vms_bfd_define_start_stop): Likewise.
1419 (alpha_vms_bfd_is_target_special_symbol): Likewise.
1420 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
1421 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
1422 * elf32-arc.c (get_replace_function): Assign replacement function
1424 * elf32-i370.c (i370_noop): Update prototype.
1426 2018-02-13 Alan Modra <amodra@gmail.com>
1429 * elf.c (_bfd_elf_fixup_group_sections): Account for removed
1430 relocation sections. If size reduces to just the flag word,
1431 remove that too and mark with SEC_EXCLUDE.
1432 * elflink.c (bfd_elf_final_link): Strip empty group sections.
1434 2018-02-13 Alan Modra <amodra@gmail.com>
1437 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
1440 2018-02-12 Zebediah Figura <z.figura12@gmail.com>
1442 * i386msdos.c (msdos_mkobject); New function.
1443 (msdos_object_p): New function.
1444 (i386_msdos_vec): Use msdos_object_p as the check_format
1446 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
1447 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
1449 * peXXigen.c: Likewise.
1450 * coff-ia64.c: Likewise.
1452 2018-02-12 Nick Clifton <nickc@redhat.com>
1454 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
1456 * elf32-arc.c (elf_arc_relocate_section): Likewise.
1458 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
1460 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
1461 (sparc_elf_append_rela): Assert that there is enough room in section.
1462 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
1463 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
1464 (allocate_dynrelocs): Remove outdated comments and reorder conditions.
1465 For a symbol subject to a GOT relocation, reserve a slot in the
1466 relocation section if the symbol isn't dynamic and we are in PIC mode.
1467 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
1468 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
1469 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
1470 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion.
1471 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
1472 resolved_to_zero. Do not generate a dynamic GOT relocation for an
1473 undefined weak symbol with non-default visibility. Remove superfluous
1474 'else' and fix formatting.
1476 2018-02-09 H.J. Lu <hongjiu.lu@intel.com>
1478 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
1480 (i386_elf32_sol2_vec): Don't declare.
1481 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
1482 Don't set need_global_offset_table.
1483 (elf_i386_solaris_arch_bed): New.
1484 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
1486 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
1487 target_os != is_nacl instead of target_os == is_normal.
1488 (x86_64_elf64_sol2_vec): Don't declare.
1489 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
1490 is_nacl instead of target_os == is_normal. Don't set
1491 need_global_offset_table.
1492 (elf_x86_64_solaris_arch_bed): New.
1493 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
1495 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
1496 _GLOBAL_OFFSET_TABLE_ for Solaris.
1497 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
1498 need_global_offset_table.
1499 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
1500 (elf_x86_link_hash_table): Remove need_global_offset_table.
1501 (elf_x86_init_table): Likewise.
1503 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
1505 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
1507 (i386_elf32_sol2_vec): Declared.
1508 (elf_i386_link_setup_gnu_properties): Set
1509 need_global_offset_table with info->output_bfd->xvec.
1510 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
1512 (x86_64_elf64_sol2_vec): Declared.
1513 (elf_x86_64_link_setup_gnu_properties): Set
1514 need_global_offset_table with info->output_bfd->xvec.
1516 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
1518 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
1520 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
1522 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
1524 (elf_x86_64_link_setup_gnu_properties): Set
1525 need_global_offset_table for Solaris.
1526 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
1527 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
1528 (_bfd_x86_elf_link_setup_gnu_properties): Copy
1529 need_global_offset_table.
1530 * elfxx-x86.h (elf_x86_link_hash_table): Add
1531 need_global_offset_table.
1532 (elf_x86_init_table): Likewise.
1534 2018-02-08 Jim Wilson <jimw@sifive.com>
1536 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
1539 2018-02-08 Nick Clifton <nickc@redhat.com>
1542 * elf.c (elf_parse_notes): Reject notes with excessuively large
1545 2018-02-07 Alan Modra <amodra@gmail.com>
1547 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
1548 * elf32-ppc.c: Remove speculation barrier support.
1549 * elf32-ppc.h: Likewise.
1550 * elf64-ppc.c: Likewise.
1551 * elf64-ppc.h: Likewise.
1553 2018-02-06 Jim Wilson <jimw@sifive.com>
1555 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
1556 callback to report an error.
1558 2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
1561 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
1562 into call to !bfd_link_executable and tidy up.
1563 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
1564 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
1565 !bfd_link_executable.
1566 <R_SPARC_TLS_IE_HI22>: Likewise.
1567 <GOT relocations>: Remove useless code, tidy and merge related blocks.
1568 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
1569 !bfd_link_executable.
1570 <R_SPARC_WPLT30>: Tidy up.
1571 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
1572 !bfd_link_executable.
1573 (allocate_dynrelocs): Likewise.
1574 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
1575 <R_SPARC_TLS_GD_HI22>: Merge into...
1576 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
1577 sparc_elf_tls_transition and remove redundant code.
1578 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
1579 !bfd_link_executable.
1580 <R_SPARC_TLS_LDO_HIX22>: Likewise.
1581 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
1582 <R_SPARC_TLS_LDM_CALL>: Likewise.
1583 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
1584 <R_SPARC_TLS_GD_ADD>: Likewise.
1585 <R_SPARC_TLS_LDM_ADD>: Likewise.
1586 <R_SPARC_TLS_LDO_ADD>: Likewise.
1587 <R_SPARC_TLS_IE_LD>: Likewise.
1589 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
1592 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
1593 functions failed to find the function name, try the generic elf
1594 find function instead.
1596 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
1598 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
1599 'memcpy' instead of 'strncpy' when writing the magic number.
1601 2018-02-06 Nick Clifton <nickc@redhat.com>
1604 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
1605 section before attempting to read it in.
1606 (bfd_get_alt_debug_link_info): Likewise.
1608 2018-02-06 Paul Carroll <pcarroll@codesourcery.com>
1610 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
1611 line information in addition to name, if they can be found.
1613 2018-02-05 Renlin Li <renlin.li@arm.com>
1616 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
1617 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
1618 check for writeable section as well.
1620 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
1623 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
1624 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
1625 undefined weak symbol to 0.
1626 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
1627 if _GLOBAL_OFFSET_TABLE_ is referenced.
1628 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
1629 got_referenced instead of ref_regular_nonweak. Remove the
1630 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
1631 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
1633 2018-02-05 Maciej W. Rozycki <macro@mips.com>
1635 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
1636 initialize `hi_reloc'.
1638 2018-02-05 Maciej W. Rozycki <macro@mips.com>
1640 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
1641 SHT_MIPS_REGINFO sections don't assert the correct size and
1642 report an error instead.
1644 2018-02-05 Maciej W. Rozycki <macro@mips.com>
1646 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
1647 status from `->elf_backend_section_processing'.
1649 2018-02-02 Jim Wilson <jimw@sifive.com>
1652 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
1653 If link_info->wrap_hash, check for a duplicate symbol and ignore.
1654 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
1655 Pass new argument to riscv_relax_delete_bytes.
1656 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
1657 ATTRIBUTE_UNUSED from link_info parameter.
1659 2018-02-02 Alan Modra <amodra@gmail.com>
1661 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
1662 emitted for toc sequence optimization. Set and use "howto" later.
1664 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
1666 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
1667 arithmetic on NULL pointer.
1668 * elflink.c (_bfd_elf_archive_symbol_lookup,
1669 elf_link_add_archive_symbols): Likewise.
1671 2018-01-31 Michael Matz <matz@suse.de>
1673 * elflink.c (bfd_elf_define_start_stop): Fix check of
1676 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
1679 * elflink.c (bfd_elf_define_start_stop): Check if __start and
1680 __stop symbols are referenced by shared objects.
1682 2018-01-30 Alan Modra <amodra@gmail.com>
1685 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
1686 segment when demand paged with lma on the same page. Test this
1687 before load/non-load, executable/non-executable,
1688 writable/non-writable tests and simplify. Delete bogus relro
1689 condition in writable/non-writable test. Delete outdated
1690 comment. Formatting.
1692 2018-01-30 Alan Modra <amodra@gmail.com>
1694 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
1697 2018-01-29 Alan Modra <amodra@gmail.com>
1700 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
1701 range before converting to a symbol table pointer.
1703 2018-01-27 Nick Clifton <nickc@redhat.com>
1705 * po/ru.po: Updated Russian translation.
1707 2018-01-26 Alan Modra <amodra@gmail.com>
1709 * elflink.c (bfd_elf_define_start_stop): Override symbols when
1710 they are defined dynamically.
1712 2018-01-26 Alan Modra <amodra@gmail.com>
1714 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
1715 .branch_lt changes size.
1717 2018-01-25 Alan Modra <amodra@gmail.com>
1720 * elfcode.h (elf_object_p): Avoid integer overflow.
1722 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
1725 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
1726 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
1729 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
1732 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
1733 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
1734 bfd_link_executable for TLS check.
1735 (_bfd_sparc_elf_check_relocs): Likewise.
1736 (allocate_dynrelocs): Likewise.
1737 (_bfd_sparc_elf_relocate_section): Likewise.
1739 2018-01-24 Renlin Li <renlin.li@arm.com>
1741 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
1742 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
1743 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
1744 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
1745 BFD_RELOC_AARCH64_MOVW_PREL_G3.
1746 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
1747 (_bfd_aarch64_elf_resolve_relocation): Likewise.
1749 2018-01-24 Renlin Li <renlin.li@arm.com>
1751 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
1752 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
1753 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
1754 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
1755 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
1756 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
1757 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
1758 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
1759 BFD_RELOC_AARCH64_MOVW_PREL_G3.
1760 * bfd-in2.h: Regenerate.
1761 * libbfd.h: Regenerate.
1763 2018-01-23 Maciej W. Rozycki <macro@mips.com>
1765 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
1766 `mips_elf32_section_processing' comment reference.
1768 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
1771 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
1772 versioned __tls_get_addr symbol.
1774 2018-01-19 Nick Clifton <nickc@redhat.com>
1776 * po/fr.po: Updated French translation.
1778 2018-01-18 Alan Modra <amodra@gmail.com>
1780 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
1781 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
1782 (ppc64_elf_build_stubs): Likewise.
1784 2018-01-17 Nick Clifton <nickc@redhat.com>
1786 * po/ru.po: Updated Russian translation.
1787 * po/uk/po: Updated Ukranian translation.
1789 2018-01-17 Alan Modra <amodra@gmail.com>
1791 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
1793 2018-01-17 Alan Modra <amodra@gmail.com>
1795 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
1796 (CRSETEQ, BEQCTRM): Define.
1797 (is_nonpic_glink_stub): Don't check bctr.
1798 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
1799 (ppc_elf_relax_section): Size speculation barrier.
1800 (output_bctr): New function.
1801 (write_glink_stub): Use output_bctr.
1802 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
1803 (ppc_elf_finish_dynamic_symbol): Likewise.
1804 (ppc_elf_finish_dynamic_sections): Use output_bctr.
1805 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
1806 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
1807 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
1808 (size_global_entry_stubs): Handle speculation barrier sizing.
1809 (plt_stub_size): Likewise.
1810 (output_bctr): New function.
1811 (build_plt_stub, build_tls_get_addr_stub): Output speculation
1813 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
1814 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
1815 (build_global_entry_stubs): Output speculation barrier.
1816 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
1817 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
1819 2018-01-17 Alan Modra <amodra@gmail.com>
1821 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
1822 __tls_get_addr_opt, and alignment sizing.
1823 (TLS_GET_ADDR_GLINK_SIZE): Delete.
1824 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
1825 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
1827 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
1828 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
1829 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
1831 (write_glink_stub): Handle __tls_get_addr_opt stub.
1832 Pad out to size given by GLINK_ENTRY_SIZE.
1833 (ppc_elf_relocate_section): Adjust write_glink_stub call.
1834 (ppc_elf_finish_dynamic_symbol): Likewise.
1835 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
1836 insn array since so many need rewriting.
1837 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
1838 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
1839 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
1840 nops. Adjust all uses.
1841 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
1842 in glink_vma calculation.
1843 (struct ppc_link_hash_table): Add global_entry section pointer.
1844 (create_linkage_sections): Create separate section for global
1846 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
1847 (size_global_entry_stubs): Handle sizing for aligned stubs.
1848 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
1849 and don't stash end of glink branch table in rawsize.
1850 (ppc_build_one_stub): Rewrite stub size calculations.
1851 (build_global_entry_stubs): Use new section.
1852 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
1853 Build lazy link stubs out to end of section. Build global entry
1854 stubs in new section.
1856 2018-01-15 Nick Clifton <nickc@redhat.com>
1858 * po/uk.po: Updated Ukranian translation.
1860 2018-01-13 Nick Clifton <nickc@redhat.com>
1862 * po/bfd.pot: Regenerated.
1864 2018-01-13 Nick Clifton <nickc@redhat.com>
1866 * version.m4: Bump version to 2.30.51
1867 * configure: Regenerate.
1869 2018-01-13 Nick Clifton <nickc@redhat.com>
1871 2.30 branch created.
1873 2018-01-12 Jens Widell <jl@opera.com>
1875 * elf.c (setup_group): Optimize search for group by remembering
1876 last found group and restarting search at that index.
1877 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
1879 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
1881 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
1882 bfd_link_common_skip_none in switch.
1884 2018-01-12 Alan Modra <amodra@gmail.com>
1887 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
1888 references on forced local symbols.
1890 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
1892 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
1893 .reginfo section has wrong size.
1895 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
1898 * elf.c (_bfd_elf_map_sections_to_segments): When generating
1899 separate code and read-only data LOAD segments, create a new
1900 LOAD segment if the previous section contains text and the
1901 current section doesn't or vice versa. Don't put a writable
1902 section in a read-only segment if there is a RELRO segment.
1904 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
1907 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
1908 references on forced local symbols.
1910 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
1913 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
1914 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
1916 2018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1919 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
1921 2018-01-03 John Baldwin <jhb@FreeBSD.org>
1923 * elf.c (elfcore_grok_freebsd_note): Handle
1924 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
1925 NT_FREEBSD_PROCSTAT_VMMAP.
1927 2018-01-03 Alan Modra <amodra@gmail.com>
1929 Update year range in copyright notice of all files.
1931 For older changes see ChangeLog-2017
1933 Copyright (C) 2018 Free Software Foundation, Inc.
1935 Copying and distribution of this file, with or without modification,
1936 are permitted in any medium without royalty provided the copyright
1937 notice and this notice are preserved.
1943 version-control: never