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