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