binutils: doc: make `make clean` clean more things
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
e0b2a78c
SM
12019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * Makefile.in: Re-generate.
4 * configure: Re-generate.
5 * doc/Makefile.in: Re-generate.
6
ed48ec2e
AM
72019-09-18 Alan Modra <amodra@gmail.com>
8
9 * aoutx.h (slurp_symbol_table): Don't set symcount using bfd_get
10 macros.
11 * pdp11.c (slurp_symbol_table): Likewise.
12 * som.c (som_slurp_symbol_table): Likewise.
13 * coff-ppc.c (ppc_bfd_coff_final_link): Likewise.
14 * coffcode.h (coff_slurp_symbol_table): Likewise.
15 * cofflink.c (_bfd_coff_final_link): Likewise.
16 * ecoff.c (ecoff_slurp_symbolic_header): Likewise.
17 (_bfd_ecoff_slurp_symbolic_info): Likewise.
18 (_bfd_ecoff_slurp_symbol_table): Likewise.
19 (_bfd_ecoff_bfd_final_link): Likewise.
20 * elf.c (_bfd_elf_canonicalize_symtab): Likewise.
21 * elflink.c (elf_link_output_symstrtab): Likewise.
22 (bfd_elf_final_link): Likewise.
23 * peicode.h (pe_ILF_build_a_bfd): Likewise.
24 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
25 * aoutx.h (some_aout_object_p, slurp_symbol_table): Don't set
26 start_address or symcount using bfd_get macros.
27 * coffgen.c (coff_real_object_p): Likewise.
28 * pdp11.c (some_aout_object_p, slurp_symbol_table): Likewise.
29 * som.c (som_object_setup, som_slurp_symbol_table): Likewise.
30 * elfcore.h (elf_core_file_p): Don't set start_address using
31 bfd_get macro.
32 * elf.c (_bfd_elf_canonicalize_dynamic_symtab): Don't set dynsymcount
33 using bfd_get macro.
34 * bfd.c (bfd_set_file_flags): Don't set flags using bfd_get macro.
35 * linker.c (bfd_generic_link_read_symbols): Don't set outsymbols
36 or symcount using bfd_get macros.
37 (_bfd_generic_final_link, generic_add_output_symbol): Likewise.
38 * syms.c (bfd_set_symtab): Likewise.
39 * vms-alpha.c (alpha_vms_bfd_final_link): Likewise.
40 * archive.c (do_slurp_bsd_armap): Don't set has_armap using
41 bfd_has_map macro.
42 (do_slurp_coff_armap, bfd_slurp_armap): Likewise.
43 * archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise.
44 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Likewise.
45 * coff64-rs6000.c (xcoff64_slurp_armap): Likewise.
46 * ecoff.c (_bfd_ecoff_slurp_armap): Likewise.
47 * som.c (som_slurp_armap): Likewise.
48
01c2b261
AM
492019-09-18 Alan Modra <amodra@gmail.com>
50
51 * archures.c (bfd_get_arch): Make param const.
52 (bfd_get_mach, bfd_arch_bits_per_byte): Likewise.
53 (bfd_arch_bits_per_address, bfd_octets_per_byte): Likewise.
54 * bfd-in2.h: Regenerate.
55
1d38e9d1
AM
562019-09-18 Alan Modra <amodra@gmail.com>
57
58 * bfd-in.h (carsym.name): Make const.
59 * reloc.c (struct reloc_howto_struct.name): Likewise.
60 * targets.c (bfd_target.name): Likewise.!
61 * bfd.c (bfd_get_sign_extend_vma): Make variable const.
62 * som.c (som_bfd_fill_in_ar_symbols): Use an intermediary variable
63 when setting carsym.name.
64 * bfd-in2.h: Regenerate.
65
90d92a63
AM
662019-09-18 Alan Modra <amodra@gmail.com>
67
68 * mach-o.c (bfd_mach_o_fat_member_init): Likewise. Replace
69 xstrdup and xmalloc with bfd_strdup and bfd_malloc. Return an
70 error status. Adjust calls.
71 * vms-lib.c (_bfd_vms_lib_get_module): Test mhd->id earlier.
72 Close bfd on failure. Replace xstrdup/bfd_alloc use with
73 bfd_malloc. Use bfd_set_filename.
74
1bdd8fac
AM
752019-09-18 Alan Modra <amodra@gmail.com>
76
77 * elf64-ppc.c (must_be_dyn_reloc): Return 0 for TOC16 relocs.
78 (ppc64_elf_check_relocs): Support dynamic/copy relocs for TOC16.
79 (ppc64_elf_adjust_dynamic_symbol): Don't keep dynamic reloc when
80 needs_copy even if all relocs are in rw sections.
81 (dec_dynrel_count): Handle TOC16 relocs.
82 (ppc64_elf_relocate_section): Support dynamic relocs for TOC16.
83 (ppc64_elf_finish_dynamic_symbol): Adjust to handle needs_copy
84 semantic change.
85
bb695960
PB
862019-09-16 Phil Blundell <pb@pbcl.net>
87
88 * version.m4: Set version to 2.33.50.
89 * Makefile.in, configure, doc/Makefile.in: Regenerated.
90
64b2d4a0
TT
912019-09-11 Tom Tromey <tom@tromey.com>
92
93 * opncls.c (bfd_set_filename): New function.
94 * bfd-in2.h: Regenerate.
95
cb7f4b29
AM
962019-09-11 Alan Modra <amodra@gmail.com>
97
98 * targets.c (struct bfd_target): Add _bfd_group_name.
99 (BFD_JUMP_TABLE): Likewise.
100 * coffgen.c (bfd_coff_group_name): New function.
101 * elf.c (bfd_elf_group_name): New function.
102 * linker.c (_bfd_nolink_bfd_group_name): New function.
103 * section.c (bfd_generic_group_name): New function.
104 * elf-bfd.h (bfd_elf_group_name): Declare.
105 * libbfd-in.h (_bfd_nolink_bfd_group_name): Declare.
106 * libcoff-in.h (bfd_coff_group_name): Declare.
107 * aout-target.h (MY_bfd_group_name): Define.
108 * aout-tic30.c (MY_bfd_group_name): Define.
109 * bfd.c (bfd_group_name): Define.
110 * binary.c (binary_bfd_group_name): Define.
111 * coff-alpha.c (_bfd_ecoff_bfd_group_name): Define.
112 * coff-mips.c (_bfd_ecoff_bfd_group_name): Define.
113 * coff-rs6000.c (_bfd_xcoff_bfd_group_name): Define.
114 * coffcode.h (coff_bfd_group_name): Define.
115 * elfxx-target.h (bfd_elfNN_bfd_group_name): Define.
116 * i386msdos.c (msdos_bfd_group_name): Define.
117 * ihex.c (ihex_bfd_group_name): Define.
118 * mach-o-target.c (bfd_mach_o_bfd_group_name): Define.
119 * mmo.c (mmo_bfd_group_name): Define.
120 * pef.c (bfd_pef_bfd_group_name): Define.
121 * plugin.c (bfd_plugin_bfd_group_name): Define.
122 * ppcboot.c (ppcboot_bfd_group_name): Define.
123 * som.c (som_bfd_group_name): Define.
124 * srec.c (srec_bfd_group_name): Define.
125 * tekhex.c (tekhex_bfd_group_name): Define.
126 * verilog.c (verilog_bfd_group_name): Define.
127 * vms-alpha.c (vms_bfd_group_name, alpha_vms_bfd_group_name): Define.
128 * xsym.c (bfd_sym_bfd_group_name): Define.
129 * coff64-rs6000.c (rs6000_xcoff64_vec): Init new field.
130 (rs6000_xcoff64_aix_vec): Likewise.
131 * bfd-in2.h: Regenerate.
132 * libbfd.h: Regenerate.
133 * libcoff.h: Regenerate.
134
aebcfb76
NC
1352019-09-10 Nick Clifton <nickc@redhat.com>
136
137 PR 24907
138 * archures.c (bfd_arch_info_type): Add max_reloc_offset_into_insn
139 field.
140 (bfd_default_arch_struct): Initialise the new field.
141 * bfd-in2.h: Regenerate.
142 * cpu-aarch64.c: Initialise the new field.
143 * cpu-alpha.c: Likewise.
144 * cpu-arc.c: Likewise.
145 * cpu-arm.c: Likewise.
146 * cpu-avr.c: Likewise.
147 * cpu-bfin.c: Likewise.
148 * cpu-bpf.c: Likewise.
149 * cpu-cr16.c: Likewise.
150 * cpu-cr16c.c: Likewise.
151 * cpu-cris.c: Likewise.
152 * cpu-crx.c: Likewise.
153 * cpu-csky.c: Likewise.
154 * cpu-d10v.c: Likewise.
155 * cpu-d30v.c: Likewise.
156 * cpu-dlx.c: Likewise.
157 * cpu-epiphany.c: Likewise.
158 * cpu-fr30.c: Likewise.
159 * cpu-frv.c: Likewise.
160 * cpu-ft32.c: Likewise.
161 * cpu-h8300.c: Likewise.
162 * cpu-hppa.c: Likewise.
163 * cpu-i386.c: Likewise.
164 * cpu-ia64.c: Likewise.
165 * cpu-iamcu.c: Likewise.
166 * cpu-ip2k.c: Likewise.
167 * cpu-iq2000.c: Likewise.
168 * cpu-k1om.c: Likewise.
169 * cpu-l1om.c: Likewise.
170 * cpu-lm32.c: Likewise.
171 * cpu-m10200.c: Likewise.
172 * cpu-m10300.c: Likewise.
173 * cpu-m32c.c: Likewise.
174 * cpu-m32r.c: Likewise.
175 * cpu-m68hc11.c: Likewise.
176 * cpu-m68hc12.c: Likewise.
177 * cpu-m68k.c: Likewise.
178 * cpu-m9s12x.c: Likewise.
179 * cpu-m9s12xg.c: Likewise.
180 * cpu-mcore.c: Likewise.
181 * cpu-mep.c: Likewise.
182 * cpu-metag.c: Likewise.
183 * cpu-microblaze.c: Likewise.
184 * cpu-mips.c: Likewise.
185 * cpu-mmix.c: Likewise.
186 * cpu-moxie.c: Likewise.
187 * cpu-msp430.c: Likewise.
188 * cpu-mt.c: Likewise.
189 * cpu-nds32.c: Likewise.
190 * cpu-nfp.c: Likewise.
191 * cpu-nios2.c: Likewise.
192 * cpu-ns32k.c: Likewise.
193 * cpu-or1k.c: Likewise.
194 * cpu-pdp11.c: Likewise.
195 * cpu-pj.c: Likewise.
196 * cpu-plugin.c: Likewise.
197 * cpu-powerpc.c: Likewise.
198 * cpu-pru.c: Likewise.
199 * cpu-riscv.c: Likewise.
200 * cpu-rl78.c: Likewise.
201 * cpu-rs6000.c: Likewise.
202 * cpu-rx.c: Likewise.
203 * cpu-s12z.c: Likewise.
204 * cpu-s390.c: Likewise.
205 * cpu-score.c: Likewise.
206 * cpu-sh.c: Likewise.
207 * cpu-sparc.c: Likewise.
208 * cpu-spu.c: Likewise.
209 * cpu-tic30.c: Likewise.
210 * cpu-tic4x.c: Likewise.
211 * cpu-tic54x.c: Likewise.
212 * cpu-tic6x.c: Likewise.
213 * cpu-tic80.c: Likewise.
214 * cpu-tilegx.c: Likewise.
215 * cpu-tilepro.c: Likewise.
216 * cpu-v850.c: Likewise.
217 * cpu-v850_rh850.c: Likewise.
218 * cpu-vax.c: Likewise.
219 * cpu-visium.c: Likewise.
220 * cpu-wasm32.c: Likewise.
221 * cpu-xc16x.c: Likewise.
222 * cpu-xgate.c: Likewise.
223 * cpu-xstormy16.c: Likewise.
224 * cpu-xtensa.c: Likewise.
225 * cpu-z80.c: Likewise.
226 * cpu-z8k.c: Likewise.
227
60391a25
PB
2282019-09-09 Phil Blundell <pb@pbcl.net>
229
230 binutils 2.33 branch created.
231
b16c44de
AM
2322019-09-06 Alan Modra <amodra@gmail.com>
233
234 * aout-target.h (object_p): Formatting.
235 * bfd-in.h (bfd_get_filename): Don't cast to char*.
236 * corefile.c (generic_core_file_matches_executable_p): Constify
237 variables and remove cast.
238 * bfd-in2.h: Regenerate.
239
133a1f60
AM
2402019-09-05 Alan Modra <amodra@gmail.com>
241
242 * elf64-ppc.c (ppc64_elf_check_relocs): Interpret an addend in
243 GOT_PCREL and PLT_PCREL relocs as affecting the value stored
244 in the GOT/PLT entry rather than affecting the offset to that
245 GOI/PLT entry.
246 (ppc64_elf_edit_toc, ppc64_elf_relocate_section): Likewise.
247
77486630
AM
2482019-09-05 Alan Modra <amodra@gmail.com>
249
250 * elf64-ppc.c (xlate_pcrel_opt): Handle prefix loads and stores
251 in second instruction.
252 (ppc64_elf_relocate_section): Likewise.
253
89bdc77e
AM
2542019-09-05 Alan Modra <amodra@gmail.com>
255
256 PR 24955
257 * libbfd-in.h (bfd_strdup): New inline function.
258 * archive.c (_bfd_get_elt_at_filepos): Use bfd_strdup. Close
259 bfd on error.
260 * elfcode.h (_bfd_elf_bfd_from_remote_memory): Use bfd_strdup.
261 * opncls.c (bfd_fopen): Use bfd_strdup. Close fd and stream
262 on error.
263 (bfd_openstreamr): Use bfd_strdup.
264 (bfd_openr_iovec, bfd_openw, bfd_create): Likewise.
265 * plugin.c (try_load_plugin): Use bfd_malloc.
266 * libbfd.h: Regenerate.
267
22b31fea
AM
2682019-09-02 Alan Modra <amodra@gmail.com>
269
270 PR 11983
271 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Free debug_filename
272 on success. Tidy.
217d2eaa
AM
273 (read_alt_indirect_string): Likewise.
274 (read_alt_indirect_ref): Likewise.
22b31fea 275
3e7bd7f2
JW
2762019-08-31 Jim Wilson <jimw@sifive.com>
277
278 PR 23825
279 * elfnn-riscv.c (riscv_elf_create_dynamic_sections): Add SEC_LOAD,
280 SEC_DATA, and SEC_HAS_CONTENTS to .tdata.dyn section.
281
fdd50269
JW
2822019-08-30 Jim Wilson <jimw@sifive.com>
283
284 * elfnn-riscv.c (riscv_elf_relocate_section): For unresolvable reloc
285 error, call bfd_set_error, set ret to FALSE, and goto out label.
286
6744bcad
L
2872019-08-30 H.J. Lu <hongjiu.lu@intel.com>
288
289 PR ld/24951
290 * archive.c (_bfd_get_elt_at_filepos): Copy BFD_COMPRESS,
291 BFD_DECOMPRESS and BFD_COMPRESS_GABI flags for thin archive.
292
c0d9f31d
AM
2932019-08-29 Alan Modra <amodra@gmail.com>
294
295 PR 24697
296 * elf32-ppc.c (ppc_elf_check_relocs): Call bad_shared_reloc
297 when !bfd_link_executable for R_PPC_EMB_SDA2I16 and
298 R_PPC_EMB_SDA2REL. Don't call bad_shared_reloc for any other
299 reloc.
300
dd9b12c2
AM
3012019-08-29 Alan Modra <amodra@gmail.com>
302
303 * elf64-ppc.c (xlate_pcrel_opt): Add poff parameter. Allow offset
304 on second insn, return it in poff.
305 (ppc64_elf_relocate_section): Add offset to paddi addend for
306 PCREL_OPT.
307
507685a3
JW
3082019-08-28 Jim Wilson <jimw@sifive.com>
309
310 * elfnn-riscv.c (_bfd_riscv_relax_lui): Add check to exclude abs
311 section when setting max_alignment. Update comment.
312 (_bfd_riscv_relax_pc): Likewise.
313
83cf0d04
AM
3142019-08-29 Alan Modra <amodra@gmail.com>
315
316 PR 24891
317 * bfd.c (struct bfd): Add no_element_cache.
318 * archive.c (_bfd_get_elt_at_filepos): Don't add element to
319 archive cache when no_element_cache.
320 (bfd_generic_archive_p): Set no_element_cache when opening first
321 element to check format. Close first element too.
322 (do_slurp_bsd_armap): Don't zero ardata->cache here.
323 * bfd-in2.h: Regenerate.
324
6d5554a6
AM
3252019-08-24 Alan Modra <amodra@gmail.com>
326
327 * elf64-ppc.c (ppc64_elf_edit_toc): Exclude undefined weak
328 symbols from GOT optimisation.
329
09f7b0de
SH
3302019-08-23 Stafford Horne <shorne@gmail.com>
331
332 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Use correct value for
333 PLT GOT entries.
334
a7ba3896
NC
3352019-08-23 Nick Clifton <nickc@redhat.com>
336
337 PR 24456
338 * elf.c (bfd_section_from_shdr): Issue an informative warning
339 message and continue processing other sections after encountering
340 a reloc section for a section which already has other relocs
341 associated with it.
342
2600d80c
AM
3432019-08-23 Alan Modra <amodra@gmail.com>
344
345 PR 24933
346 * elfxx-x86.c (_bfd_x86_elf_get_synthetic_symtab): Don't exit
347 on error without freeing plts[] contents.
348
0535e5d7
DZ
3492019-08-22 Dennis Zhang <dennis.zhang@arm.com>
350
351 * cpu-arm.c: New entries for Cortex-M35P, Cortex-A77, Cortex-A76AE.
352
03da31c6
NC
3532019-08-22 Nick Clifton <nickc@redhat.com>
354
355 PR 24922
356 * pei-x86_64.c (pex64_xdata_print_uwd_codes): Add checks before
357 reading data from extra records.
358
652afeef
TC
3592019-08-22 Tamar Christina <tamar.christina@arm.com>
360
361 PR ld/24601
362 * elfnn-aarch64.c (aarch64_relocate): Handle weak TLS and undefined TLS.
363 Also Pass input_bfd to _bfd_aarch64_elf_resolve_relocation.
364 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use it.
365 * elfxx-aarch64.h (_bfd_aarch64_elf_resolve_relocation): Emit warning
366 for weak TLS.
367
baf46cd7
AM
3682019-08-22 Alan Modra <amodra@gmail.com>
369
370 * elf32-arm.c (cmse_scan): Don't use ARM_GET_SYM_CMSE_SPCL,
371 instead recognize CMSE_PREFIX in symbol name.
372 (elf32_arm_gc_mark_extra_sections): Likewise.
373 (elf32_arm_filter_cmse_symbols): Don't test ARM_GET_SYM_CMSE_SPCL.
374 (elf32_arm_swap_symbol_in): Don't invoke ARM_SET_SYM_CMSE_SPCL.
375
546053ac
DZ
3762019-08-20 Dennis Zhang <dennis.zhang@arm.com>
377
378 * cpu-aarch64.c: New entries for Cortex-A34, Cortex-A65,
379 Cortex-A77, cortex-A65AE, and Cortex-A76AE.
380
b4e87f2c
TC
3812019-08-20 Tamar Christina <tamar.christina@arm.com>
382
383 * elf32-arm.c (elf32_thumb2_plt_entry, elf32_arm_plt_thumb_stub,
384 elf32_arm_stub_long_branch_v4t_thumb_thumb,
385 elf32_arm_stub_long_branch_v4t_thumb_arm,
386 elf32_arm_stub_short_branch_v4t_thumb_arm,
387 elf32_arm_stub_long_branch_v4t_thumb_arm_pic,
388 elf32_arm_stub_long_branch_v4t_thumb_thumb_pic,
389 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): Change nop to branch to
390 previous instruction.
391
3eb185c9
TT
3922019-08-19 Tom Tromey <tromey@adacore.com>
393
394 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Create hash table
395 holding symbols.
396
903b777d
AM
3972019-08-19 Alan Modra <amodra@gmail.com>
398
399 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename has_gotrel
400 to has_optrel.
401 (struct _ppc64_elf_section_data): Likewise.
402 (ppc64_elf_check_relocs): Set has_optrel for more relocs.
403 (ppc64_elf_edit_toc): Do ha/lo insn checks in GOT loop rather
404 than TOC loop. Check PLT16 insns too.
405
81e8046d
L
4062019-08-16 H.J. Lu <hongjiu.lu@intel.com>
407
408 PR ld/24905
409 * elf64-x86-64.c (elf_x86_64_check_relocs): Move PIC check for
410 PC-relative relocations back to ...
411 (elf_x86_64_relocate_section): Here.
412
b4c555cf
ML
4132019-08-16 Martin Liska <mliska@suse.cz>
414
415 PR ld/24912
416 * elflink.c: Report error only for not relocatable.
417 * linker.c (_bfd_generic_link_add_one_symbol): Do not handle
418 here lto_slim_object as it's handled in caller.
419
63f6e94f
AM
4202019-08-16 Alan Modra <amodra@gmail.com>
421
422 * elf32-ppc.c (ppc_elf_relocate_section): Optimize unaligned relocs.
423
080a4883
JW
4242019-08-15 Jim Wilson <jimw@sifive.com>
425
426 * elfnn-riscv.c (perform_relocation) <R_RISCV_RVC_LUI>: If
427 RISCV_CONST_HIGH_PART (value) is zero, then convert c.lui instruction
428 to c.li instruction, and use ENCODE_RVC_IMM to set value.
429
05192282
TT
4302019-08-15 Tom Tromey <tromey@adacore.com>
431
432 * dwarf2.c (scan_unit_for_symbols): Check for end of CU, not end
433 of section.
434
dfc19da6
AM
4352019-08-14 Alan Modra <amodra@gmail.com>
436
437 PR 24623
438 * dwarf2.c (stash_comp_unit): New function, extracted from..
439 (_bfd_dwarf2_find_nearest_line): ..here.
440 (find_abstract_instance): Parse comp units and decode line info
441 as needed.
442
c327a44f
AM
4432019-08-14 Alan Modra <amodra@gmail.com>
444
445 * dwarf2.c (comp_unit_maybe_decode_line_info): Declare.
446 (comp_unit_find_nearest_line): Use it here..
447 (_bfd_dwarf2_find_symbol_bias): ..and here.
448
9defd221
AM
4492019-08-14 Alan Modra <amodra@gmail.com>
450
451 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove addr_size parameter.
452 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
453 * coffgen.c (coff_find_nearest_line_with_names): Adjust
454 _bfd_dwarf2_find_nearest_line calls.
455 * elf.c (_bfd_elf_find_nearest_line, _bfd_elf_find_line): Likewise.
456 * elf32-arm.c (elf32_arm_find_nearest_line): Likewise.
457 * elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise.
458 * elfnn-aarch64.c (elfNN_aarch64_find_nearest_line): Likewise.
459 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise.
460 * mach-o.c (bfd_mach_o_find_nearest_line): Likewise.
461 * libbfd.h: Regenerate.
462
f16a9783
MS
4632019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
464
465 * elf-bfd.h (struct elf_backend_data): New members.
466 * elflink.c (_bfd_elf_link_create_dynamic_sections): Create
467 .gnu.hash section if necessary.
468 (struct collect_gnu_hash_codes): New member.
469 (elf_gnu_hash_process_symidx): New function name.
470 (elf_renumber_gnu_hash_syms): Ignore local and undefined
471 symbols. Record xlat location for every symbol which should have
472 a .MIPS.xhash entry.
473 (bfd_elf_size_dynamic_sections): Add DT_GNU_HASH dynamic tag to
474 dynamic section if necessary.
475 (GNU_HASH_SECTION_NAME): New define.
476 (bfd_elf_size_dynsym_hash_dynstr): Get .MIPS.xhash section.
477 Update the section size info.
478 * elfxx-mips.c (struct mips_elf_hash_sort_data): New members.
479 (struct mips_elf_link_hash_entry): New member.
480 (mips_elf_link_hash_newfunc): Initialize .MIPS.xhash translation
481 table location.
482 (mips_elf_sort_hash_table): Initialize the pointer to the
483 .MIPS.xhash section.
484 (mips_elf_sort_hash_table_f): Populate the .MIPS.xhash
485 translation table entry with the symbol dynindx.
486 (_bfd_mips_elf_section_from_shdr): Add SHT_MIPS_XHASH.
487 (_bfd_mips_elf_fake_sections): Initialize .MIPS.xhash section
488 info.
489 (_bfd_mips_elf_create_dynamic_sections): Create .MIPS.xhash
490 section.
491 (_bfd_mips_elf_size_dynamic_sections): Add DT_MIPS_XHASH tag to
492 dynamic section.
493 (_bfd_mips_elf_finish_synamic_sections): Add DT_MIPS_XHASH.
494 (_bfd_mips_elf_final_write_processing): Set .MIPS.xhash section
495 sh_link info.
496 (_bfd_mips_elf_get_target_dtag): Get DT_MIPS_XHASH tag.
497 (MIPS_LIBC_ABI_XHASH): New ABI version enum value.
498 (_bfd_mips_post_process_headers): Mark the ABI version as
499 MIPS_LIBC_ABI_XHASH if there exists a .MIPS.xhash section,
500 but not a .hash section.
501 (_bfd_mips_elf_record_xhash_symbol): New function. Record a
502 position in the translation table, associated with the hash
503 entry.
504 * elfxx-mips.h (literal_reloc_p): Define
505 elf_backend_record_xhash_symbol backend hook.
506 * elfxx-target.h: Initialize elf_backend_record_xhash_symbol
507 backend hook.
508
fc8de8e2
JM
5092019-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
510
511 * elf64-bpf.c (bpf_elf_relocate_section): New function.
512 (bpf_elf_insn_disp_reloc): Delete function.
513 (elf_backend_relocate_section): Define.
514
97b031c5
AM
5152019-08-07 Alan Modra <amodra@gmail.com>
516
517 PR 24644
518 * archive64.c (_bfd_archive_64_bit_slurp_armap): Properly check
519 for overflow in expressions involving nsymz.
520
0f52d45a
JW
5212019-08-01 Ilia Diachkov <ilia.diachkov@optimitech.com>
522
523 * elfnn-riscv.c (_bfd_riscv_relax_lui): Set lui relax safety area to
524 two pages in relro presence.
525
e0d0c518
MF
5262019-08-01 Max Filippov <jcmvbkbc@gmail.com>
527
528 * elf32-xtensa.c (insn_num_slots, get_rsr_lend_opcode)
529 (get_wsr_lbeg_opcode): New functions.
530 (check_loop_aligned): Detect relaxed loops and adjust loop_len
531 and insn_len for the first actual instruction of the loop.
532
34d5c40a
AM
5332019-07-30 Alan Modra <amodra@gmail.com>
534
535 PR 24768
536 * bfd.c (struct bfd): Add lto_slim_object flag.
537 * bfd-in2.h: Regenerate.
538
cc5277b1
ML
5392019-07-29 Martin Liska <mliska@suse.cz>
540
541 PR 24768
542 * archive.c (_bfd_compute_and_write_armap): Come up with
543 report_plugin_err variable.
544 * bfd-in2.h (struct bfd): Add lto_slim_object flag.
545 * elf.c (struct lto_section): New.
546 (_bfd_elf_make_section_from_shdr): Parse content of
547 .gnu_lto_.lto section.
548 * elflink.c: Report error for a missing LTO plugin.
549 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
550
4538d1c7
AM
5512019-07-28 Alan Modra <amodra@gmail.com>
552
553 PR 24857
554 PR 24339
555 * elflink.c (elf_link_add_object_symbols): Report an informative
556 error on finding local symbols with index equal or greater than
557 symbol table sh_info. Correct comment. Allow such symbols in
558 dynamic objects. Abort on NULL section for symbol.
559
6dd17ae0
AM
5602019-07-26 Alan Modra <amodra@gmail.com>
561
562 * elf-bfd.h (struct output_elf_obj_tdata): Delete "linker" field.
563 (elf_linker): Don't define.
564 * elflink.c (bfd_elf_final_link): Don't set elf_linker.
565
c7c860d2
YS
5662019-07-25 YunQiang Su <syq@debian.org>
567
568 PR 24832
569 * elfxx-mips.c (mips_set_isa_flags): Default to MIPS 3 for 64-bit
570 mips inputs.
571
95967518
CZ
5722019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
573
574 * elf32-arc.c (bfd_get_32_me): Add a small description, fix
575 formating.
576 (reloc_type_to_name): Fix formating.
577 (arc_elf_object_p): Likewise.
578 (debug_arc_reloc): Likewise.
579 (arc_do_relocation): Likewise.
580
ef551643
CZ
5812019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
582
583 * elf32-arc.c (bfd_get_32_me): New function.
584 (bfd_put_32_me): Likewise.
585 (arc_elf_relax_section): Likewise.
586 (bfd_elf32_bfd_relax_section): Define.
587
cc364be6
AM
5882019-07-24 Alan Modra <amodra@gmail.com>
589
590 * elf-bfd.h (struct elf_backend_data): Return bfd_boolean from
591 elf_backend_final_write_processing, don't pass linker arg.
592 (_bfd_elf_final_write_processing): Update prototype.
593 * elf.c (_bfd_elf_write_object_contents): Adjust call.
594 (_bfd_elf_final_write_processing): Return error on incompatible
595 OSABI and has_gnu_osabi. Remove linker arg.
596 * elf-nacl.h (nacl_final_write_processing): Update prototype.
597 * elf-vxworks.h (elf_vxworks_final_write_processing): Likewise.
598 * elfxx-mips.h (_bfd_mips_final_write_processing): Likewise.
599 (_bfd_mips_elf_final_write_processing): Likewise.
600 * elf-hppa.h (elf_hppa_final_write_processing): Return status
601 and remove linker arg.
602 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
603 * elf-nacl.c (nacl_final_write_processing): Likewise.
604 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
605 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
606 * elf32-arm.c (arm_final_write_processing): Likewise.
607 (elf32_arm_final_write_processing): Likewise.
608 (elf32_arm_nacl_final_write_processing): Likewise.
609 (elf32_arm_vxworks_final_write_processing): Likewise.
610 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
611 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
612 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
613 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
614 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
615 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
616 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
617 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
618 * elf32-mips.c (mips_vxworks_final_write_processing): Likewise.
619 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
620 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
621 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
622 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
623 * elf32-ppc.c (ppc_final_write_processing): Likewise.
624 (ppc_elf_final_write_processing): Likewise.
625 (ppc_elf_vxworks_final_write_processing): Likewise.
626 * elf32-sparc.c (sparc_final_write_processing): Likewise.
627 (elf32_sparc_final_write_processing): Likewise.
628 (elf32_sparc_vxworks_final_write_processing): Likewise.
629 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
630 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
631 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
632 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
633 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
634 * elfxx-mips.c (_bfd_mips_final_write_processing): Likewise.
635 (_bfd_mips_elf_final_write_processing): Likewise.
636
c5e20471
AM
6372019-07-24 Alan Modra <amodra@gmail.com>
638
639 * elf-vxworks.c (elf_vxworks_final_write_processing): Don't return
640 early.
641 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
642 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
643
7613ca5e
AM
6442019-07-24 Alan Modra <amodra@gmail.com>
645
646 * elf32-visium.c (visium_elf_post_process_headers): Don't set
647 EI_OSABI header byte here.
648 (ELF_OSABI): Define.
649
df3a023b
AM
6502019-07-23 Alan Modra <amodra@gmail.com>
651
652 * elf-bfd.h (enum elf_gnu_osabi): Add elf_gnu_osabi_mbind.
653 * elf.c (_bfd_elf_make_section_from_shdr): Set elf_gnu_osabi_mbind.
654 (get_program_header_size): Formatting. Only test SH_GNU_MBIND
655 when elf_gnu_osabi_mbind is set.
656 (_bfd_elf_map_sections_to_segments): Likewise.
657 (_bfd_elf_init_private_section_data): Likewise.
658 (_bfd_elf_final_write_processing): Update comment.
659 * elf64-hppa.c (elf64_hppa_special_sections): Move .tbss entry.
660 (elf_backend_special_sections): Define without .tbss for linux.
661
06f44071
AM
6622019-07-23 Alan Modra <amodra@gmail.com>
663
664 * elf-bfd.h (enum elf_gnu_osabi): Rename from elf_gnu_symbols.
665 Remove none, any, all enums.
666 (struct elf_obj_tdata): Rename has_gnu_symbols field to has_gnu_osabi.
667 (_bfd_elf_final_write_processing): Declare.
668 * elf.c (_bfd_elf_write_object_contents): Unconditionally call
669 elf_backend_final_write_processing.
670 (_bfd_elf_post_process_headers): Move body of function to..
671 (_bfd_elf_final_write_processing): ..here, but set EI_OSABI byte
672 only when not already set. Adjust for rename.
673 * elfxx-target.h (elf_backend_final_write_processing): Default to
674 _bfd_elf_final_write_processing.
675 * elf-hppa.h (elf_hppa_final_write_processing): Call
676 _bfd_elf_final_write_processing.
677 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
678 * elf-nacl.c (nacl_final_write_processing): Likewise.
679 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
680 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
681 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
682 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
683 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
684 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
685 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
686 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
687 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
688 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
689 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
690 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
691 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
692 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
693 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
694 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
695 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
696 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
697 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
698 * elf32-arm.c (arm_final_write_processing): Split out from..
699 (elf32_arm_final_write_processing): ..here. Call
700 _bfd_elf_final_write_processing.
701 (elf32_arm_nacl_final_write_processing): Adjust.
702 * elfxx-mips.c (_bfd_mips_final_write_processing): Split out from..
703 (_bfd_mips_elf_final_write_processing): ..here. Call
704 _bfd_elf_final_write_processing.
705 * elfxx-mips.h (_bfd_mips_final_write_processing): Declare.
706 * elf32-mips.c (mips_vxworks_final_write_processing): Adjust.
707 * elf32-ppc.c (ppc_final_write_processing): Split out from..
708 (ppc_elf_final_write_processing): ..here. Call
709 _bfd_elf_final_write_processing.
710 (ppc_elf_vxworks_final_write_processing): Adjust.
711 * elf32-sparc.c (sparc_final_write_processing): Split out from..
712 (elf32_sparc_final_write_processing): ..here. Call
713 _bfd_elf_final_write_processing.
714 (elf32_sparc_vxworks_final_write_processing): Adjust.
715 * elf32-d10v.c (elf_backend_final_write_processing): Don't define.
716 * elf32-d30v.c (elf_backend_final_write_processing): Don't define.
717 * elf32-m68hc11.c (elf_backend_final_write_processing): Don't define.
718 * elf32-m68hc12.c (elf_backend_final_write_processing): Don't define.
719 * elf32-s12z.c (elf_backend_final_write_processing): Don't define.
720 * elf32-i386.c (elf_i386_check_relocs): Don't set has_gnu_symbols.
721 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
722 * elflink.c (elf_link_add_object_symbols): Likewise.
723 (elf_link_output_symstrtab): Set has_gnu_osabi for symbols here
724 instead.
725
1dd1bc4d
OM
7262019-07-23 Omar Majid <omajid@redhat.com>
727
728 * coffcode.h (coff_set_arch_mach_hook): Handle I386_APPLE_MAGIC,
729 I386_FREEBSD_MAGIC, I386_LINUX_MAGIC, I386_NETBSD_MAGIC,
730 AMD64_APPLE_MAGIC, AMD64_FREEBSD_MAGIC, AMD64_LINUX_MAGIC,
731 AMD64_NETBSD_MAGIC.
732 * peXXigen.c: Add comment about source of .NET magic numbers.
733
c213164a
AM
7342019-07-19 Alan Modra <amodra@gmail.com>
735
736 * reloc.c (BFD_RELOC_PPC64_TPREL34, BFD_RELOC_PPC64_DTPREL34),
737 (BFD_RELOC_PPC64_GOT_TLSGD34, BFD_RELOC_PPC64_GOT_TLSLD34),
738 (BFD_RELOC_PPC64_GOT_TPREL34, BFD_RELOC_PPC64_GOT_DTPREL34),
739 (BFD_RELOC_PPC64_TLS_PCREL): New pcrel tls relocs.
740 * elf64-ppc.c (ppc64_elf_howto_raw): Add howtos for pcrel tls relocs.
741 (ppc64_elf_reloc_type_lookup): Translate pcrel tls relocs.
742 (must_be_dyn_reloc, dec_dynrel_count): Add R_PPC64_TPREL64.
743 (ppc64_elf_check_relocs): Support pcrel tls relocs.
744 (ppc64_elf_tls_optimize, ppc64_elf_relocate_section): Likewise.
745 * bfd-in2.h: Regenerate.
746 * libbfd.h: Regenerate.
747
71c4e95a
AM
7482019-07-18 Alan Modra <amodra@gmail.com>
749
750 * elf64-ppc.c (ppc64_elf_relocate_section): Don't bother selecting
751 a TLS section symbol for edited relocs. Tighten TLS symbol/reloc
752 match test.
753
46e9995a
AM
7542019-07-18 Alan Modra <amodra@gmail.com>
755
756 * elf64-ppc.c (TLS_EXPLICIT): Define as 256.
757 (ppc64_elf_check_relocs): Don't store TLS_EXPLICIT even if char
758 is more than 8 bits.
759 (ppc64_elf_tls_optimize): Likewise. Make tls_set, tls_clear, and
760 tls_type vars unsigned int.
761 (ppc64_elf_relocate_section): Use r_type rather than TLS_EXPLICIT
762 to select r_type edit.
763
b00a0a86
AM
7642019-07-18 Alan Modra <amodra@gmail.com>
765
766 * elf32-ppc.c (TLS_GDIE): Rename from TLS_TPRELGD throughout file.
767 Correct comment.
768 * elf64-ppc.c (TLS_GDIE): Likewise.
769
0b147428
AM
7702019-07-18 Alan Modra <amodra@gmail.com>
771
772 * elf64-ppc.c (ppc64_elf_tls_optimize): Correct test for allowed
773 range of tp-relative offsets.
774
5b9d7a9a
AM
7752019-07-15 Alan Modra <amodra@gmail.com>
776
777 * elflink.c (_bfd_elf_fix_symbol_flags): If the def for an
778 alias is no longer bfd_link_hash_defined, clear the alias.
779
f26a3287
AM
7802019-07-13 Alan Modra <amodra@gmail.com>
781
782 * elflink.c (_bfd_elf_omit_section_dynsym_default): Don't keep
783 tls_sec.
784 (_bfd_elf_init_1_index_section): Prefer not using TLS sections.
785 (_bfd_elf_init_2_index_sections): Likewise.
786 * elf64-ppc.c (ppc64_elf_relocate_section): When emitting dynamic
787 relocations for local TLS symbols, use STN_UNDEF as the relocation
788 symbol.
789 * elf32-ppc.c (ppc_elf_relocate_section): Likewise, and don't
790 leave TLS symbol value in the addend.
791
62a47958
AM
7922019-07-08 Alan Modra <amodra@gmail.com>
793
794 PR 24785
795 * elf32-ppc.c (_bfd_elf_ppc_set_arch): Sanity check .PPC.EMB.apuinfo
796 size before reading first word.
797
1faa385f
NC
7982019-07-02 Nick Clifton <nickc@redhat.com>
799
800 PR 24717
801 * elf.c (is_debuginfo_file): New function.
802 (assign_file_positions_for_non_load_sections): Do not warn about
803 allocated sections outside of loadable segments if they are found
804 in a debuginfo file.
805 * elf-bfd.h (is_debuginfo_file): Prototype.
806
125f83f6
NC
8072019-07-02 Nick Clifton <nickc@redhat.com>
808
809 PR 24753
810 * compress.c (bfd_get_full_section_contents): Do not complain
811 about linker created sections that are larger than the file size.
812
4d83e8d9
CL
8132019-07-02 Christophe Lyon <christophe.lyon@linaro.org>
814
815 * bfd/elf32-arm.c (CMSE_STUB_NAME): New define.
816 (elf32_arm_get_stub_entry): Do not try to emit long-branch stubs
817 for CMSE stubs.
818 (arm_dedicated_stub_output_section_name): Use CMSE_STUB_NAME.
819
bb32413f
SP
8202019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
821
822 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Mark debug
823 sections when .text section contain secure entry functions
824 is marked.
825
539300fb
NC
8262019-07-01 Nick Clifton <nickc@redhat.com>
827
828 PR 23839
829 * elf32-arm.c (elf32_arm_update_relocs): Do not include the
830 section VMA in the offset used to update exidx relocs.
831
7e56c51c
NC
8322019-06-28 Nick Clifton <nickc@redhat.com>
833
834 PR 24708
835 * elf.c (_bfd_elf_slurp_version_tables): Check for an excessively
836 large version reference section.
837 * compress.c (bfd_get_full_section_contents): Check for an
838 uncompressed section whose size is larger than the file size.
839
999d6dff
AM
8402019-06-28 Alan Modra <amodra@gmail.com>
841
842 * format.c (bfd_check_format_matches): Don't match plugin target
843 if another target matches. Expand comment.
844 * targets.c (_bfd_target_vector): Move plugin_vec after all other
845 non-corefile targets, outside !SELECT_VECS.
846 * config.bfd: Don't handle targ=plugin here.
847 * configure.ac: Don't add plugin to enable_targets or handle in
848 target loop setting selvecs and other target vars.
849 * configure: Regenerate.
850
a68aa5d3
NC
8512019-06-26 Nick Clifton <nickc@redhat.com>
852
853 PR 24703
854 * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add error
855 messages for failures.
856 * mach-o.c (bfd_mach_o_canonicalize_relocs): Set an bfd error code
857 if returning an error value.
858
ab9f654c
JB
8592019-06-25 Jan Beulich <jbeulich@suse.com>
860
861 * elf-properties.c (elf_find_and_remove_property): Rename last
862 parameter. Mention it in comment.
863
04b865dc
JW
8642019-06-24 Ilia Diachkov <ilia.diachkov@optimitech.com>
865
866 * elfnn-riscv.c (_bfd_riscv_relax_lui): Delete early exit when
867 SEC_MERGE or SEC_CODE flags are set.
868 (_bfd_riscv_relax_section): New local symtype. Set sym_sec and
869 symtype consistently. Don't include sec_addr (sym_sec) in symval.
870 Add check for SEC_INFO_TYPE_MERGE and call _bfd_merged_section_offset.
871 Add sec_addr (sym_sec) after handling merge sections.
872
f93ab3a0
L
8732019-06-24 H.J. Lu <hongjiu.lu@intel.com>
874
875 PR ld/24721
876 * elf-properties.c (elf_merge_gnu_property_list): Remove the
877 property after reporting property removal.
878
bb22a418
AM
8792019-06-23 Alan Modra <amodra@gmail.com>
880
881 PR 24704
882 * elf64-ppc.c (R_PPC64_GOT16_DS): Don't set has_gotrel.
883 (ppc64_elf_edit_toc): Don't remove R_PPC64_GOT16_DS got entries.
884 Reduce range of offsets allowed for other GOT relocs.
885
14b2a8e4
AM
8862019-06-23 Alan Modra <amodra@gmail.com>
887
888 PR 24689
889 * elfcode.h (elf_object_p): Warning fix.
890
890f750a
AM
8912019-06-21 Alan Modra <amodra@gmail.com>
892
893 PR 24689
894 * elfcode.h (elf_object_p): Check type of e_shstrndx section.
895
6f5601c4
AM
8962019-06-19 Alan Modra <amodra@gmail.com>
897
898 PR 24697
899 * elf32-ppc.c (ppc_elf_relocate_section): Don't read insn for
900 R_PPC_EMB_RELSDA. Mask low bit of R_PPC_EMB_SDA21 r_offset.
901
4a4e7361
AM
9022019-06-19 Alan Modra <amodra@gmail.com>
903
904 * elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for
905 functions that require r2 valid to use local entry.
906 (ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise.
907
39c05d94
SN
9082019-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
909
910 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_dynrelocs): Remove.
911 (elfNN_aarch64_size_dynamic_sections): Remove loc_hash_table traversal
912 with elfNN_aarch64_allocate_local_dynrelocs.
913
e30d1fa1
SN
9142019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
915
916 * elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32.
917
3a3a077c
AM
9182019-06-14 Alan Modra <amodra@gmail.com>
919
920 * Makefile.in: Regenerate.
921 * configure: Regenerate.
922
d4b87b1e
AM
9232019-06-14 Alan Modra <amodra@gmail.com>
924
925 * elf64-ppc.c: Fix comments involving paddi.
926
62e0492f
AL
9272019-06-12 Adam Lackorzymski <adam@os.inf.tu-dresden.de>
928
929 PR 24643
930 * elf32-arm.c (arm_elf_find_function): Fail if the symol table is
931 absent, or the bfd is not in the ELF formart.
932 * elfnn-aarch64.c (aarch64_elf_find_function): Likewise.
933
58e07198
CZ
9342019-06-10 Christos Zoulas <christos@zoulas.com>
935
936 PR 24650
937 * elf.c (elfcore_make_auxv_note_section): New function.
938 (elfcore_grok_note): Use it.
939 (elfcore_grok_freebsd_note): Likewise.
940 (elfcore_grok_openbsd_note): Likewise.
941 (elfcore_grok_netbsd_note): Likewise. Plus add support for
942 NT_NETBSDCORE_AUXV notes.
943
237df8fe
SD
9442019-06-06 Sudakshina Das <sudi.das@arm.com>
945
946 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Set
947 alignment of the new gnu property section.
948
8bf6d176
SD
9492019-06-06 Sudakshina Das <sudi.das@arm.com>
950
951 * bfd-in.h: Change comment.
952 * bfd-in2.h: Regenerate.
953 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update warning.
954 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties):
955 Likwise.
956
1e129bbe
FS
9572019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
958
959 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>:
960 Remove overflow check.
961
0f4a61b4
AM
9622019-05-28 Alan Modra <amodra@gmail.com>
963
964 PR 24596
965 * cofflink.c (coff_link_check_archive_element): Don't assume
966 element is a coff object file after calling add_archive_element.
967
94667ab1
AM
9682019-05-28 Alan Modra <amodra@gmail.com>
969
970 PR 24596
971 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't
972 attempt to set sh_entsize for excluded PLT section.
973
28fbeab8
AM
9742019-05-28 Alan Modra <amodra@gmail.com>
975
976 PR 24596
977 * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt
978 to emit R_ALPHA_GOTTPREL in PIEs, for which no space is
979 allocated in alpha_dynamic_entries_for_reloc.
980
a0f6fd21
AM
9812019-05-28 Alan Modra <amodra@gmail.com>
982
983 PR 24596
984 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault
985 on NULL output_section.
986 * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf.
987
c83004d5
AM
9882019-05-28 Alan Modra <amodra@gmail.com>
989
990 PR 24596
991 * elf32-m68k.c (elf_m68k_get_got_entry): Don't create a new
992 entry when MUST_FIND. Abort when MUST_FIND not found.
993 (elf_m68k_get_bfd2got_entry): Likewise.
994 (elf_m68k_relocate_section): Remove now useless assert.
995
586338b8
AM
9962019-05-28 Alan Modra <amodra@gmail.com>
997
998 PR 24596
999 * elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd
1000 from bfd_link_info, not an output section owner.
1001 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise.
1002 (elf_hppa_final_link_relocate): Likewise.
1003
a7b34aba
AM
10042019-05-28 Alan Modra <amodra@gmail.com>
1005
1006 PR 24596
1007 * aout-tic30.c (MY_bfd_final_link): Don't segfault on missing
1008 create_object_symbols_section, obj_textsec, obj_datasec or
1009 obj_bsssec. Fix other errors in placement.
1010 * config.bfd: Obsolete tic30-aout.
1011
0eb32b6e
AM
10122019-05-28 Alan Modra <amodra@gmail.com>
1013
1014 PR 24596
1015 * dwarf2.c (save_section_vma, section_vma_same): Check for NULL
1016 end of section list as well as section_count.
1017 * xcofflink.c (xcoff_link_add_symbols): Fix temporarily changed
1018 section list before returning error.
1019
ce5aecf8
AM
10202019-05-27 Alan Modra <amodra@gmail.com>
1021
1022 * elf.c (bfd_elf_set_group_contents): Exit on zero size section.
1023
3d7d6a6f
AM
10242019-05-27 Alan Modra <amodra@gmail.com>
1025
1026 PR 24596
1027 * linker.c (_bfd_generic_link_output_symbols): Heed BSF_KEEP.
1028
823710d5
SN
10292019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1030
1031 * elfnn-aarch64.c (elfNN_aarch64_merge_symbol_attribute): New function.
1032 (struct elf_aarch64_link_hash_table): Add variant_pcs member.
1033 (elfNN_aarch64_allocate_dynrelocs): Update variant_pcs.
1034 (elfNN_aarch64_size_dynamic_sections): Add DT_AARCH64_VARIANT_PCS.
1035 (elf_backend_merge_symbol_attribute): Define.
1036
405b5bd8
AM
10372019-05-24 Alan Modra <amodra@gmail.com>
1038
1039 * po/SRC-POTFILES.in: Regenerate.
1040
04bdff6a
AM
10412019-05-24 Alan Modra <amodra@gmail.com>
1042
1043 * elf64-ppc.c: Comment on powerxx _notoc stub variants.
1044 (LI_R11_0, LIS_R11, ORI_R11_R11_0, SLDI_R11_R11_34): Define.
1045 (PADDI_R12_PC, PLD_R12_PC, D34, HA34): Define.
1046 (struct ppc_link_hash_table): Add powerxx_stubs.
1047 (ppc64_elf_check_relocs): Set powerxx_stubs.
1048 (build_powerxx_offset, size_powerxx_offset),
1049 (num_relocs_for_powerxx_offset),
1050 (emit_relocs_for_powerxx_offset): New functions.
1051 (plt_stub_size): Size powerxx stubs.
1052 (ppc_build_one_stub): Emit powerxx stubs.
1053 (ppc_size_one_stub): Size powerxx stubs. Omit .eh_frame for
1054 powerxx stubs.
1055
4a421c53
AM
10562019-05-24 Alan Modra <amodra@gmail.com>
1057
1058 * elf64-ppc.c (ppc64_elf_check_relocs): Set has_gotrel for
1059 R_PPC64_GOT_PCREL34.
1060 (xlate_pcrel_opt): New function.
1061 (ppc64_elf_edit_toc): Handle R_PPC64_GOT_PCREL34.
1062 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
1063 for R_PPC64_GOT_PCREL34. Implement R_PPC64_PCREL_OPT optimisation.
1064
5663e321
AM
10652019-05-24 Alan Modra <amodra@gmail.com>
1066
1067 * reloc.c (BFD_RELOC_PPC64_D34, BFD_RELOC_PPC64_D34_LO),
1068 (BFD_RELOC_PPC64_D34_HI30, BFD_RELOC_PPC64_D34_HA30),
1069 (BFD_RELOC_PPC64_PCREL34, BFD_RELOC_PPC64_GOT_PCREL34),
1070 (BFD_RELOC_PPC64_PLT_PCREL34),
1071 (BFD_RELOC_PPC64_ADDR16_HIGHER34, BFD_RELOC_PPC64_ADDR16_HIGHERA34),
1072 (BFD_RELOC_PPC64_ADDR16_HIGHEST34, BFD_RELOC_PPC64_ADDR16_HIGHESTA34),
1073 (BFD_RELOC_PPC64_REL16_HIGHER34, BFD_RELOC_PPC64_REL16_HIGHERA34),
1074 (BFD_RELOC_PPC64_REL16_HIGHEST34, BFD_RELOC_PPC64_REL16_HIGHESTA34),
1075 (BFD_RELOC_PPC64_D28, BFD_RELOC_PPC64_PCREL28): New reloc enums.
1076 * elf64-ppc.c (PNOP): Define.
1077 (ppc64_elf_howto_raw): Add reloc howtos for new relocations.
1078 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc numbers.
1079 (ppc64_elf_ha_reloc): Adjust addend for highera34 and highesta34
1080 relocs.
1081 (ppc64_elf_prefix_reloc): New function.
1082 (struct ppc_link_hash_table): Add notoc_plt.
1083 (is_branch_reloc): Add R_PPC64_PLTCALL_NOTOC.
1084 (is_plt_seq_reloc): Add R_PPC64_PLT_PCREL34,
1085 R_PPC64_PLT_PCREL34_NOTOC, and R_PPC64_PLTSEQ_NOTOC.
1086 (ppc64_elf_check_relocs): Handle pcrel got and plt relocs. Set
1087 has_pltcall for section on seeing R_PPC64_PLTCALL_NOTOC. Handle
1088 possible need for dynamic relocs on non-pcrel powerxx relocs.
1089 (dec_dynrel_count): Handle non-pcrel powerxx relocs.
1090 (ppc64_elf_inline_plt): Handle R_PPC64_PLTCALL_NOTOC.
1091 (toc_adjusting_stub_needed): Likewise.
1092 (ppc64_elf_tls_optimize): Handle R_PPC64_PLTSEQ_NOTOC.
1093 (ppc64_elf_relocate_section): Handle new powerxx relocs.
1094 * bfd-in2.h: Regenerate.
1095 * libbfd.h: Regenerate.
1096
fd0de36e
JM
10972019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
1098
45d5293f
JM
1099 * config.bfd (targ_cpu): Process bpf-*-none only if BFD64.
1100 * configure.ac: Set target_size=64 for bpf_elf64_le_vec and
1101 bpf_elf64_be_vec.
1102 * configure: Regenerate.
1103
11042019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
1105
fd0de36e
JM
1106 * configure: Regenerated.
1107 * Makefile.am (ALL_MACHINES): Add cpu-bpf.lo.
1108 (ALL_MACHINES_CFILES): Add cpu-bpf.c.
1109 (BFD64_BACKENDS): Add elf64-bpf.lo.
1110 (BFD64_BACKENDS_CFILES): Add elf64-bpf.c.
1111 * Makefile.in (SOURCE_HFILES): Regenerate.
1112 * config.bfd (targ_cpu): Handle bpf-*-* targets.
1113 * cpu-bpf.c: New file.
1114 * elf64-bpf.c: Likewise.
1115 * targets.c (_bfd_target_vector): Add bpf_elf64_be_vec and
1116 bpf_elf64_le_vec.
1117 * archures.c: Define architecture bfd_arch_bpf and machine
1118 bfd_arch_bpf.
1119 * reloc.c: Define BFD relocations used by the BPF target.
1120 * bfd-in2.h: Regenerated.
1121 * libbfd.h: Likewise.
1122
b0f4fbf8
AM
11232019-05-22 Alan Modra <amodra@gmail.com>
1124
1125 * elf32-arm.c (arm_allocate_glue_section_space): Clear section
1126 contents.
1127
9ec2f606
AM
11282019-05-22 Alan Modra <amodra@gmail.com>
1129
1130 * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
1131 processing on "size error in section".
1132
4decd602
AM
11332019-05-22 Alan Modra <amodra@gmail.com>
1134
1135 * som.c (som_bfd_free_cached_info): Call
1136 _bfd_generic_close_and_cleanup.
1137
b474a202
FS
11382019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
1139
1140 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Generate error
1141 for TLS_TPREL_HI16(/LO16) relocations in shared library.
1142
304f09d0
FS
11432019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
1144
1145 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Add NULL pointer
1146 checks. Search the RELA table for n64 relocations.
1147
3734320d
MF
11482019-05-21 Matthew Fortune <matthew.fortune@mips.com>
1149 Faraz Shahbazker <fshahbazker@wavecomp.com>
1150
1151 * elfxx-mips.c (LA25_BC): New macro.
1152 (mips_elf_link_hash_table)<compact_branches>: New field.
1153 (STUB_JALRC): New macro.
1154 (mipsr6_o32_exec_plt0_entry_compact): New array.
1155 (mipsr6_n32_exec_plt0_entry_compact): Likewise.
1156 (mipsr6_n64_exec_plt0_entry_compact): Likewise.
1157 (mipsr6_exec_plt_entry_compact): Likewise.
1158 (mips_elf_create_la25_stub): Use BC instead of J for stubs
1159 when compact_branches is true.
1160 (_bfd_mips_elf_finish_dynamic_symbol): Choose the compact
1161 PLT for MIPSR6 with compact_branches. Do not reorder the
1162 compact branches PLT. Switch the lazy stub for MIPSR6
1163 with compact_branches to use JALRC.
1164 (mips_finish_exec_plt): Choose the compact PLT0 for MIPSR6
1165 when compact_branches is true.
1166 (_bfd_mips_elf_compact_branches): New function.
1167 * elfxx-mips.h (_bfd_mips_elf_compact_branches): New prototype.
1168
64672071
TC
11692019-05-21 Tamar Christina <tamar.christina@arm.com>
1170
1171 PR ld/24373
1172 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
1173 Fix print formatter.
1174
e6f65e75
AV
11752019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
1176
1177 PR 24460
1178 * elf32-arm.c (get_value_helper): Remove.
1179 (elf32_arm_final_link_relocate): Fix branch future relocations.
1180
739b5c9c
TC
11812019-05-21 Tamar Christina <tamar.christina@arm.com>
1182
1183 PR ld/24373
1184 * bfd-in.h (enum erratum_84319_opts): New
1185 (bfd_elf64_aarch64_set_options, bfd_elf32_aarch64_set_options): Change
1186 int to enum erratum_84319_opts.
1187 * bfd-in2.h: Regenerate.
1188 * elfnn-aarch64.c (struct elf_aarch64_link_hash_table): Change
1189 fix_erratum_843419 to use new enum, remove fix_erratum_843419_adr.
1190 (_bfd_aarch64_add_stub_entry_after): Conditionally create erratum stub.
1191 (aarch64_size_one_stub): Conditionally size erratum 843419 stubs.
1192 (_bfd_aarch64_resize_stubs): Amend comment.
1193 (elfNN_aarch64_size_stubs): Don't generate stubs when no workaround
1194 requested.
1195 (bfd_elfNN_aarch64_set_options): Use new fix_erratum_843419 enum.
1196 (_bfd_aarch64_erratum_843419_branch_to_stub): Implement selection of
1197 erratum workaround.
1198 (clear_erratum_843419_entry): Update erratum conditional.
1199
7622049e
SKS
12002019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1201
1202 PR ld/24571
1203 * bfd/elf32-avr.c (elf32_avr_relax_section): Adjust range check
1204 when computing distance_short_enough.
1205
338ba755
SKS
12062019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1207
1208 PR ld/24564
1209 * bfd/elf32-avr.c (avr_relative_distance_considering_wrap_around):
1210 Wrap around even if distance equals avr_pc_wrap_around.
1211
999b073b
NC
12122019-05-20 Nick Clifton <nickc@redhat.com>
1213
1214 * po/fr.po: Updated French translation.
1215
a7ad558c
AV
12162019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
1217
1218 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add case for Tag_MVE_arch.
1219
a2699ef2
AM
12202019-05-16 Alan Modra <amodra@gmail.com>
1221
1222 * elf32-arm.c (elf32_arm_write_section): Revert last change.
1223
3a1bb98c
AM
12242019-05-15 Alan Modra <amodra@gmail.com>
1225
1226 * elf32-arm.c (elf32_arm_write_section): Don't leave
1227 error case of STM32L4XX_ERRATUM_BRANCH_TO_VENEER with
1228 unitialised section contents.
1229
37d0d091
JH
12302019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
1231
1232 PR 19921
1233 * verilog.c: (VerilogDataWidth): New variable.
1234 (verilog_write_record): Emit bytes in VerilogDataWidth bundles.
1235
79299211
NC
12362019-05-08 Nick Clifton <nickc@redhat.com>
1237
1238 PR 24523
1239 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Return TRUE
1240 rather than FALSE if encountering a non-ELF file.
1241
e1cbf07a
AM
12422019-05-06 Alan Modra <amodra@gmail.com>
1243
1244 * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error.
1245
334d91b9
AM
12462019-05-06 Alan Modra <amodra@gmail.com>
1247
1248 * reloc.c (BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA),
1249 (BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA):
1250 Sort before BFD_RELOC_PPC64_DTPREL16_HIGHESTA entry.
1251 * libbfd.h: Regenerate.
1252 * bfd-in2.h: Regenerate.
1253
a288c270
AM
12542019-05-04 Alan Modra <amodra@gmail.com>
1255
1256 PR 24511
1257 * syms.c (coff_section_type): Only allow '.', '$' and numeric
1258 following the standard section names.
1259 (bfd_decode_symclass): Prioritize section flag tests in
1260 decode_section_type before name tests in coff_section_type.
1261 * plugin.c (bfd_plugin_canonicalize_symtab): Init fake_section
1262 and fake_common_section using BFD_FAKE_SECTION. Use "fake" as
1263 their names and choose standard .text section flags for
1264 fake_section.
1265
2cdc1a97
NC
12662019-05-02 Nick Clifton <nickc@redhat.com>
1267
1268 PR 24493
1269 * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
1270 .gnu.debugaltlink sections as debugging sections.
1271
066f4018
AM
12722019-04-30 Alan Modra <amodra@gmail.com>
1273
1274 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel.
1275 (struct _ppc64_elf_section_data): Likewise.
1276 (ppc64_elf_check_relocs): Set above fields.
1277 (ppc64_elf_edit_toc): Add a pass over GOT relocs.
1278 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
1279 when possible.
1280
c54f1524
L
12812019-04-26 H.J. Lu <hongjiu.lu@intel.com>
1282
1283 PR ld/24486
1284 * elflink.c (elf_link_output_extsym): Don't complain undefined
1285 weak dynamic reference.
1286
68bb0359
SD
12872019-04-25 Sudakshina Das <sudi.das@arm.com>
1288
1289 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): Remove.
1290 (PLT_BTI_TLSDESC_ENTRY_SIZE): Remove.
1291 (PLT_PAC_ENTRY_SIZE, PLT_BTI_PAC_ENTRY_SIZE): Remove.
1292 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): Update.
1293 (elfNN_aarch64_small_plt0_pac_entry): Remove.
1294 (elfNN_aarch64_small_plt0_bti_pac_entry): Remove.
1295 (elfNN_aarch64_small_plt0_bti_entry): Update.
1296 (elfNN_aarch64_small_plt_bti_entry): Update.
1297 (elfNN_aarch64_small_plt_pac_entry): Update.
1298 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): Update.
1299 (setup_plt_values): Setup new entries.
1300 (elfNN_aarch64_finish_dynamic_sections): Remove size change.
1301 (elfNN_aarch64_plt_sym_val): Likewise.
1302
79b8e8ab
JW
13032019-04-22 Jim Wilson <jimw@sifive.com>
1304
1305 * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
1306
fce97736
AM
13072019-04-19 Alan Modra <amodra@gmail.com>
1308
1309 * elf32-s12z.c (elf_backend_can_gc_sections): Don't define
1310
9a7f0679
L
13112019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1312
1313 * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not
1314 building shared object.
1315 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Likewise.
1316
4e84a8f8
L
13172019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1318
1319 PR ld/24458
1320 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86
1321 linker_def.
1322
32c36c3c
AV
13232019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1324
1325 * reloc.c (BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM): New internal
1326 relocation.
1327 * bfd-in2.h: Regenerate.
1328 * libbfd.h: Likewise.
1329
60f993ce
AV
13302019-04-15 Sudakshina Das <sudi.das@arm.com>
1331
1332 * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New.
1333 * bfd-in2.h: Regenerated.
1334 * libbfd.h: Regenerated.
1335
f6b2b12d
AV
13362019-04-15 Sudakshina Das <sudi.das@arm.com>
1337
1338 * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation.
1339 * bfd-in2.h: Regenerated.
1340 * libbfd.h: Likewise.
1341
1889da70
AV
13422019-04-15 Sudakshina Das <sudi.das@arm.com>
1343
1344 * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New.
1345 * bfd-in2.h: Regenerated.
1346 * libbfd.h: Regenerated.
1347 * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13.
1348 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13
1349 and R_ARM_THM_BF12 together.
1350 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13.
1351
1caf72a5
AV
13522019-04-15 Sudakshina Das <sudi.das@arm.com>
1353
1354 * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New
1355 * libbfd.h: Regenerated.
1356 * bfd-in2.h: Regenerated.
1357 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18.
1358 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19
1359 and R_ARM_THM_BF18 together.
1360 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19.
1361
e5d6e09e
AV
13622019-04-15 Sudakshina Das <sudi.das@arm.com>
1363
1364 * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum.
1365 * bfd-in2.h: Regenerated.
1366 * libbfd.h: Regenerated.
1367 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16.
1368 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17
1369 and R_ARM_THM_BF16 together.
1370 (get_value_helper): New reloc helper.
1371 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16.
1372
e12437dc
AV
13732019-04-15 Sudakshina Das <sudi.das@arm.com>
1374
1375 * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
1376 * bfd-in2.h: Regenerate.
1377 * libbfd.h: Regenerate.
1378
031254f2
AV
13792019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1380
1381 * archures.c (bfd_mach_arm_8_1M_MAIN): Define.
1382 * bfd-in2.h: Regenerate.
1383 * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline.
1384 * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline
1385 and update assert.
1386 (using_thumb2): Likewise.
1387 (using_thumb2_bl): Update assert.
1388 (arch_has_arm_nop): Likewise.
1389 (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline.
1390 (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging.
1391
233a0083
L
13922019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1393
1394 * elf-linker-x86.h (elf_x86_cet_report): New.
1395 (elf_linker_x86_params): Add cet_report.
1396 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
1397 missing IBT and SHSTK properties if needed.
1398
a0ea3a14
L
13992019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1400
ca4e6331 1401 PR ld/24436
a0ea3a14
L
1402 * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of
1403 "h != NULL". Don't check "h != NULL" before calling.
1404 bfd_elf_gc_record_vtentry.
1405 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
1406 * elf32-bfin.c (bfin_check_relocs): Likewise.
1407 * elf32-cris.c (cris_elf_check_relocs): Likewise.
1408 * elf32-csky.c (csky_elf_check_relocs): Likewise.
1409 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
1410 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
1411 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
1412 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
1413 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
1414 * elf32-i386.c (elf_i386_check_relocs): Likewise.
1415 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1416 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
1417 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
1418 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
1419 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
1420 * elf32-metag.c (elf_metag_check_relocs): Likewise.
1421 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
1422 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
1423 * elf32-s390.c (elf_s390_check_relocs): Likewise.
1424 * elf32-sh.c (sh_elf_check_relocs): Likewise.
1425 * elf32-v850.c (v850_elf_check_relocs): Likewise.
1426 * elf32-vax.c (elf_vax_check_relocs): Likewise.
1427 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
1428 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
1429 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
1430 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1431 * elf64-s390.c (elf_s390_check_relocs): Likewise.
1432 * elf64-x86-64.c (elf_s390_check_relocs): Likewise.
1433 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
1434 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
1435 * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt
1436 VTENTRY entry.
1437
9bff840e
AM
14382019-04-11 Alan Modra <amodra@gmail.com>
1439
1440 PR 24435
1441 * elflink.c (elf_link_add_object_symbols): Don't read partial
1442 dynamic entries from fuzzed objects.
1443
ce12121b
TC
14442019-04-11 Tamar Christina <tamar.christina@arm.com>
1445
1446 PR ld/24302
1447 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit
1448 DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW.
1449 (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW.
1450
b05971a6
MF
14512019-04-10 Michael Forney <mforney@mforney.org>
1452
1453 PR 24427
1454 * doc/chew.c (free_words): Correctly free "push_text" strings.
1455
3ae61bb6
L
14562019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1457
1458 * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets.
1459
5f2a6b85
AM
14602019-04-08 Alan Modra <amodra@gmail.com>
1461
1462 * configure.ac (elfxx_x86): Define and use.
1463 * configure: Regenerate.
1464
5b9c07b2
L
14652019-04-06 H.J. Lu <hongjiu.lu@intel.com>
1466
1467 * elf-linker-x86.h: New file.
1468 * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params
1469 to get x86-specific linker options.
1470 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
1471 (elf_x86_64_check_relocs): Likewise.
1472 (elf_x86_64_relocate_section): Likewise.
1473 (elf_x86_64_link_setup_gnu_properties): Likewise.
1474 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise.
1475 (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
1476 (_bfd_elf_linker_x86_set_options): New function.
1477 * elfxx-x86.h: Include "elf-linker-x86.h".
1478 (elf_x86_link_hash_table): Add params.
1479
4b24dd1a
AM
14802019-04-03 Alan Modra <amodra@gmail.com>
1481
1482 * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c,
1483 * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c,
1484 * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c,
1485 * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c,
1486 * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c,
1487 * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes.
1488
87f98bac
JW
14892019-04-02 Jim Wilson <jimw@sifive.com>
1490
1491 PR 24389
1492 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
1493 ELF header flags to after check for ELF object file. Loop through
1494 sections looking for code sections, if none, then skip ABI checks.
1495
ae2b14c7
JW
14962019-03-30 Andrew Waterman <andrew@sifive.com>
1497
1498 * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for
1499 rd == X_RA case.
1500
2487ef07
MF
15012019-03-29 Max Filippov <jcmvbkbc@gmail.com>
1502
1503 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
1504 info->export_dynamic to the conditional.
1505
242a1159
AM
15062019-03-28 Alan Modra <amodra@gmail.com>
1507
1508 PR 24392
1509 * configure.ac: Invoke AC_CHECK_SIZEOF(int).
1510 * configure: Regenerate.
1511 * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
1512 workaround with SIZEOF_LONG vs. SIZEOF_INT check.
1513 * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
1514 * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
1515 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
1516
a9f5a551
JW
15172019-03-21 Jim Wilson <jimw@sifive.com>
1518
1519 PR 24365
1520 * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check,
1521 verify sym non-NULL before using. Add identical check using h.
1522
4e539114
SD
15232019-03-21 Sudakshina Das <sudi.das@arm.com>
1524
1525 * elf-bfd.h (struct elf_backend_data): Add argument to
1526 merge_gnu_properties.
1527 * elf-properties.c (elf_merge_gnu_properties): Add argument to
1528 itself and while calling bed->merge_gnu_properties.
1529 (elf_merge_gnu_property_list): Update the calls for
1530 elf_merge_gnu_properties.
1531 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
1532 of --force-bti warning and add argument.
1533 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
1534 warning.
1535 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
1536 * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
1537 declaration.
1538
acde6c6b
SD
15392019-03-20 Sudakshina Das <sudi.das@arm.com>
1540
1541 * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define.
1542 * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare.
1543 (elf_backend_fixup_gnu_properties): Define for AArch64.
1544
8cd1fe1b
AM
15452019-03-18 Alan Modra <amodra@gmail.com>
1546
1547 PR 24355
1548 * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
1549 for local iplt syms with ent->plt.offset == -1. Remove ineffective
1550 attempt at writing glink stubs only once.
1551
6835821b
AM
15522019-03-16 Alan Modra <amodra@gmail.com>
1553
1554 PR 24337
1555 * elf.c (_bfd_elf_rela_local_sym): Revert last change.
1556 (_bfd_elf_rel_local_sym): Likewise.
1557 * elflink.c (elf_link_input_bfd): Use bfd_und_section for
1558 section of symbols with unrecognized shndx.
1559
2219ae0b
L
15602019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1561
1562 PR ld/24267
1563 * coffgen.c (_bfd_coff_section_already_linked): Skip discarded
1564 section.
1565 * cofflink.c (coff_link_add_symbols): Check for symbols defined
1566 in discarded section.
1567
fe3fef62
AM
15682019-03-15 Alan Modra <amodra@gmail.com>
1569
1570 PR 24339
1571 * elflink.c (elf_link_add_object_symbols): Bail out on a local
1572 symbol after globals if elf_bad_symtab is not set.
1573
1ff31e13
AM
15742019-03-15 Alan Modra <amodra@gmail.com>
1575
1576 PR 24337
1577 * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec.
1578 (_bfd_elf_rel_local_sym): Likewise.
1579
f55b1e32
AM
15802019-03-15 Alan Modra <amodra@gmail.com>
1581
1582 PR 24336
1583 * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed
1584 object files with sh_size not a multiple of sh_entsize.
1585
da0d12d2
L
15862019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1587
418d4036
L
1588 PR ld/24338
1589 * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt
1590 input with bad relocation.
1591
159222019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1593
da0d12d2
L
1594 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
1595
d7f848c3
NC
15962019-03-14 Nick Clifton <nickc@redhat.com>
1597
1598 PR 24334
1599 * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field.
1600 (save_section_vma): Initialise field to the number of entries in
1601 the sec_vma table.
1602 (section_vma_same): Check that the number of entries in the
1603 sec_vma table matches the number of sections in the bfd.
1604
6cc71b82
NC
16052019-03-14 Nick Clifton <nickc@redhat.com>
1606
1607 PR 24333
1608 * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL
1609 section owner pointer when adding the default symbol.
1610
be22c732
NC
16112019-03-14 Nick Clifton <nickc@redhat.com>
1612
1613 PR 24332
1614 * elflink.c (elf_link_add_object_symbols): Add new local variable
1615 extversym_end. Initialise it to point to the end of the version
1616 symbol table, if present. Check it when initialising and updating
1617 the ever pointer.
1618
1dbade74
SD
16192019-03-13 Sudakshina Das <sudi.das@arm.com>
1620
1621 * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New.
1622 (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New.
1623 (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs.
1624 (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC
1625 and PLT_PAC_PLT.
1626 (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC.
1627 (get_plt_type): Add case for DT_AARCH64_PAC_PLT.
1628 (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC.
1629
37c18eed
SD
16302019-03-13 Sudakshina Das <sudi.das@arm.com>
1631 Szabolcs Nagy <szabolcs.nagy@arm.com>
1632
1633 * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New.
1634 (aarch64_bti_pac_info): New.
1635 (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument.
1636 (bfd_elf32_aarch64_set_options): Likewise.
1637 * bfd-in2.h: Regenerate
1638 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New.
1639 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New.
1640 (elfNN_aarch64_small_plt0_bti_entry): New.
1641 (elfNN_aarch64_small_plt_bti_entry): New.
1642 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New.
1643 (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields.
1644 (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and
1645 tlsdesc_plt_entry_size fields.
1646 (elfNN_aarch64_link_hash_table_create): Initialise the new fields.
1647 (setup_plt_values): New helper function.
1648 (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and
1649 bti enable type.
1650 (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of
1651 fixed macros.
1652 (elfNN_aarch64_size_dynamic_sections): Likewise and add checks.
1653 (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers
1654 to plt stubs instead of fixed ones and update filling them according
1655 to the need for bti.
1656 (elfNN_aarch64_init_small_plt0_entry): Likewise.
1657 (elfNN_aarch64_finish_dynamic_sections): Likewise.
1658 (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New.
1659 (elfNN_aarch64_plt_sym_val): Update size accordingly.
1660 (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE
1661 is set.
1662 (bfd_elfNN_get_synthetic_symtab): Define.
1663 (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti
1664 and mising BTI NOTE SECTION.
1665
1666
cd702818
SD
16672019-03-13 Sudakshina Das <sudi.das@arm.com>
1668
1669 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude
1670 linker created inputs from merge.
1671 * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for
1672 GNU_PROPERTY_AARCH64_FEATURE_1_AND properties.
1673 (elfNN_aarch64_link_setup_gnu_properties): New.
1674 (elfNN_aarch64_merge_gnu_properties): New.
1675 (elf_backend_setup_gnu_properties): Define for AArch64.
1676 (elf_backend_merge_gnu_properties): Likewise.
1677 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define.
1678 (_bfd_aarch64_elf_parse_gnu_properties): Define.
1679 (_bfd_aarch64_elf_merge_gnu_properties): Define.
1680 * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare.
1681 (_bfd_aarch64_elf_parse_gnu_properties): Declare.
1682 (_bfd_aarch64_elf_merge_gnu_properties): Declare.
1683 (elf_backend_parse_gnu_properties): Define for AArch64.
1684
44b27f95
L
16852019-03-13 H.J. Lu <hongjiu.lu@intel.com>
1686
1687 PR ld/24322
1688 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly
1689 merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK].
1690
7a6e0d89
AM
16912019-03-12 Alan Modra <amodra@gmail.com>
1692
1693 * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add
1694 nmemb parameter. Use bfd_alloc2.
1695 (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls.
1696 Delete assertion.
1697 (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2.
1698 (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls.
1699 * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation
1700 doesn't overflow.
1701 * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix.
1702 (assign_section_numbers): Style fix.
1703 (swap_out_syms): Use bfd_malloc2.
1704 (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't
1705 overflow.
1706 (_bfd_elf_make_empty_symbol): Style fix.
1707 (elfobj_grok_stapsdt_note_1): Formatting.
1708 * elfcode.h (elf_object_p): Use bfd_alloc2.
1709 (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise.
1710 (elf_slurp_symbol_table): Use bfd_zalloc2.
1711 (elf_slurp_reloc_table): Use bfd_alloc2.
1712 (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2.
1713 * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure
1714 size calculation doesn't overflow.
1715 (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise.
1716 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
1717 * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version.
1718
ebd2263b
AM
17192019-03-08 Alan Modra <amodra@gmail.com>
1720
1721 PR 24311
1722 * merge.c (merge_strings): Return secinfo. Don't pad section
1723 to alignment here.
1724 (_bfd_merge_sections): Pad section to alignment here, if input
1725 sections contributing to merged output all pad to alignment.
1726 Formatting.
1727
219d6836
NC
17282019-03-06 Nick Clifton <nickc@redhat.com>
1729
1730 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
1731 table pointer.
1732 * coffgen.c (coff_find_nearest_line_with_names): Do not call
1733 _bfd_dwarf2_find_symbol_bias if there is no symbol table available.
1734
24801b15
AK
17352019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
1736
1737 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
1738 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1739
1740 PR 20113
1741 * elf32-s390.c (allocate_dynrelocs): Update comment.
1742
4ffd2909
TC
17432019-02-28 Tamar Christina <tamar.christina@arm.com>
1744
1745 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
1746
eed5def8
NC
17472019-02-28 Nick Clifton <nickc@redhat.com>
1748
1749 PR 24273
1750 * elf.c (bfd_elf_string_from_elf_section): Check for a string
1751 section that is not NUL terminated.
1752
5cfe428c
L
17532019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1754
1755 PR ld/24276
1756 * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
1757 by linker when checking copy reloc on protected symbol.
1758
f616c36b
AM
17592019-02-24 Alan Modra <amodra@gmail.com>
1760
1761 PR 24144
1762 * pdp11.c (set_section_contents): Revert 2015-02-24 change.
1763
eed62915
MF
17642019-02-20 Eric Tsai <erictsai@cadence.com>
1765
1766 * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
1767 sections between the call site and call destination and adjust
1768 call distance by the largest alignment.
1769
e6c3b5bf
AH
17702019-02-20 Alan Hayward <alan.hayward@arm.com>
1771
1772 * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
1773 * elf.c (elfcore_grok_aarch_pauth): New function.
1774 (elfcore_grok_note): Check for NT_ARM_PAC_MASK.
1775 (elfcore_write_aarch_pauth): New function.
1776 (elfcore_write_register_note): Check for AArch64 pauth section.
1777
34d75fb5
AM
17782019-02-20 Alan Modra <amodra@gmail.com>
1779
1780 PR 24225
1781 * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
1782 return value.
1783
edd01d07
MR
17842019-02-20 Michael Roitzsch <reactorcontrol@icloud.com>
1785
1786 * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
1787 Darwin hosts, not just or1k.
1788 * configure: Regenerate.
1789
8abac803
AM
17902019-02-20 Alan Modra <amodra@gmail.com>
1791
1792 PR 24236
1793 * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
1794 sentinel NUL to string buffer nearer to loop where it is used.
1795 Don't go past sentinel when scanning strings, and don't write
1796 NUL again.
1797 * archive.c (do_slurp_coff_armap): Simplify string handling to
1798 archive64.c style.
1799
179f2db0
AM
18002019-02-19 Alan Modra <amodra@gmail.com>
1801
1802 PR 24235
1803 * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
1804 attempting to prevent read past end of section.
1805
a31b8bd9
AM
18062019-02-18 Alan Modra <amodra@gmail.com>
1807
1808 PR 24225
1809 * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
1810 PRIx64 to generate warning messages. Print local sym names too.
1811
a0e90a73
CZ
18122019-02-09 Vineet Gupta <vgupta@synopsys.com>
1813
1814 * elf32-arc (INIT_SYM_STRING): Delete.
1815 (FINI_SYM_STRING): Likewise.
1816 (init_str): Likewise.
1817 (fini_str): Likewise.
1818
482f3505
AM
18192019-02-08 Alan Modra <amodra@gmail.com>
1820
1821 * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
1822 for bss-plt" warning to make it an error.
1823
b2abe1bd
EB
18242019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1825
1826 PR ld/18841
1827 * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
1828 reloc_class_ifunc for ifunc symbols.
1829 * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
1830
68a09132
EB
18312019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1832
1833 * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
1834 <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
1835
2012bf01
NC
18362019-02-07 Nick Clifton <nickc@redhat.com>
1837
1838 * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
1839 into the definitely obsolete list.
1840
83924b38
L
18412019-02-05 H.J. Lu <hongjiu.lu@intel.com>
1842
1843 PR ld/24151
1844 * elf64-x86-64.c (elf_x86_64_need_pic): Check
1845 SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
1846 (elf_x86_64_relocate_section): Move PIC check for PC-relative
1847 relocations to ...
1848 (elf_x86_64_check_relocs): Here.
1849 (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
1850 to check if a symbol is defined in a non-shared object.
1851 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
1852
453f8e1e
SDJ
18532019-01-21 Sergio Durigan Junior <sergiodj@redhat.com>
1854
1855 * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
1856 of 'labs' (and fix GCC warning).
1857
9ed1348c
NC
18582019-01-25 Nick Clifton <nickc@redhat.com>
1859
1860 * po/ru.po: Updated Russian translation.
1861
d9938630
NC
18622019-01-23 Nick Clifton <nickc@redhat.com>
1863
1864 * po/fr.po: Updated French translation.
1865
375cd423
NC
18662019-01-21 Nick Clifton <nickc@redhat.com>
1867
1868 * po/pt.po: Updated Portuguese translation.
1869 * po/uk.po: Updated Ukranian translation.
1870
acef8081
YC
18712019-01-21 Yuri Chornoivan <yurchor@ukr.net>
1872
1873 PR 24108
1874 * elf32-nds32.c (nds32_relocate_section): Add space between words
1875 in error message.
1876 * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
1877 error message.
1878 (riscv_i_or_e_p): Likewise.
1879 (riscv_merge_arch_attr_info): Likewise.
1880
f48dfe41
NC
18812019-01-19 Nick Clifton <nickc@redhat.com>
1882
1883 * version.m4: Reset to 2.32.51
1884 * configure: Regenerate.
1885 * po/bfd.pot: Regenerate.
1886
f974f26c
NC
18872018-06-24 Nick Clifton <nickc@redhat.com>
1888
1889 2.32 branch created.
1890
a4bf3d07
JW
18912019-01-16 Kito Cheng <kito@andestech.com>
1892
1893 * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
1894 for OBJ_ATTR_PROC.
1895
2dc8dd17
JW
18962019-01-16 Kito Cheng <kito@andestech.com>
1897 Nelson Chu <nelson@andestech.com>
1898
7d7a7d7c
JW
1899 * elfnn-riscv.c (in_subsets): New.
1900 (out_subsets): Likewise.
1901 (merged_subsets): Likewise.
1902 (riscv_std_ext_p): Likewise.
1903 (riscv_non_std_ext_p): Likewise.
1904 (riscv_std_sv_ext_p): Likewise.
1905 (riscv_non_std_sv_ext_p): Likewise.
1906 (riscv_version_mismatch): Likewise.
1907 (riscv_i_or_e_p): Likewise.
1908 (riscv_merge_std_ext): Likewise.
1909 (riscv_merge_non_std_and_sv_ext): Likewise.
1910 (riscv_merge_arch_attr_info): Likewise.
1911 (riscv_merge_attributes): Likewise.
1912 (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
1913
2dc8dd17
JW
1914 * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
1915 (elf_backend_obj_attrs_vendor): Define.
1916 (elf_backend_obj_attrs_section_type): Likewise.
1917 (elf_backend_obj_attrs_section): Likewise.
1918 (elf_backend_obj_attrs_arg_type): Define as
1919 riscv_elf_obj_attrs_arg_type.
1920 * elfxx-riscv.c (riscv_estimate_digit): New.
1921 (riscv_estimate_arch_strlen1): Likewise.
1922 (riscv_estimate_arch_strlen): Likewise.
1923 (riscv_arch_str1): Likewise.
1924 (riscv_arch_str): Likewise.
1925 * elfxx-riscv.h (riscv_arch_str): Declare.
1926
d5dcaf1b
JD
19272019-01-14 John Darrington <john@darrington.wattle.id.au>
1928
1929 * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
1930 * libbfd.h: regen.
1931 * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
1932 source field. (md_apply_fix): Apply final fix
1933 to BFD_RELOC_S12Z_OPR.
1934 * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
1935
5a12586d
MT
19362019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1937
f466c305 1938 PR 20113
5a12586d
MT
1939 * elf32-s390.c (allocate_dynrelocs): Update comment.
1940
3107326d
AP
19412019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1942
1943 * warning.m4: Adjust egrep pattern for non-GNU compilers.
1944 * configure: Regenerate.
1945
a9859e01
AM
19462019-01-08 Alan Modra <amodra@gmail.com>
1947
1948 PR 23699
1949 PR 24065
1950 * ihex.c (ihex_write_object_contents): Properly check 32-bit
1951 address range.
1952
c8c89dac
YS
19532019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1954
1955 * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
1956 * bfd/bfd-in2.h: Regenerate.
1957 * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
1958 * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
1959
d9858c37
LX
19602019-01-04 Lifang Xia <lifang_xia@c-sky.com>
1961
1962 * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
1963 default target, little endian target is more suitable.
1964
677bd4c6
AM
19652019-01-04 Alan Modra <amodra@gmail.com>
1966
1967 PR 24061
1968 PR 21786
1969 * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
1970 adjust all callers.
1971 (EQ_VALUE_IN_FIELD): Likewise.
1972 * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
1973
82704155
AM
19742019-01-01 Alan Modra <amodra@gmail.com>
1975
1976 Update year range in copyright notice of all files.
1977
d5c04e1b 1978For older changes see ChangeLog-2018
3499769a 1979\f
d5c04e1b 1980Copyright (C) 2019 Free Software Foundation, Inc.
3499769a
AM
1981
1982Copying and distribution of this file, with or without modification,
1983are permitted in any medium without royalty provided the copyright
1984notice and this notice are preserved.
1985
1986Local Variables:
1987mode: change-log
1988left-margin: 8
1989fill-column: 74
1990version-control: never
1991End:
This page took 0.572733 seconds and 4 git commands to generate.