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