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