]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
3e7bd7f2
JW
12019-08-31 Jim Wilson <jimw@sifive.com>
2
3 PR 23825
4 * elfnn-riscv.c (riscv_elf_create_dynamic_sections): Add SEC_LOAD,
5 SEC_DATA, and SEC_HAS_CONTENTS to .tdata.dyn section.
6
fdd50269
JW
72019-08-30 Jim Wilson <jimw@sifive.com>
8
9 * elfnn-riscv.c (riscv_elf_relocate_section): For unresolvable reloc
10 error, call bfd_set_error, set ret to FALSE, and goto out label.
11
6744bcad
L
122019-08-30 H.J. Lu <hongjiu.lu@intel.com>
13
14 PR ld/24951
15 * archive.c (_bfd_get_elt_at_filepos): Copy BFD_COMPRESS,
16 BFD_DECOMPRESS and BFD_COMPRESS_GABI flags for thin archive.
17
c0d9f31d
AM
182019-08-29 Alan Modra <amodra@gmail.com>
19
20 PR 24697
21 * elf32-ppc.c (ppc_elf_check_relocs): Call bad_shared_reloc
22 when !bfd_link_executable for R_PPC_EMB_SDA2I16 and
23 R_PPC_EMB_SDA2REL. Don't call bad_shared_reloc for any other
24 reloc.
25
dd9b12c2
AM
262019-08-29 Alan Modra <amodra@gmail.com>
27
28 * elf64-ppc.c (xlate_pcrel_opt): Add poff parameter. Allow offset
29 on second insn, return it in poff.
30 (ppc64_elf_relocate_section): Add offset to paddi addend for
31 PCREL_OPT.
32
507685a3
JW
332019-08-28 Jim Wilson <jimw@sifive.com>
34
35 * elfnn-riscv.c (_bfd_riscv_relax_lui): Add check to exclude abs
36 section when setting max_alignment. Update comment.
37 (_bfd_riscv_relax_pc): Likewise.
38
83cf0d04
AM
392019-08-29 Alan Modra <amodra@gmail.com>
40
41 PR 24891
42 * bfd.c (struct bfd): Add no_element_cache.
43 * archive.c (_bfd_get_elt_at_filepos): Don't add element to
44 archive cache when no_element_cache.
45 (bfd_generic_archive_p): Set no_element_cache when opening first
46 element to check format. Close first element too.
47 (do_slurp_bsd_armap): Don't zero ardata->cache here.
48 * bfd-in2.h: Regenerate.
49
6d5554a6
AM
502019-08-24 Alan Modra <amodra@gmail.com>
51
52 * elf64-ppc.c (ppc64_elf_edit_toc): Exclude undefined weak
53 symbols from GOT optimisation.
54
09f7b0de
SH
552019-08-23 Stafford Horne <shorne@gmail.com>
56
57 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Use correct value for
58 PLT GOT entries.
59
a7ba3896
NC
602019-08-23 Nick Clifton <nickc@redhat.com>
61
62 PR 24456
63 * elf.c (bfd_section_from_shdr): Issue an informative warning
64 message and continue processing other sections after encountering
65 a reloc section for a section which already has other relocs
66 associated with it.
67
2600d80c
AM
682019-08-23 Alan Modra <amodra@gmail.com>
69
70 PR 24933
71 * elfxx-x86.c (_bfd_x86_elf_get_synthetic_symtab): Don't exit
72 on error without freeing plts[] contents.
73
0535e5d7
DZ
742019-08-22 Dennis Zhang <dennis.zhang@arm.com>
75
76 * cpu-arm.c: New entries for Cortex-M35P, Cortex-A77, Cortex-A76AE.
77
03da31c6
NC
782019-08-22 Nick Clifton <nickc@redhat.com>
79
80 PR 24922
81 * pei-x86_64.c (pex64_xdata_print_uwd_codes): Add checks before
82 reading data from extra records.
83
652afeef
TC
842019-08-22 Tamar Christina <tamar.christina@arm.com>
85
86 PR ld/24601
87 * elfnn-aarch64.c (aarch64_relocate): Handle weak TLS and undefined TLS.
88 Also Pass input_bfd to _bfd_aarch64_elf_resolve_relocation.
89 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use it.
90 * elfxx-aarch64.h (_bfd_aarch64_elf_resolve_relocation): Emit warning
91 for weak TLS.
92
baf46cd7
AM
932019-08-22 Alan Modra <amodra@gmail.com>
94
95 * elf32-arm.c (cmse_scan): Don't use ARM_GET_SYM_CMSE_SPCL,
96 instead recognize CMSE_PREFIX in symbol name.
97 (elf32_arm_gc_mark_extra_sections): Likewise.
98 (elf32_arm_filter_cmse_symbols): Don't test ARM_GET_SYM_CMSE_SPCL.
99 (elf32_arm_swap_symbol_in): Don't invoke ARM_SET_SYM_CMSE_SPCL.
100
546053ac
DZ
1012019-08-20 Dennis Zhang <dennis.zhang@arm.com>
102
103 * cpu-aarch64.c: New entries for Cortex-A34, Cortex-A65,
104 Cortex-A77, cortex-A65AE, and Cortex-A76AE.
105
b4e87f2c
TC
1062019-08-20 Tamar Christina <tamar.christina@arm.com>
107
108 * elf32-arm.c (elf32_thumb2_plt_entry, elf32_arm_plt_thumb_stub,
109 elf32_arm_stub_long_branch_v4t_thumb_thumb,
110 elf32_arm_stub_long_branch_v4t_thumb_arm,
111 elf32_arm_stub_short_branch_v4t_thumb_arm,
112 elf32_arm_stub_long_branch_v4t_thumb_arm_pic,
113 elf32_arm_stub_long_branch_v4t_thumb_thumb_pic,
114 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): Change nop to branch to
115 previous instruction.
116
3eb185c9
TT
1172019-08-19 Tom Tromey <tromey@adacore.com>
118
119 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Create hash table
120 holding symbols.
121
903b777d
AM
1222019-08-19 Alan Modra <amodra@gmail.com>
123
124 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename has_gotrel
125 to has_optrel.
126 (struct _ppc64_elf_section_data): Likewise.
127 (ppc64_elf_check_relocs): Set has_optrel for more relocs.
128 (ppc64_elf_edit_toc): Do ha/lo insn checks in GOT loop rather
129 than TOC loop. Check PLT16 insns too.
130
81e8046d
L
1312019-08-16 H.J. Lu <hongjiu.lu@intel.com>
132
133 PR ld/24905
134 * elf64-x86-64.c (elf_x86_64_check_relocs): Move PIC check for
135 PC-relative relocations back to ...
136 (elf_x86_64_relocate_section): Here.
137
b4c555cf
ML
1382019-08-16 Martin Liska <mliska@suse.cz>
139
140 PR ld/24912
141 * elflink.c: Report error only for not relocatable.
142 * linker.c (_bfd_generic_link_add_one_symbol): Do not handle
143 here lto_slim_object as it's handled in caller.
144
63f6e94f
AM
1452019-08-16 Alan Modra <amodra@gmail.com>
146
147 * elf32-ppc.c (ppc_elf_relocate_section): Optimize unaligned relocs.
148
080a4883
JW
1492019-08-15 Jim Wilson <jimw@sifive.com>
150
151 * elfnn-riscv.c (perform_relocation) <R_RISCV_RVC_LUI>: If
152 RISCV_CONST_HIGH_PART (value) is zero, then convert c.lui instruction
153 to c.li instruction, and use ENCODE_RVC_IMM to set value.
154
05192282
TT
1552019-08-15 Tom Tromey <tromey@adacore.com>
156
157 * dwarf2.c (scan_unit_for_symbols): Check for end of CU, not end
158 of section.
159
dfc19da6
AM
1602019-08-14 Alan Modra <amodra@gmail.com>
161
162 PR 24623
163 * dwarf2.c (stash_comp_unit): New function, extracted from..
164 (_bfd_dwarf2_find_nearest_line): ..here.
165 (find_abstract_instance): Parse comp units and decode line info
166 as needed.
167
c327a44f
AM
1682019-08-14 Alan Modra <amodra@gmail.com>
169
170 * dwarf2.c (comp_unit_maybe_decode_line_info): Declare.
171 (comp_unit_find_nearest_line): Use it here..
172 (_bfd_dwarf2_find_symbol_bias): ..and here.
173
9defd221
AM
1742019-08-14 Alan Modra <amodra@gmail.com>
175
176 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove addr_size parameter.
177 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
178 * coffgen.c (coff_find_nearest_line_with_names): Adjust
179 _bfd_dwarf2_find_nearest_line calls.
180 * elf.c (_bfd_elf_find_nearest_line, _bfd_elf_find_line): Likewise.
181 * elf32-arm.c (elf32_arm_find_nearest_line): Likewise.
182 * elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise.
183 * elfnn-aarch64.c (elfNN_aarch64_find_nearest_line): Likewise.
184 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise.
185 * mach-o.c (bfd_mach_o_find_nearest_line): Likewise.
186 * libbfd.h: Regenerate.
187
f16a9783
MS
1882019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
189
190 * elf-bfd.h (struct elf_backend_data): New members.
191 * elflink.c (_bfd_elf_link_create_dynamic_sections): Create
192 .gnu.hash section if necessary.
193 (struct collect_gnu_hash_codes): New member.
194 (elf_gnu_hash_process_symidx): New function name.
195 (elf_renumber_gnu_hash_syms): Ignore local and undefined
196 symbols. Record xlat location for every symbol which should have
197 a .MIPS.xhash entry.
198 (bfd_elf_size_dynamic_sections): Add DT_GNU_HASH dynamic tag to
199 dynamic section if necessary.
200 (GNU_HASH_SECTION_NAME): New define.
201 (bfd_elf_size_dynsym_hash_dynstr): Get .MIPS.xhash section.
202 Update the section size info.
203 * elfxx-mips.c (struct mips_elf_hash_sort_data): New members.
204 (struct mips_elf_link_hash_entry): New member.
205 (mips_elf_link_hash_newfunc): Initialize .MIPS.xhash translation
206 table location.
207 (mips_elf_sort_hash_table): Initialize the pointer to the
208 .MIPS.xhash section.
209 (mips_elf_sort_hash_table_f): Populate the .MIPS.xhash
210 translation table entry with the symbol dynindx.
211 (_bfd_mips_elf_section_from_shdr): Add SHT_MIPS_XHASH.
212 (_bfd_mips_elf_fake_sections): Initialize .MIPS.xhash section
213 info.
214 (_bfd_mips_elf_create_dynamic_sections): Create .MIPS.xhash
215 section.
216 (_bfd_mips_elf_size_dynamic_sections): Add DT_MIPS_XHASH tag to
217 dynamic section.
218 (_bfd_mips_elf_finish_synamic_sections): Add DT_MIPS_XHASH.
219 (_bfd_mips_elf_final_write_processing): Set .MIPS.xhash section
220 sh_link info.
221 (_bfd_mips_elf_get_target_dtag): Get DT_MIPS_XHASH tag.
222 (MIPS_LIBC_ABI_XHASH): New ABI version enum value.
223 (_bfd_mips_post_process_headers): Mark the ABI version as
224 MIPS_LIBC_ABI_XHASH if there exists a .MIPS.xhash section,
225 but not a .hash section.
226 (_bfd_mips_elf_record_xhash_symbol): New function. Record a
227 position in the translation table, associated with the hash
228 entry.
229 * elfxx-mips.h (literal_reloc_p): Define
230 elf_backend_record_xhash_symbol backend hook.
231 * elfxx-target.h: Initialize elf_backend_record_xhash_symbol
232 backend hook.
233
fc8de8e2
JM
2342019-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
235
236 * elf64-bpf.c (bpf_elf_relocate_section): New function.
237 (bpf_elf_insn_disp_reloc): Delete function.
238 (elf_backend_relocate_section): Define.
239
97b031c5
AM
2402019-08-07 Alan Modra <amodra@gmail.com>
241
242 PR 24644
243 * archive64.c (_bfd_archive_64_bit_slurp_armap): Properly check
244 for overflow in expressions involving nsymz.
245
0f52d45a
JW
2462019-08-01 Ilia Diachkov <ilia.diachkov@optimitech.com>
247
248 * elfnn-riscv.c (_bfd_riscv_relax_lui): Set lui relax safety area to
249 two pages in relro presence.
250
e0d0c518
MF
2512019-08-01 Max Filippov <jcmvbkbc@gmail.com>
252
253 * elf32-xtensa.c (insn_num_slots, get_rsr_lend_opcode)
254 (get_wsr_lbeg_opcode): New functions.
255 (check_loop_aligned): Detect relaxed loops and adjust loop_len
256 and insn_len for the first actual instruction of the loop.
257
34d5c40a
AM
2582019-07-30 Alan Modra <amodra@gmail.com>
259
260 PR 24768
261 * bfd.c (struct bfd): Add lto_slim_object flag.
262 * bfd-in2.h: Regenerate.
263
cc5277b1
ML
2642019-07-29 Martin Liska <mliska@suse.cz>
265
266 PR 24768
267 * archive.c (_bfd_compute_and_write_armap): Come up with
268 report_plugin_err variable.
269 * bfd-in2.h (struct bfd): Add lto_slim_object flag.
270 * elf.c (struct lto_section): New.
271 (_bfd_elf_make_section_from_shdr): Parse content of
272 .gnu_lto_.lto section.
273 * elflink.c: Report error for a missing LTO plugin.
274 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
275
4538d1c7
AM
2762019-07-28 Alan Modra <amodra@gmail.com>
277
278 PR 24857
279 PR 24339
280 * elflink.c (elf_link_add_object_symbols): Report an informative
281 error on finding local symbols with index equal or greater than
282 symbol table sh_info. Correct comment. Allow such symbols in
283 dynamic objects. Abort on NULL section for symbol.
284
6dd17ae0
AM
2852019-07-26 Alan Modra <amodra@gmail.com>
286
287 * elf-bfd.h (struct output_elf_obj_tdata): Delete "linker" field.
288 (elf_linker): Don't define.
289 * elflink.c (bfd_elf_final_link): Don't set elf_linker.
290
c7c860d2
YS
2912019-07-25 YunQiang Su <syq@debian.org>
292
293 PR 24832
294 * elfxx-mips.c (mips_set_isa_flags): Default to MIPS 3 for 64-bit
295 mips inputs.
296
95967518
CZ
2972019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
298
299 * elf32-arc.c (bfd_get_32_me): Add a small description, fix
300 formating.
301 (reloc_type_to_name): Fix formating.
302 (arc_elf_object_p): Likewise.
303 (debug_arc_reloc): Likewise.
304 (arc_do_relocation): Likewise.
305
ef551643
CZ
3062019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
307
308 * elf32-arc.c (bfd_get_32_me): New function.
309 (bfd_put_32_me): Likewise.
310 (arc_elf_relax_section): Likewise.
311 (bfd_elf32_bfd_relax_section): Define.
312
cc364be6
AM
3132019-07-24 Alan Modra <amodra@gmail.com>
314
315 * elf-bfd.h (struct elf_backend_data): Return bfd_boolean from
316 elf_backend_final_write_processing, don't pass linker arg.
317 (_bfd_elf_final_write_processing): Update prototype.
318 * elf.c (_bfd_elf_write_object_contents): Adjust call.
319 (_bfd_elf_final_write_processing): Return error on incompatible
320 OSABI and has_gnu_osabi. Remove linker arg.
321 * elf-nacl.h (nacl_final_write_processing): Update prototype.
322 * elf-vxworks.h (elf_vxworks_final_write_processing): Likewise.
323 * elfxx-mips.h (_bfd_mips_final_write_processing): Likewise.
324 (_bfd_mips_elf_final_write_processing): Likewise.
325 * elf-hppa.h (elf_hppa_final_write_processing): Return status
326 and remove linker arg.
327 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
328 * elf-nacl.c (nacl_final_write_processing): Likewise.
329 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
330 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
331 * elf32-arm.c (arm_final_write_processing): Likewise.
332 (elf32_arm_final_write_processing): Likewise.
333 (elf32_arm_nacl_final_write_processing): Likewise.
334 (elf32_arm_vxworks_final_write_processing): Likewise.
335 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
336 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
337 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
338 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
339 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
340 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
341 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
342 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
343 * elf32-mips.c (mips_vxworks_final_write_processing): Likewise.
344 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
345 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
346 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
347 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
348 * elf32-ppc.c (ppc_final_write_processing): Likewise.
349 (ppc_elf_final_write_processing): Likewise.
350 (ppc_elf_vxworks_final_write_processing): Likewise.
351 * elf32-sparc.c (sparc_final_write_processing): Likewise.
352 (elf32_sparc_final_write_processing): Likewise.
353 (elf32_sparc_vxworks_final_write_processing): Likewise.
354 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
355 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
356 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
357 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
358 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
359 * elfxx-mips.c (_bfd_mips_final_write_processing): Likewise.
360 (_bfd_mips_elf_final_write_processing): Likewise.
361
c5e20471
AM
3622019-07-24 Alan Modra <amodra@gmail.com>
363
364 * elf-vxworks.c (elf_vxworks_final_write_processing): Don't return
365 early.
366 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
367 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
368
7613ca5e
AM
3692019-07-24 Alan Modra <amodra@gmail.com>
370
371 * elf32-visium.c (visium_elf_post_process_headers): Don't set
372 EI_OSABI header byte here.
373 (ELF_OSABI): Define.
374
df3a023b
AM
3752019-07-23 Alan Modra <amodra@gmail.com>
376
377 * elf-bfd.h (enum elf_gnu_osabi): Add elf_gnu_osabi_mbind.
378 * elf.c (_bfd_elf_make_section_from_shdr): Set elf_gnu_osabi_mbind.
379 (get_program_header_size): Formatting. Only test SH_GNU_MBIND
380 when elf_gnu_osabi_mbind is set.
381 (_bfd_elf_map_sections_to_segments): Likewise.
382 (_bfd_elf_init_private_section_data): Likewise.
383 (_bfd_elf_final_write_processing): Update comment.
384 * elf64-hppa.c (elf64_hppa_special_sections): Move .tbss entry.
385 (elf_backend_special_sections): Define without .tbss for linux.
386
06f44071
AM
3872019-07-23 Alan Modra <amodra@gmail.com>
388
389 * elf-bfd.h (enum elf_gnu_osabi): Rename from elf_gnu_symbols.
390 Remove none, any, all enums.
391 (struct elf_obj_tdata): Rename has_gnu_symbols field to has_gnu_osabi.
392 (_bfd_elf_final_write_processing): Declare.
393 * elf.c (_bfd_elf_write_object_contents): Unconditionally call
394 elf_backend_final_write_processing.
395 (_bfd_elf_post_process_headers): Move body of function to..
396 (_bfd_elf_final_write_processing): ..here, but set EI_OSABI byte
397 only when not already set. Adjust for rename.
398 * elfxx-target.h (elf_backend_final_write_processing): Default to
399 _bfd_elf_final_write_processing.
400 * elf-hppa.h (elf_hppa_final_write_processing): Call
401 _bfd_elf_final_write_processing.
402 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
403 * elf-nacl.c (nacl_final_write_processing): Likewise.
404 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
405 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
406 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
407 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
408 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
409 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
410 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
411 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
412 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
413 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
414 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
415 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
416 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
417 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
418 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
419 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
420 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
421 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
422 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
423 * elf32-arm.c (arm_final_write_processing): Split out from..
424 (elf32_arm_final_write_processing): ..here. Call
425 _bfd_elf_final_write_processing.
426 (elf32_arm_nacl_final_write_processing): Adjust.
427 * elfxx-mips.c (_bfd_mips_final_write_processing): Split out from..
428 (_bfd_mips_elf_final_write_processing): ..here. Call
429 _bfd_elf_final_write_processing.
430 * elfxx-mips.h (_bfd_mips_final_write_processing): Declare.
431 * elf32-mips.c (mips_vxworks_final_write_processing): Adjust.
432 * elf32-ppc.c (ppc_final_write_processing): Split out from..
433 (ppc_elf_final_write_processing): ..here. Call
434 _bfd_elf_final_write_processing.
435 (ppc_elf_vxworks_final_write_processing): Adjust.
436 * elf32-sparc.c (sparc_final_write_processing): Split out from..
437 (elf32_sparc_final_write_processing): ..here. Call
438 _bfd_elf_final_write_processing.
439 (elf32_sparc_vxworks_final_write_processing): Adjust.
440 * elf32-d10v.c (elf_backend_final_write_processing): Don't define.
441 * elf32-d30v.c (elf_backend_final_write_processing): Don't define.
442 * elf32-m68hc11.c (elf_backend_final_write_processing): Don't define.
443 * elf32-m68hc12.c (elf_backend_final_write_processing): Don't define.
444 * elf32-s12z.c (elf_backend_final_write_processing): Don't define.
445 * elf32-i386.c (elf_i386_check_relocs): Don't set has_gnu_symbols.
446 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
447 * elflink.c (elf_link_add_object_symbols): Likewise.
448 (elf_link_output_symstrtab): Set has_gnu_osabi for symbols here
449 instead.
450
1dd1bc4d
OM
4512019-07-23 Omar Majid <omajid@redhat.com>
452
453 * coffcode.h (coff_set_arch_mach_hook): Handle I386_APPLE_MAGIC,
454 I386_FREEBSD_MAGIC, I386_LINUX_MAGIC, I386_NETBSD_MAGIC,
455 AMD64_APPLE_MAGIC, AMD64_FREEBSD_MAGIC, AMD64_LINUX_MAGIC,
456 AMD64_NETBSD_MAGIC.
457 * peXXigen.c: Add comment about source of .NET magic numbers.
458
c213164a
AM
4592019-07-19 Alan Modra <amodra@gmail.com>
460
461 * reloc.c (BFD_RELOC_PPC64_TPREL34, BFD_RELOC_PPC64_DTPREL34),
462 (BFD_RELOC_PPC64_GOT_TLSGD34, BFD_RELOC_PPC64_GOT_TLSLD34),
463 (BFD_RELOC_PPC64_GOT_TPREL34, BFD_RELOC_PPC64_GOT_DTPREL34),
464 (BFD_RELOC_PPC64_TLS_PCREL): New pcrel tls relocs.
465 * elf64-ppc.c (ppc64_elf_howto_raw): Add howtos for pcrel tls relocs.
466 (ppc64_elf_reloc_type_lookup): Translate pcrel tls relocs.
467 (must_be_dyn_reloc, dec_dynrel_count): Add R_PPC64_TPREL64.
468 (ppc64_elf_check_relocs): Support pcrel tls relocs.
469 (ppc64_elf_tls_optimize, ppc64_elf_relocate_section): Likewise.
470 * bfd-in2.h: Regenerate.
471 * libbfd.h: Regenerate.
472
71c4e95a
AM
4732019-07-18 Alan Modra <amodra@gmail.com>
474
475 * elf64-ppc.c (ppc64_elf_relocate_section): Don't bother selecting
476 a TLS section symbol for edited relocs. Tighten TLS symbol/reloc
477 match test.
478
46e9995a
AM
4792019-07-18 Alan Modra <amodra@gmail.com>
480
481 * elf64-ppc.c (TLS_EXPLICIT): Define as 256.
482 (ppc64_elf_check_relocs): Don't store TLS_EXPLICIT even if char
483 is more than 8 bits.
484 (ppc64_elf_tls_optimize): Likewise. Make tls_set, tls_clear, and
485 tls_type vars unsigned int.
486 (ppc64_elf_relocate_section): Use r_type rather than TLS_EXPLICIT
487 to select r_type edit.
488
b00a0a86
AM
4892019-07-18 Alan Modra <amodra@gmail.com>
490
491 * elf32-ppc.c (TLS_GDIE): Rename from TLS_TPRELGD throughout file.
492 Correct comment.
493 * elf64-ppc.c (TLS_GDIE): Likewise.
494
0b147428
AM
4952019-07-18 Alan Modra <amodra@gmail.com>
496
497 * elf64-ppc.c (ppc64_elf_tls_optimize): Correct test for allowed
498 range of tp-relative offsets.
499
5b9d7a9a
AM
5002019-07-15 Alan Modra <amodra@gmail.com>
501
502 * elflink.c (_bfd_elf_fix_symbol_flags): If the def for an
503 alias is no longer bfd_link_hash_defined, clear the alias.
504
f26a3287
AM
5052019-07-13 Alan Modra <amodra@gmail.com>
506
507 * elflink.c (_bfd_elf_omit_section_dynsym_default): Don't keep
508 tls_sec.
509 (_bfd_elf_init_1_index_section): Prefer not using TLS sections.
510 (_bfd_elf_init_2_index_sections): Likewise.
511 * elf64-ppc.c (ppc64_elf_relocate_section): When emitting dynamic
512 relocations for local TLS symbols, use STN_UNDEF as the relocation
513 symbol.
514 * elf32-ppc.c (ppc_elf_relocate_section): Likewise, and don't
515 leave TLS symbol value in the addend.
516
62a47958
AM
5172019-07-08 Alan Modra <amodra@gmail.com>
518
519 PR 24785
520 * elf32-ppc.c (_bfd_elf_ppc_set_arch): Sanity check .PPC.EMB.apuinfo
521 size before reading first word.
522
1faa385f
NC
5232019-07-02 Nick Clifton <nickc@redhat.com>
524
525 PR 24717
526 * elf.c (is_debuginfo_file): New function.
527 (assign_file_positions_for_non_load_sections): Do not warn about
528 allocated sections outside of loadable segments if they are found
529 in a debuginfo file.
530 * elf-bfd.h (is_debuginfo_file): Prototype.
531
125f83f6
NC
5322019-07-02 Nick Clifton <nickc@redhat.com>
533
534 PR 24753
535 * compress.c (bfd_get_full_section_contents): Do not complain
536 about linker created sections that are larger than the file size.
537
4d83e8d9
CL
5382019-07-02 Christophe Lyon <christophe.lyon@linaro.org>
539
540 * bfd/elf32-arm.c (CMSE_STUB_NAME): New define.
541 (elf32_arm_get_stub_entry): Do not try to emit long-branch stubs
542 for CMSE stubs.
543 (arm_dedicated_stub_output_section_name): Use CMSE_STUB_NAME.
544
bb32413f
SP
5452019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
546
547 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Mark debug
548 sections when .text section contain secure entry functions
549 is marked.
550
539300fb
NC
5512019-07-01 Nick Clifton <nickc@redhat.com>
552
553 PR 23839
554 * elf32-arm.c (elf32_arm_update_relocs): Do not include the
555 section VMA in the offset used to update exidx relocs.
556
7e56c51c
NC
5572019-06-28 Nick Clifton <nickc@redhat.com>
558
559 PR 24708
560 * elf.c (_bfd_elf_slurp_version_tables): Check for an excessively
561 large version reference section.
562 * compress.c (bfd_get_full_section_contents): Check for an
563 uncompressed section whose size is larger than the file size.
564
999d6dff
AM
5652019-06-28 Alan Modra <amodra@gmail.com>
566
567 * format.c (bfd_check_format_matches): Don't match plugin target
568 if another target matches. Expand comment.
569 * targets.c (_bfd_target_vector): Move plugin_vec after all other
570 non-corefile targets, outside !SELECT_VECS.
571 * config.bfd: Don't handle targ=plugin here.
572 * configure.ac: Don't add plugin to enable_targets or handle in
573 target loop setting selvecs and other target vars.
574 * configure: Regenerate.
575
a68aa5d3
NC
5762019-06-26 Nick Clifton <nickc@redhat.com>
577
578 PR 24703
579 * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add error
580 messages for failures.
581 * mach-o.c (bfd_mach_o_canonicalize_relocs): Set an bfd error code
582 if returning an error value.
583
ab9f654c
JB
5842019-06-25 Jan Beulich <jbeulich@suse.com>
585
586 * elf-properties.c (elf_find_and_remove_property): Rename last
587 parameter. Mention it in comment.
588
04b865dc
JW
5892019-06-24 Ilia Diachkov <ilia.diachkov@optimitech.com>
590
591 * elfnn-riscv.c (_bfd_riscv_relax_lui): Delete early exit when
592 SEC_MERGE or SEC_CODE flags are set.
593 (_bfd_riscv_relax_section): New local symtype. Set sym_sec and
594 symtype consistently. Don't include sec_addr (sym_sec) in symval.
595 Add check for SEC_INFO_TYPE_MERGE and call _bfd_merged_section_offset.
596 Add sec_addr (sym_sec) after handling merge sections.
597
f93ab3a0
L
5982019-06-24 H.J. Lu <hongjiu.lu@intel.com>
599
600 PR ld/24721
601 * elf-properties.c (elf_merge_gnu_property_list): Remove the
602 property after reporting property removal.
603
bb22a418
AM
6042019-06-23 Alan Modra <amodra@gmail.com>
605
606 PR 24704
607 * elf64-ppc.c (R_PPC64_GOT16_DS): Don't set has_gotrel.
608 (ppc64_elf_edit_toc): Don't remove R_PPC64_GOT16_DS got entries.
609 Reduce range of offsets allowed for other GOT relocs.
610
14b2a8e4
AM
6112019-06-23 Alan Modra <amodra@gmail.com>
612
613 PR 24689
614 * elfcode.h (elf_object_p): Warning fix.
615
890f750a
AM
6162019-06-21 Alan Modra <amodra@gmail.com>
617
618 PR 24689
619 * elfcode.h (elf_object_p): Check type of e_shstrndx section.
620
6f5601c4
AM
6212019-06-19 Alan Modra <amodra@gmail.com>
622
623 PR 24697
624 * elf32-ppc.c (ppc_elf_relocate_section): Don't read insn for
625 R_PPC_EMB_RELSDA. Mask low bit of R_PPC_EMB_SDA21 r_offset.
626
4a4e7361
AM
6272019-06-19 Alan Modra <amodra@gmail.com>
628
629 * elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for
630 functions that require r2 valid to use local entry.
631 (ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise.
632
39c05d94
SN
6332019-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
634
635 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_dynrelocs): Remove.
636 (elfNN_aarch64_size_dynamic_sections): Remove loc_hash_table traversal
637 with elfNN_aarch64_allocate_local_dynrelocs.
638
e30d1fa1
SN
6392019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
640
641 * elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32.
642
3a3a077c
AM
6432019-06-14 Alan Modra <amodra@gmail.com>
644
645 * Makefile.in: Regenerate.
646 * configure: Regenerate.
647
d4b87b1e
AM
6482019-06-14 Alan Modra <amodra@gmail.com>
649
650 * elf64-ppc.c: Fix comments involving paddi.
651
62e0492f
AL
6522019-06-12 Adam Lackorzymski <adam@os.inf.tu-dresden.de>
653
654 PR 24643
655 * elf32-arm.c (arm_elf_find_function): Fail if the symol table is
656 absent, or the bfd is not in the ELF formart.
657 * elfnn-aarch64.c (aarch64_elf_find_function): Likewise.
658
58e07198
CZ
6592019-06-10 Christos Zoulas <christos@zoulas.com>
660
661 PR 24650
662 * elf.c (elfcore_make_auxv_note_section): New function.
663 (elfcore_grok_note): Use it.
664 (elfcore_grok_freebsd_note): Likewise.
665 (elfcore_grok_openbsd_note): Likewise.
666 (elfcore_grok_netbsd_note): Likewise. Plus add support for
667 NT_NETBSDCORE_AUXV notes.
668
237df8fe
SD
6692019-06-06 Sudakshina Das <sudi.das@arm.com>
670
671 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Set
672 alignment of the new gnu property section.
673
8bf6d176
SD
6742019-06-06 Sudakshina Das <sudi.das@arm.com>
675
676 * bfd-in.h: Change comment.
677 * bfd-in2.h: Regenerate.
678 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update warning.
679 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties):
680 Likwise.
681
1e129bbe
FS
6822019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
683
684 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>:
685 Remove overflow check.
686
0f4a61b4
AM
6872019-05-28 Alan Modra <amodra@gmail.com>
688
689 PR 24596
690 * cofflink.c (coff_link_check_archive_element): Don't assume
691 element is a coff object file after calling add_archive_element.
692
94667ab1
AM
6932019-05-28 Alan Modra <amodra@gmail.com>
694
695 PR 24596
696 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't
697 attempt to set sh_entsize for excluded PLT section.
698
28fbeab8
AM
6992019-05-28 Alan Modra <amodra@gmail.com>
700
701 PR 24596
702 * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt
703 to emit R_ALPHA_GOTTPREL in PIEs, for which no space is
704 allocated in alpha_dynamic_entries_for_reloc.
705
a0f6fd21
AM
7062019-05-28 Alan Modra <amodra@gmail.com>
707
708 PR 24596
709 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault
710 on NULL output_section.
711 * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf.
712
c83004d5
AM
7132019-05-28 Alan Modra <amodra@gmail.com>
714
715 PR 24596
716 * elf32-m68k.c (elf_m68k_get_got_entry): Don't create a new
717 entry when MUST_FIND. Abort when MUST_FIND not found.
718 (elf_m68k_get_bfd2got_entry): Likewise.
719 (elf_m68k_relocate_section): Remove now useless assert.
720
586338b8
AM
7212019-05-28 Alan Modra <amodra@gmail.com>
722
723 PR 24596
724 * elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd
725 from bfd_link_info, not an output section owner.
726 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise.
727 (elf_hppa_final_link_relocate): Likewise.
728
a7b34aba
AM
7292019-05-28 Alan Modra <amodra@gmail.com>
730
731 PR 24596
732 * aout-tic30.c (MY_bfd_final_link): Don't segfault on missing
733 create_object_symbols_section, obj_textsec, obj_datasec or
734 obj_bsssec. Fix other errors in placement.
735 * config.bfd: Obsolete tic30-aout.
736
0eb32b6e
AM
7372019-05-28 Alan Modra <amodra@gmail.com>
738
739 PR 24596
740 * dwarf2.c (save_section_vma, section_vma_same): Check for NULL
741 end of section list as well as section_count.
742 * xcofflink.c (xcoff_link_add_symbols): Fix temporarily changed
743 section list before returning error.
744
ce5aecf8
AM
7452019-05-27 Alan Modra <amodra@gmail.com>
746
747 * elf.c (bfd_elf_set_group_contents): Exit on zero size section.
748
3d7d6a6f
AM
7492019-05-27 Alan Modra <amodra@gmail.com>
750
751 PR 24596
752 * linker.c (_bfd_generic_link_output_symbols): Heed BSF_KEEP.
753
823710d5
SN
7542019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
755
756 * elfnn-aarch64.c (elfNN_aarch64_merge_symbol_attribute): New function.
757 (struct elf_aarch64_link_hash_table): Add variant_pcs member.
758 (elfNN_aarch64_allocate_dynrelocs): Update variant_pcs.
759 (elfNN_aarch64_size_dynamic_sections): Add DT_AARCH64_VARIANT_PCS.
760 (elf_backend_merge_symbol_attribute): Define.
761
405b5bd8
AM
7622019-05-24 Alan Modra <amodra@gmail.com>
763
764 * po/SRC-POTFILES.in: Regenerate.
765
04bdff6a
AM
7662019-05-24 Alan Modra <amodra@gmail.com>
767
768 * elf64-ppc.c: Comment on powerxx _notoc stub variants.
769 (LI_R11_0, LIS_R11, ORI_R11_R11_0, SLDI_R11_R11_34): Define.
770 (PADDI_R12_PC, PLD_R12_PC, D34, HA34): Define.
771 (struct ppc_link_hash_table): Add powerxx_stubs.
772 (ppc64_elf_check_relocs): Set powerxx_stubs.
773 (build_powerxx_offset, size_powerxx_offset),
774 (num_relocs_for_powerxx_offset),
775 (emit_relocs_for_powerxx_offset): New functions.
776 (plt_stub_size): Size powerxx stubs.
777 (ppc_build_one_stub): Emit powerxx stubs.
778 (ppc_size_one_stub): Size powerxx stubs. Omit .eh_frame for
779 powerxx stubs.
780
4a421c53
AM
7812019-05-24 Alan Modra <amodra@gmail.com>
782
783 * elf64-ppc.c (ppc64_elf_check_relocs): Set has_gotrel for
784 R_PPC64_GOT_PCREL34.
785 (xlate_pcrel_opt): New function.
786 (ppc64_elf_edit_toc): Handle R_PPC64_GOT_PCREL34.
787 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
788 for R_PPC64_GOT_PCREL34. Implement R_PPC64_PCREL_OPT optimisation.
789
5663e321
AM
7902019-05-24 Alan Modra <amodra@gmail.com>
791
792 * reloc.c (BFD_RELOC_PPC64_D34, BFD_RELOC_PPC64_D34_LO),
793 (BFD_RELOC_PPC64_D34_HI30, BFD_RELOC_PPC64_D34_HA30),
794 (BFD_RELOC_PPC64_PCREL34, BFD_RELOC_PPC64_GOT_PCREL34),
795 (BFD_RELOC_PPC64_PLT_PCREL34),
796 (BFD_RELOC_PPC64_ADDR16_HIGHER34, BFD_RELOC_PPC64_ADDR16_HIGHERA34),
797 (BFD_RELOC_PPC64_ADDR16_HIGHEST34, BFD_RELOC_PPC64_ADDR16_HIGHESTA34),
798 (BFD_RELOC_PPC64_REL16_HIGHER34, BFD_RELOC_PPC64_REL16_HIGHERA34),
799 (BFD_RELOC_PPC64_REL16_HIGHEST34, BFD_RELOC_PPC64_REL16_HIGHESTA34),
800 (BFD_RELOC_PPC64_D28, BFD_RELOC_PPC64_PCREL28): New reloc enums.
801 * elf64-ppc.c (PNOP): Define.
802 (ppc64_elf_howto_raw): Add reloc howtos for new relocations.
803 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc numbers.
804 (ppc64_elf_ha_reloc): Adjust addend for highera34 and highesta34
805 relocs.
806 (ppc64_elf_prefix_reloc): New function.
807 (struct ppc_link_hash_table): Add notoc_plt.
808 (is_branch_reloc): Add R_PPC64_PLTCALL_NOTOC.
809 (is_plt_seq_reloc): Add R_PPC64_PLT_PCREL34,
810 R_PPC64_PLT_PCREL34_NOTOC, and R_PPC64_PLTSEQ_NOTOC.
811 (ppc64_elf_check_relocs): Handle pcrel got and plt relocs. Set
812 has_pltcall for section on seeing R_PPC64_PLTCALL_NOTOC. Handle
813 possible need for dynamic relocs on non-pcrel powerxx relocs.
814 (dec_dynrel_count): Handle non-pcrel powerxx relocs.
815 (ppc64_elf_inline_plt): Handle R_PPC64_PLTCALL_NOTOC.
816 (toc_adjusting_stub_needed): Likewise.
817 (ppc64_elf_tls_optimize): Handle R_PPC64_PLTSEQ_NOTOC.
818 (ppc64_elf_relocate_section): Handle new powerxx relocs.
819 * bfd-in2.h: Regenerate.
820 * libbfd.h: Regenerate.
821
fd0de36e
JM
8222019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
823
45d5293f
JM
824 * config.bfd (targ_cpu): Process bpf-*-none only if BFD64.
825 * configure.ac: Set target_size=64 for bpf_elf64_le_vec and
826 bpf_elf64_be_vec.
827 * configure: Regenerate.
828
8292019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
830
fd0de36e
JM
831 * configure: Regenerated.
832 * Makefile.am (ALL_MACHINES): Add cpu-bpf.lo.
833 (ALL_MACHINES_CFILES): Add cpu-bpf.c.
834 (BFD64_BACKENDS): Add elf64-bpf.lo.
835 (BFD64_BACKENDS_CFILES): Add elf64-bpf.c.
836 * Makefile.in (SOURCE_HFILES): Regenerate.
837 * config.bfd (targ_cpu): Handle bpf-*-* targets.
838 * cpu-bpf.c: New file.
839 * elf64-bpf.c: Likewise.
840 * targets.c (_bfd_target_vector): Add bpf_elf64_be_vec and
841 bpf_elf64_le_vec.
842 * archures.c: Define architecture bfd_arch_bpf and machine
843 bfd_arch_bpf.
844 * reloc.c: Define BFD relocations used by the BPF target.
845 * bfd-in2.h: Regenerated.
846 * libbfd.h: Likewise.
847
b0f4fbf8
AM
8482019-05-22 Alan Modra <amodra@gmail.com>
849
850 * elf32-arm.c (arm_allocate_glue_section_space): Clear section
851 contents.
852
9ec2f606
AM
8532019-05-22 Alan Modra <amodra@gmail.com>
854
855 * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
856 processing on "size error in section".
857
4decd602
AM
8582019-05-22 Alan Modra <amodra@gmail.com>
859
860 * som.c (som_bfd_free_cached_info): Call
861 _bfd_generic_close_and_cleanup.
862
b474a202
FS
8632019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
864
865 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Generate error
866 for TLS_TPREL_HI16(/LO16) relocations in shared library.
867
304f09d0
FS
8682019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
869
870 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Add NULL pointer
871 checks. Search the RELA table for n64 relocations.
872
3734320d
MF
8732019-05-21 Matthew Fortune <matthew.fortune@mips.com>
874 Faraz Shahbazker <fshahbazker@wavecomp.com>
875
876 * elfxx-mips.c (LA25_BC): New macro.
877 (mips_elf_link_hash_table)<compact_branches>: New field.
878 (STUB_JALRC): New macro.
879 (mipsr6_o32_exec_plt0_entry_compact): New array.
880 (mipsr6_n32_exec_plt0_entry_compact): Likewise.
881 (mipsr6_n64_exec_plt0_entry_compact): Likewise.
882 (mipsr6_exec_plt_entry_compact): Likewise.
883 (mips_elf_create_la25_stub): Use BC instead of J for stubs
884 when compact_branches is true.
885 (_bfd_mips_elf_finish_dynamic_symbol): Choose the compact
886 PLT for MIPSR6 with compact_branches. Do not reorder the
887 compact branches PLT. Switch the lazy stub for MIPSR6
888 with compact_branches to use JALRC.
889 (mips_finish_exec_plt): Choose the compact PLT0 for MIPSR6
890 when compact_branches is true.
891 (_bfd_mips_elf_compact_branches): New function.
892 * elfxx-mips.h (_bfd_mips_elf_compact_branches): New prototype.
893
64672071
TC
8942019-05-21 Tamar Christina <tamar.christina@arm.com>
895
896 PR ld/24373
897 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
898 Fix print formatter.
899
e6f65e75
AV
9002019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
901
902 PR 24460
903 * elf32-arm.c (get_value_helper): Remove.
904 (elf32_arm_final_link_relocate): Fix branch future relocations.
905
739b5c9c
TC
9062019-05-21 Tamar Christina <tamar.christina@arm.com>
907
908 PR ld/24373
909 * bfd-in.h (enum erratum_84319_opts): New
910 (bfd_elf64_aarch64_set_options, bfd_elf32_aarch64_set_options): Change
911 int to enum erratum_84319_opts.
912 * bfd-in2.h: Regenerate.
913 * elfnn-aarch64.c (struct elf_aarch64_link_hash_table): Change
914 fix_erratum_843419 to use new enum, remove fix_erratum_843419_adr.
915 (_bfd_aarch64_add_stub_entry_after): Conditionally create erratum stub.
916 (aarch64_size_one_stub): Conditionally size erratum 843419 stubs.
917 (_bfd_aarch64_resize_stubs): Amend comment.
918 (elfNN_aarch64_size_stubs): Don't generate stubs when no workaround
919 requested.
920 (bfd_elfNN_aarch64_set_options): Use new fix_erratum_843419 enum.
921 (_bfd_aarch64_erratum_843419_branch_to_stub): Implement selection of
922 erratum workaround.
923 (clear_erratum_843419_entry): Update erratum conditional.
924
7622049e
SKS
9252019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
926
927 PR ld/24571
928 * bfd/elf32-avr.c (elf32_avr_relax_section): Adjust range check
929 when computing distance_short_enough.
930
338ba755
SKS
9312019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
932
933 PR ld/24564
934 * bfd/elf32-avr.c (avr_relative_distance_considering_wrap_around):
935 Wrap around even if distance equals avr_pc_wrap_around.
936
999b073b
NC
9372019-05-20 Nick Clifton <nickc@redhat.com>
938
939 * po/fr.po: Updated French translation.
940
a7ad558c
AV
9412019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
942
943 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add case for Tag_MVE_arch.
944
a2699ef2
AM
9452019-05-16 Alan Modra <amodra@gmail.com>
946
947 * elf32-arm.c (elf32_arm_write_section): Revert last change.
948
3a1bb98c
AM
9492019-05-15 Alan Modra <amodra@gmail.com>
950
951 * elf32-arm.c (elf32_arm_write_section): Don't leave
952 error case of STM32L4XX_ERRATUM_BRANCH_TO_VENEER with
953 unitialised section contents.
954
37d0d091
JH
9552019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
956
957 PR 19921
958 * verilog.c: (VerilogDataWidth): New variable.
959 (verilog_write_record): Emit bytes in VerilogDataWidth bundles.
960
79299211
NC
9612019-05-08 Nick Clifton <nickc@redhat.com>
962
963 PR 24523
964 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Return TRUE
965 rather than FALSE if encountering a non-ELF file.
966
e1cbf07a
AM
9672019-05-06 Alan Modra <amodra@gmail.com>
968
969 * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error.
970
334d91b9
AM
9712019-05-06 Alan Modra <amodra@gmail.com>
972
973 * reloc.c (BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA),
974 (BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA):
975 Sort before BFD_RELOC_PPC64_DTPREL16_HIGHESTA entry.
976 * libbfd.h: Regenerate.
977 * bfd-in2.h: Regenerate.
978
a288c270
AM
9792019-05-04 Alan Modra <amodra@gmail.com>
980
981 PR 24511
982 * syms.c (coff_section_type): Only allow '.', '$' and numeric
983 following the standard section names.
984 (bfd_decode_symclass): Prioritize section flag tests in
985 decode_section_type before name tests in coff_section_type.
986 * plugin.c (bfd_plugin_canonicalize_symtab): Init fake_section
987 and fake_common_section using BFD_FAKE_SECTION. Use "fake" as
988 their names and choose standard .text section flags for
989 fake_section.
990
2cdc1a97
NC
9912019-05-02 Nick Clifton <nickc@redhat.com>
992
993 PR 24493
994 * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
995 .gnu.debugaltlink sections as debugging sections.
996
066f4018
AM
9972019-04-30 Alan Modra <amodra@gmail.com>
998
999 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel.
1000 (struct _ppc64_elf_section_data): Likewise.
1001 (ppc64_elf_check_relocs): Set above fields.
1002 (ppc64_elf_edit_toc): Add a pass over GOT relocs.
1003 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
1004 when possible.
1005
c54f1524
L
10062019-04-26 H.J. Lu <hongjiu.lu@intel.com>
1007
1008 PR ld/24486
1009 * elflink.c (elf_link_output_extsym): Don't complain undefined
1010 weak dynamic reference.
1011
68bb0359
SD
10122019-04-25 Sudakshina Das <sudi.das@arm.com>
1013
1014 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): Remove.
1015 (PLT_BTI_TLSDESC_ENTRY_SIZE): Remove.
1016 (PLT_PAC_ENTRY_SIZE, PLT_BTI_PAC_ENTRY_SIZE): Remove.
1017 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): Update.
1018 (elfNN_aarch64_small_plt0_pac_entry): Remove.
1019 (elfNN_aarch64_small_plt0_bti_pac_entry): Remove.
1020 (elfNN_aarch64_small_plt0_bti_entry): Update.
1021 (elfNN_aarch64_small_plt_bti_entry): Update.
1022 (elfNN_aarch64_small_plt_pac_entry): Update.
1023 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): Update.
1024 (setup_plt_values): Setup new entries.
1025 (elfNN_aarch64_finish_dynamic_sections): Remove size change.
1026 (elfNN_aarch64_plt_sym_val): Likewise.
1027
79b8e8ab
JW
10282019-04-22 Jim Wilson <jimw@sifive.com>
1029
1030 * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
1031
fce97736
AM
10322019-04-19 Alan Modra <amodra@gmail.com>
1033
1034 * elf32-s12z.c (elf_backend_can_gc_sections): Don't define
1035
9a7f0679
L
10362019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1037
1038 * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not
1039 building shared object.
1040 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Likewise.
1041
4e84a8f8
L
10422019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1043
1044 PR ld/24458
1045 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86
1046 linker_def.
1047
32c36c3c
AV
10482019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1049
1050 * reloc.c (BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM): New internal
1051 relocation.
1052 * bfd-in2.h: Regenerate.
1053 * libbfd.h: Likewise.
1054
60f993ce
AV
10552019-04-15 Sudakshina Das <sudi.das@arm.com>
1056
1057 * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New.
1058 * bfd-in2.h: Regenerated.
1059 * libbfd.h: Regenerated.
1060
f6b2b12d
AV
10612019-04-15 Sudakshina Das <sudi.das@arm.com>
1062
1063 * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation.
1064 * bfd-in2.h: Regenerated.
1065 * libbfd.h: Likewise.
1066
1889da70
AV
10672019-04-15 Sudakshina Das <sudi.das@arm.com>
1068
1069 * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New.
1070 * bfd-in2.h: Regenerated.
1071 * libbfd.h: Regenerated.
1072 * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13.
1073 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13
1074 and R_ARM_THM_BF12 together.
1075 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13.
1076
1caf72a5
AV
10772019-04-15 Sudakshina Das <sudi.das@arm.com>
1078
1079 * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New
1080 * libbfd.h: Regenerated.
1081 * bfd-in2.h: Regenerated.
1082 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18.
1083 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19
1084 and R_ARM_THM_BF18 together.
1085 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19.
1086
e5d6e09e
AV
10872019-04-15 Sudakshina Das <sudi.das@arm.com>
1088
1089 * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum.
1090 * bfd-in2.h: Regenerated.
1091 * libbfd.h: Regenerated.
1092 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16.
1093 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17
1094 and R_ARM_THM_BF16 together.
1095 (get_value_helper): New reloc helper.
1096 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16.
1097
e12437dc
AV
10982019-04-15 Sudakshina Das <sudi.das@arm.com>
1099
1100 * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
1101 * bfd-in2.h: Regenerate.
1102 * libbfd.h: Regenerate.
1103
031254f2
AV
11042019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1105
1106 * archures.c (bfd_mach_arm_8_1M_MAIN): Define.
1107 * bfd-in2.h: Regenerate.
1108 * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline.
1109 * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline
1110 and update assert.
1111 (using_thumb2): Likewise.
1112 (using_thumb2_bl): Update assert.
1113 (arch_has_arm_nop): Likewise.
1114 (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline.
1115 (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging.
1116
233a0083
L
11172019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1118
1119 * elf-linker-x86.h (elf_x86_cet_report): New.
1120 (elf_linker_x86_params): Add cet_report.
1121 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
1122 missing IBT and SHSTK properties if needed.
1123
a0ea3a14
L
11242019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1125
ca4e6331 1126 PR ld/24436
a0ea3a14
L
1127 * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of
1128 "h != NULL". Don't check "h != NULL" before calling.
1129 bfd_elf_gc_record_vtentry.
1130 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
1131 * elf32-bfin.c (bfin_check_relocs): Likewise.
1132 * elf32-cris.c (cris_elf_check_relocs): Likewise.
1133 * elf32-csky.c (csky_elf_check_relocs): Likewise.
1134 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
1135 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
1136 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
1137 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
1138 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
1139 * elf32-i386.c (elf_i386_check_relocs): Likewise.
1140 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1141 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
1142 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
1143 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
1144 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
1145 * elf32-metag.c (elf_metag_check_relocs): Likewise.
1146 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
1147 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
1148 * elf32-s390.c (elf_s390_check_relocs): Likewise.
1149 * elf32-sh.c (sh_elf_check_relocs): Likewise.
1150 * elf32-v850.c (v850_elf_check_relocs): Likewise.
1151 * elf32-vax.c (elf_vax_check_relocs): Likewise.
1152 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
1153 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
1154 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
1155 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1156 * elf64-s390.c (elf_s390_check_relocs): Likewise.
1157 * elf64-x86-64.c (elf_s390_check_relocs): Likewise.
1158 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
1159 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
1160 * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt
1161 VTENTRY entry.
1162
9bff840e
AM
11632019-04-11 Alan Modra <amodra@gmail.com>
1164
1165 PR 24435
1166 * elflink.c (elf_link_add_object_symbols): Don't read partial
1167 dynamic entries from fuzzed objects.
1168
ce12121b
TC
11692019-04-11 Tamar Christina <tamar.christina@arm.com>
1170
1171 PR ld/24302
1172 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit
1173 DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW.
1174 (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW.
1175
b05971a6
MF
11762019-04-10 Michael Forney <mforney@mforney.org>
1177
1178 PR 24427
1179 * doc/chew.c (free_words): Correctly free "push_text" strings.
1180
3ae61bb6
L
11812019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1182
1183 * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets.
1184
5f2a6b85
AM
11852019-04-08 Alan Modra <amodra@gmail.com>
1186
1187 * configure.ac (elfxx_x86): Define and use.
1188 * configure: Regenerate.
1189
5b9c07b2
L
11902019-04-06 H.J. Lu <hongjiu.lu@intel.com>
1191
1192 * elf-linker-x86.h: New file.
1193 * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params
1194 to get x86-specific linker options.
1195 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
1196 (elf_x86_64_check_relocs): Likewise.
1197 (elf_x86_64_relocate_section): Likewise.
1198 (elf_x86_64_link_setup_gnu_properties): Likewise.
1199 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise.
1200 (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
1201 (_bfd_elf_linker_x86_set_options): New function.
1202 * elfxx-x86.h: Include "elf-linker-x86.h".
1203 (elf_x86_link_hash_table): Add params.
1204
4b24dd1a
AM
12052019-04-03 Alan Modra <amodra@gmail.com>
1206
1207 * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c,
1208 * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c,
1209 * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c,
1210 * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c,
1211 * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c,
1212 * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes.
1213
87f98bac
JW
12142019-04-02 Jim Wilson <jimw@sifive.com>
1215
1216 PR 24389
1217 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
1218 ELF header flags to after check for ELF object file. Loop through
1219 sections looking for code sections, if none, then skip ABI checks.
1220
ae2b14c7
JW
12212019-03-30 Andrew Waterman <andrew@sifive.com>
1222
1223 * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for
1224 rd == X_RA case.
1225
2487ef07
MF
12262019-03-29 Max Filippov <jcmvbkbc@gmail.com>
1227
1228 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
1229 info->export_dynamic to the conditional.
1230
242a1159
AM
12312019-03-28 Alan Modra <amodra@gmail.com>
1232
1233 PR 24392
1234 * configure.ac: Invoke AC_CHECK_SIZEOF(int).
1235 * configure: Regenerate.
1236 * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
1237 workaround with SIZEOF_LONG vs. SIZEOF_INT check.
1238 * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
1239 * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
1240 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
1241
a9f5a551
JW
12422019-03-21 Jim Wilson <jimw@sifive.com>
1243
1244 PR 24365
1245 * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check,
1246 verify sym non-NULL before using. Add identical check using h.
1247
4e539114
SD
12482019-03-21 Sudakshina Das <sudi.das@arm.com>
1249
1250 * elf-bfd.h (struct elf_backend_data): Add argument to
1251 merge_gnu_properties.
1252 * elf-properties.c (elf_merge_gnu_properties): Add argument to
1253 itself and while calling bed->merge_gnu_properties.
1254 (elf_merge_gnu_property_list): Update the calls for
1255 elf_merge_gnu_properties.
1256 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
1257 of --force-bti warning and add argument.
1258 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
1259 warning.
1260 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
1261 * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
1262 declaration.
1263
acde6c6b
SD
12642019-03-20 Sudakshina Das <sudi.das@arm.com>
1265
1266 * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define.
1267 * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare.
1268 (elf_backend_fixup_gnu_properties): Define for AArch64.
1269
8cd1fe1b
AM
12702019-03-18 Alan Modra <amodra@gmail.com>
1271
1272 PR 24355
1273 * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
1274 for local iplt syms with ent->plt.offset == -1. Remove ineffective
1275 attempt at writing glink stubs only once.
1276
6835821b
AM
12772019-03-16 Alan Modra <amodra@gmail.com>
1278
1279 PR 24337
1280 * elf.c (_bfd_elf_rela_local_sym): Revert last change.
1281 (_bfd_elf_rel_local_sym): Likewise.
1282 * elflink.c (elf_link_input_bfd): Use bfd_und_section for
1283 section of symbols with unrecognized shndx.
1284
2219ae0b
L
12852019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1286
1287 PR ld/24267
1288 * coffgen.c (_bfd_coff_section_already_linked): Skip discarded
1289 section.
1290 * cofflink.c (coff_link_add_symbols): Check for symbols defined
1291 in discarded section.
1292
fe3fef62
AM
12932019-03-15 Alan Modra <amodra@gmail.com>
1294
1295 PR 24339
1296 * elflink.c (elf_link_add_object_symbols): Bail out on a local
1297 symbol after globals if elf_bad_symtab is not set.
1298
1ff31e13
AM
12992019-03-15 Alan Modra <amodra@gmail.com>
1300
1301 PR 24337
1302 * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec.
1303 (_bfd_elf_rel_local_sym): Likewise.
1304
f55b1e32
AM
13052019-03-15 Alan Modra <amodra@gmail.com>
1306
1307 PR 24336
1308 * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed
1309 object files with sh_size not a multiple of sh_entsize.
1310
da0d12d2
L
13112019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1312
418d4036
L
1313 PR ld/24338
1314 * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt
1315 input with bad relocation.
1316
131722019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1318
da0d12d2
L
1319 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
1320
d7f848c3
NC
13212019-03-14 Nick Clifton <nickc@redhat.com>
1322
1323 PR 24334
1324 * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field.
1325 (save_section_vma): Initialise field to the number of entries in
1326 the sec_vma table.
1327 (section_vma_same): Check that the number of entries in the
1328 sec_vma table matches the number of sections in the bfd.
1329
6cc71b82
NC
13302019-03-14 Nick Clifton <nickc@redhat.com>
1331
1332 PR 24333
1333 * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL
1334 section owner pointer when adding the default symbol.
1335
be22c732
NC
13362019-03-14 Nick Clifton <nickc@redhat.com>
1337
1338 PR 24332
1339 * elflink.c (elf_link_add_object_symbols): Add new local variable
1340 extversym_end. Initialise it to point to the end of the version
1341 symbol table, if present. Check it when initialising and updating
1342 the ever pointer.
1343
1dbade74
SD
13442019-03-13 Sudakshina Das <sudi.das@arm.com>
1345
1346 * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New.
1347 (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New.
1348 (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs.
1349 (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC
1350 and PLT_PAC_PLT.
1351 (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC.
1352 (get_plt_type): Add case for DT_AARCH64_PAC_PLT.
1353 (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC.
1354
37c18eed
SD
13552019-03-13 Sudakshina Das <sudi.das@arm.com>
1356 Szabolcs Nagy <szabolcs.nagy@arm.com>
1357
1358 * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New.
1359 (aarch64_bti_pac_info): New.
1360 (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument.
1361 (bfd_elf32_aarch64_set_options): Likewise.
1362 * bfd-in2.h: Regenerate
1363 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New.
1364 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New.
1365 (elfNN_aarch64_small_plt0_bti_entry): New.
1366 (elfNN_aarch64_small_plt_bti_entry): New.
1367 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New.
1368 (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields.
1369 (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and
1370 tlsdesc_plt_entry_size fields.
1371 (elfNN_aarch64_link_hash_table_create): Initialise the new fields.
1372 (setup_plt_values): New helper function.
1373 (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and
1374 bti enable type.
1375 (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of
1376 fixed macros.
1377 (elfNN_aarch64_size_dynamic_sections): Likewise and add checks.
1378 (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers
1379 to plt stubs instead of fixed ones and update filling them according
1380 to the need for bti.
1381 (elfNN_aarch64_init_small_plt0_entry): Likewise.
1382 (elfNN_aarch64_finish_dynamic_sections): Likewise.
1383 (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New.
1384 (elfNN_aarch64_plt_sym_val): Update size accordingly.
1385 (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE
1386 is set.
1387 (bfd_elfNN_get_synthetic_symtab): Define.
1388 (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti
1389 and mising BTI NOTE SECTION.
1390
1391
cd702818
SD
13922019-03-13 Sudakshina Das <sudi.das@arm.com>
1393
1394 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude
1395 linker created inputs from merge.
1396 * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for
1397 GNU_PROPERTY_AARCH64_FEATURE_1_AND properties.
1398 (elfNN_aarch64_link_setup_gnu_properties): New.
1399 (elfNN_aarch64_merge_gnu_properties): New.
1400 (elf_backend_setup_gnu_properties): Define for AArch64.
1401 (elf_backend_merge_gnu_properties): Likewise.
1402 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define.
1403 (_bfd_aarch64_elf_parse_gnu_properties): Define.
1404 (_bfd_aarch64_elf_merge_gnu_properties): Define.
1405 * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare.
1406 (_bfd_aarch64_elf_parse_gnu_properties): Declare.
1407 (_bfd_aarch64_elf_merge_gnu_properties): Declare.
1408 (elf_backend_parse_gnu_properties): Define for AArch64.
1409
44b27f95
L
14102019-03-13 H.J. Lu <hongjiu.lu@intel.com>
1411
1412 PR ld/24322
1413 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly
1414 merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK].
1415
7a6e0d89
AM
14162019-03-12 Alan Modra <amodra@gmail.com>
1417
1418 * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add
1419 nmemb parameter. Use bfd_alloc2.
1420 (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls.
1421 Delete assertion.
1422 (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2.
1423 (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls.
1424 * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation
1425 doesn't overflow.
1426 * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix.
1427 (assign_section_numbers): Style fix.
1428 (swap_out_syms): Use bfd_malloc2.
1429 (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't
1430 overflow.
1431 (_bfd_elf_make_empty_symbol): Style fix.
1432 (elfobj_grok_stapsdt_note_1): Formatting.
1433 * elfcode.h (elf_object_p): Use bfd_alloc2.
1434 (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise.
1435 (elf_slurp_symbol_table): Use bfd_zalloc2.
1436 (elf_slurp_reloc_table): Use bfd_alloc2.
1437 (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2.
1438 * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure
1439 size calculation doesn't overflow.
1440 (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise.
1441 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
1442 * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version.
1443
ebd2263b
AM
14442019-03-08 Alan Modra <amodra@gmail.com>
1445
1446 PR 24311
1447 * merge.c (merge_strings): Return secinfo. Don't pad section
1448 to alignment here.
1449 (_bfd_merge_sections): Pad section to alignment here, if input
1450 sections contributing to merged output all pad to alignment.
1451 Formatting.
1452
219d6836
NC
14532019-03-06 Nick Clifton <nickc@redhat.com>
1454
1455 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
1456 table pointer.
1457 * coffgen.c (coff_find_nearest_line_with_names): Do not call
1458 _bfd_dwarf2_find_symbol_bias if there is no symbol table available.
1459
24801b15
AK
14602019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
1461
1462 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
1463 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1464
1465 PR 20113
1466 * elf32-s390.c (allocate_dynrelocs): Update comment.
1467
4ffd2909
TC
14682019-02-28 Tamar Christina <tamar.christina@arm.com>
1469
1470 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
1471
eed5def8
NC
14722019-02-28 Nick Clifton <nickc@redhat.com>
1473
1474 PR 24273
1475 * elf.c (bfd_elf_string_from_elf_section): Check for a string
1476 section that is not NUL terminated.
1477
5cfe428c
L
14782019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1479
1480 PR ld/24276
1481 * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
1482 by linker when checking copy reloc on protected symbol.
1483
f616c36b
AM
14842019-02-24 Alan Modra <amodra@gmail.com>
1485
1486 PR 24144
1487 * pdp11.c (set_section_contents): Revert 2015-02-24 change.
1488
eed62915
MF
14892019-02-20 Eric Tsai <erictsai@cadence.com>
1490
1491 * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
1492 sections between the call site and call destination and adjust
1493 call distance by the largest alignment.
1494
e6c3b5bf
AH
14952019-02-20 Alan Hayward <alan.hayward@arm.com>
1496
1497 * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
1498 * elf.c (elfcore_grok_aarch_pauth): New function.
1499 (elfcore_grok_note): Check for NT_ARM_PAC_MASK.
1500 (elfcore_write_aarch_pauth): New function.
1501 (elfcore_write_register_note): Check for AArch64 pauth section.
1502
34d75fb5
AM
15032019-02-20 Alan Modra <amodra@gmail.com>
1504
1505 PR 24225
1506 * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
1507 return value.
1508
edd01d07
MR
15092019-02-20 Michael Roitzsch <reactorcontrol@icloud.com>
1510
1511 * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
1512 Darwin hosts, not just or1k.
1513 * configure: Regenerate.
1514
8abac803
AM
15152019-02-20 Alan Modra <amodra@gmail.com>
1516
1517 PR 24236
1518 * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
1519 sentinel NUL to string buffer nearer to loop where it is used.
1520 Don't go past sentinel when scanning strings, and don't write
1521 NUL again.
1522 * archive.c (do_slurp_coff_armap): Simplify string handling to
1523 archive64.c style.
1524
179f2db0
AM
15252019-02-19 Alan Modra <amodra@gmail.com>
1526
1527 PR 24235
1528 * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
1529 attempting to prevent read past end of section.
1530
a31b8bd9
AM
15312019-02-18 Alan Modra <amodra@gmail.com>
1532
1533 PR 24225
1534 * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
1535 PRIx64 to generate warning messages. Print local sym names too.
1536
a0e90a73
CZ
15372019-02-09 Vineet Gupta <vgupta@synopsys.com>
1538
1539 * elf32-arc (INIT_SYM_STRING): Delete.
1540 (FINI_SYM_STRING): Likewise.
1541 (init_str): Likewise.
1542 (fini_str): Likewise.
1543
482f3505
AM
15442019-02-08 Alan Modra <amodra@gmail.com>
1545
1546 * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
1547 for bss-plt" warning to make it an error.
1548
b2abe1bd
EB
15492019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1550
1551 PR ld/18841
1552 * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
1553 reloc_class_ifunc for ifunc symbols.
1554 * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
1555
68a09132
EB
15562019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1557
1558 * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
1559 <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
1560
2012bf01
NC
15612019-02-07 Nick Clifton <nickc@redhat.com>
1562
1563 * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
1564 into the definitely obsolete list.
1565
83924b38
L
15662019-02-05 H.J. Lu <hongjiu.lu@intel.com>
1567
1568 PR ld/24151
1569 * elf64-x86-64.c (elf_x86_64_need_pic): Check
1570 SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
1571 (elf_x86_64_relocate_section): Move PIC check for PC-relative
1572 relocations to ...
1573 (elf_x86_64_check_relocs): Here.
1574 (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
1575 to check if a symbol is defined in a non-shared object.
1576 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
1577
453f8e1e
SDJ
15782019-01-21 Sergio Durigan Junior <sergiodj@redhat.com>
1579
1580 * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
1581 of 'labs' (and fix GCC warning).
1582
9ed1348c
NC
15832019-01-25 Nick Clifton <nickc@redhat.com>
1584
1585 * po/ru.po: Updated Russian translation.
1586
d9938630
NC
15872019-01-23 Nick Clifton <nickc@redhat.com>
1588
1589 * po/fr.po: Updated French translation.
1590
375cd423
NC
15912019-01-21 Nick Clifton <nickc@redhat.com>
1592
1593 * po/pt.po: Updated Portuguese translation.
1594 * po/uk.po: Updated Ukranian translation.
1595
acef8081
YC
15962019-01-21 Yuri Chornoivan <yurchor@ukr.net>
1597
1598 PR 24108
1599 * elf32-nds32.c (nds32_relocate_section): Add space between words
1600 in error message.
1601 * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
1602 error message.
1603 (riscv_i_or_e_p): Likewise.
1604 (riscv_merge_arch_attr_info): Likewise.
1605
f48dfe41
NC
16062019-01-19 Nick Clifton <nickc@redhat.com>
1607
1608 * version.m4: Reset to 2.32.51
1609 * configure: Regenerate.
1610 * po/bfd.pot: Regenerate.
1611
f974f26c
NC
16122018-06-24 Nick Clifton <nickc@redhat.com>
1613
1614 2.32 branch created.
1615
a4bf3d07
JW
16162019-01-16 Kito Cheng <kito@andestech.com>
1617
1618 * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
1619 for OBJ_ATTR_PROC.
1620
2dc8dd17
JW
16212019-01-16 Kito Cheng <kito@andestech.com>
1622 Nelson Chu <nelson@andestech.com>
1623
7d7a7d7c
JW
1624 * elfnn-riscv.c (in_subsets): New.
1625 (out_subsets): Likewise.
1626 (merged_subsets): Likewise.
1627 (riscv_std_ext_p): Likewise.
1628 (riscv_non_std_ext_p): Likewise.
1629 (riscv_std_sv_ext_p): Likewise.
1630 (riscv_non_std_sv_ext_p): Likewise.
1631 (riscv_version_mismatch): Likewise.
1632 (riscv_i_or_e_p): Likewise.
1633 (riscv_merge_std_ext): Likewise.
1634 (riscv_merge_non_std_and_sv_ext): Likewise.
1635 (riscv_merge_arch_attr_info): Likewise.
1636 (riscv_merge_attributes): Likewise.
1637 (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
1638
2dc8dd17
JW
1639 * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
1640 (elf_backend_obj_attrs_vendor): Define.
1641 (elf_backend_obj_attrs_section_type): Likewise.
1642 (elf_backend_obj_attrs_section): Likewise.
1643 (elf_backend_obj_attrs_arg_type): Define as
1644 riscv_elf_obj_attrs_arg_type.
1645 * elfxx-riscv.c (riscv_estimate_digit): New.
1646 (riscv_estimate_arch_strlen1): Likewise.
1647 (riscv_estimate_arch_strlen): Likewise.
1648 (riscv_arch_str1): Likewise.
1649 (riscv_arch_str): Likewise.
1650 * elfxx-riscv.h (riscv_arch_str): Declare.
1651
d5dcaf1b
JD
16522019-01-14 John Darrington <john@darrington.wattle.id.au>
1653
1654 * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
1655 * libbfd.h: regen.
1656 * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
1657 source field. (md_apply_fix): Apply final fix
1658 to BFD_RELOC_S12Z_OPR.
1659 * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
1660
5a12586d
MT
16612019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1662
f466c305 1663 PR 20113
5a12586d
MT
1664 * elf32-s390.c (allocate_dynrelocs): Update comment.
1665
3107326d
AP
16662019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1667
1668 * warning.m4: Adjust egrep pattern for non-GNU compilers.
1669 * configure: Regenerate.
1670
a9859e01
AM
16712019-01-08 Alan Modra <amodra@gmail.com>
1672
1673 PR 23699
1674 PR 24065
1675 * ihex.c (ihex_write_object_contents): Properly check 32-bit
1676 address range.
1677
c8c89dac
YS
16782019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1679
1680 * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
1681 * bfd/bfd-in2.h: Regenerate.
1682 * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
1683 * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
1684
d9858c37
LX
16852019-01-04 Lifang Xia <lifang_xia@c-sky.com>
1686
1687 * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
1688 default target, little endian target is more suitable.
1689
677bd4c6
AM
16902019-01-04 Alan Modra <amodra@gmail.com>
1691
1692 PR 24061
1693 PR 21786
1694 * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
1695 adjust all callers.
1696 (EQ_VALUE_IN_FIELD): Likewise.
1697 * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
1698
82704155
AM
16992019-01-01 Alan Modra <amodra@gmail.com>
1700
1701 Update year range in copyright notice of all files.
1702
d5c04e1b 1703For older changes see ChangeLog-2018
3499769a 1704\f
d5c04e1b 1705Copyright (C) 2019 Free Software Foundation, Inc.
3499769a
AM
1706
1707Copying and distribution of this file, with or without modification,
1708are permitted in any medium without royalty provided the copyright
1709notice and this notice are preserved.
1710
1711Local Variables:
1712mode: change-log
1713left-margin: 8
1714fill-column: 74
1715version-control: never
1716End: