Re: PowerPC notoc call stub tests
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
1faa385f
NC
12019-07-02 Nick Clifton <nickc@redhat.com>
2
3 PR 24717
4 * elf.c (is_debuginfo_file): New function.
5 (assign_file_positions_for_non_load_sections): Do not warn about
6 allocated sections outside of loadable segments if they are found
7 in a debuginfo file.
8 * elf-bfd.h (is_debuginfo_file): Prototype.
9
125f83f6
NC
102019-07-02 Nick Clifton <nickc@redhat.com>
11
12 PR 24753
13 * compress.c (bfd_get_full_section_contents): Do not complain
14 about linker created sections that are larger than the file size.
15
4d83e8d9
CL
162019-07-02 Christophe Lyon <christophe.lyon@linaro.org>
17
18 * bfd/elf32-arm.c (CMSE_STUB_NAME): New define.
19 (elf32_arm_get_stub_entry): Do not try to emit long-branch stubs
20 for CMSE stubs.
21 (arm_dedicated_stub_output_section_name): Use CMSE_STUB_NAME.
22
bb32413f
SP
232019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
24
25 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Mark debug
26 sections when .text section contain secure entry functions
27 is marked.
28
539300fb
NC
292019-07-01 Nick Clifton <nickc@redhat.com>
30
31 PR 23839
32 * elf32-arm.c (elf32_arm_update_relocs): Do not include the
33 section VMA in the offset used to update exidx relocs.
34
7e56c51c
NC
352019-06-28 Nick Clifton <nickc@redhat.com>
36
37 PR 24708
38 * elf.c (_bfd_elf_slurp_version_tables): Check for an excessively
39 large version reference section.
40 * compress.c (bfd_get_full_section_contents): Check for an
41 uncompressed section whose size is larger than the file size.
42
999d6dff
AM
432019-06-28 Alan Modra <amodra@gmail.com>
44
45 * format.c (bfd_check_format_matches): Don't match plugin target
46 if another target matches. Expand comment.
47 * targets.c (_bfd_target_vector): Move plugin_vec after all other
48 non-corefile targets, outside !SELECT_VECS.
49 * config.bfd: Don't handle targ=plugin here.
50 * configure.ac: Don't add plugin to enable_targets or handle in
51 target loop setting selvecs and other target vars.
52 * configure: Regenerate.
53
a68aa5d3
NC
542019-06-26 Nick Clifton <nickc@redhat.com>
55
56 PR 24703
57 * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add error
58 messages for failures.
59 * mach-o.c (bfd_mach_o_canonicalize_relocs): Set an bfd error code
60 if returning an error value.
61
ab9f654c
JB
622019-06-25 Jan Beulich <jbeulich@suse.com>
63
64 * elf-properties.c (elf_find_and_remove_property): Rename last
65 parameter. Mention it in comment.
66
04b865dc
JW
672019-06-24 Ilia Diachkov <ilia.diachkov@optimitech.com>
68
69 * elfnn-riscv.c (_bfd_riscv_relax_lui): Delete early exit when
70 SEC_MERGE or SEC_CODE flags are set.
71 (_bfd_riscv_relax_section): New local symtype. Set sym_sec and
72 symtype consistently. Don't include sec_addr (sym_sec) in symval.
73 Add check for SEC_INFO_TYPE_MERGE and call _bfd_merged_section_offset.
74 Add sec_addr (sym_sec) after handling merge sections.
75
f93ab3a0
L
762019-06-24 H.J. Lu <hongjiu.lu@intel.com>
77
78 PR ld/24721
79 * elf-properties.c (elf_merge_gnu_property_list): Remove the
80 property after reporting property removal.
81
bb22a418
AM
822019-06-23 Alan Modra <amodra@gmail.com>
83
84 PR 24704
85 * elf64-ppc.c (R_PPC64_GOT16_DS): Don't set has_gotrel.
86 (ppc64_elf_edit_toc): Don't remove R_PPC64_GOT16_DS got entries.
87 Reduce range of offsets allowed for other GOT relocs.
88
14b2a8e4
AM
892019-06-23 Alan Modra <amodra@gmail.com>
90
91 PR 24689
92 * elfcode.h (elf_object_p): Warning fix.
93
890f750a
AM
942019-06-21 Alan Modra <amodra@gmail.com>
95
96 PR 24689
97 * elfcode.h (elf_object_p): Check type of e_shstrndx section.
98
6f5601c4
AM
992019-06-19 Alan Modra <amodra@gmail.com>
100
101 PR 24697
102 * elf32-ppc.c (ppc_elf_relocate_section): Don't read insn for
103 R_PPC_EMB_RELSDA. Mask low bit of R_PPC_EMB_SDA21 r_offset.
104
4a4e7361
AM
1052019-06-19 Alan Modra <amodra@gmail.com>
106
107 * elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for
108 functions that require r2 valid to use local entry.
109 (ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise.
110
39c05d94
SN
1112019-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
112
113 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_dynrelocs): Remove.
114 (elfNN_aarch64_size_dynamic_sections): Remove loc_hash_table traversal
115 with elfNN_aarch64_allocate_local_dynrelocs.
116
e30d1fa1
SN
1172019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
118
119 * elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32.
120
3a3a077c
AM
1212019-06-14 Alan Modra <amodra@gmail.com>
122
123 * Makefile.in: Regenerate.
124 * configure: Regenerate.
125
d4b87b1e
AM
1262019-06-14 Alan Modra <amodra@gmail.com>
127
128 * elf64-ppc.c: Fix comments involving paddi.
129
62e0492f
AL
1302019-06-12 Adam Lackorzymski <adam@os.inf.tu-dresden.de>
131
132 PR 24643
133 * elf32-arm.c (arm_elf_find_function): Fail if the symol table is
134 absent, or the bfd is not in the ELF formart.
135 * elfnn-aarch64.c (aarch64_elf_find_function): Likewise.
136
58e07198
CZ
1372019-06-10 Christos Zoulas <christos@zoulas.com>
138
139 PR 24650
140 * elf.c (elfcore_make_auxv_note_section): New function.
141 (elfcore_grok_note): Use it.
142 (elfcore_grok_freebsd_note): Likewise.
143 (elfcore_grok_openbsd_note): Likewise.
144 (elfcore_grok_netbsd_note): Likewise. Plus add support for
145 NT_NETBSDCORE_AUXV notes.
146
237df8fe
SD
1472019-06-06 Sudakshina Das <sudi.das@arm.com>
148
149 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Set
150 alignment of the new gnu property section.
151
8bf6d176
SD
1522019-06-06 Sudakshina Das <sudi.das@arm.com>
153
154 * bfd-in.h: Change comment.
155 * bfd-in2.h: Regenerate.
156 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update warning.
157 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties):
158 Likwise.
159
1e129bbe
FS
1602019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
161
162 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>:
163 Remove overflow check.
164
0f4a61b4
AM
1652019-05-28 Alan Modra <amodra@gmail.com>
166
167 PR 24596
168 * cofflink.c (coff_link_check_archive_element): Don't assume
169 element is a coff object file after calling add_archive_element.
170
94667ab1
AM
1712019-05-28 Alan Modra <amodra@gmail.com>
172
173 PR 24596
174 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't
175 attempt to set sh_entsize for excluded PLT section.
176
28fbeab8
AM
1772019-05-28 Alan Modra <amodra@gmail.com>
178
179 PR 24596
180 * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt
181 to emit R_ALPHA_GOTTPREL in PIEs, for which no space is
182 allocated in alpha_dynamic_entries_for_reloc.
183
a0f6fd21
AM
1842019-05-28 Alan Modra <amodra@gmail.com>
185
186 PR 24596
187 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault
188 on NULL output_section.
189 * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf.
190
c83004d5
AM
1912019-05-28 Alan Modra <amodra@gmail.com>
192
193 PR 24596
194 * elf32-m68k.c (elf_m68k_get_got_entry): Don't create a new
195 entry when MUST_FIND. Abort when MUST_FIND not found.
196 (elf_m68k_get_bfd2got_entry): Likewise.
197 (elf_m68k_relocate_section): Remove now useless assert.
198
586338b8
AM
1992019-05-28 Alan Modra <amodra@gmail.com>
200
201 PR 24596
202 * elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd
203 from bfd_link_info, not an output section owner.
204 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise.
205 (elf_hppa_final_link_relocate): Likewise.
206
a7b34aba
AM
2072019-05-28 Alan Modra <amodra@gmail.com>
208
209 PR 24596
210 * aout-tic30.c (MY_bfd_final_link): Don't segfault on missing
211 create_object_symbols_section, obj_textsec, obj_datasec or
212 obj_bsssec. Fix other errors in placement.
213 * config.bfd: Obsolete tic30-aout.
214
0eb32b6e
AM
2152019-05-28 Alan Modra <amodra@gmail.com>
216
217 PR 24596
218 * dwarf2.c (save_section_vma, section_vma_same): Check for NULL
219 end of section list as well as section_count.
220 * xcofflink.c (xcoff_link_add_symbols): Fix temporarily changed
221 section list before returning error.
222
ce5aecf8
AM
2232019-05-27 Alan Modra <amodra@gmail.com>
224
225 * elf.c (bfd_elf_set_group_contents): Exit on zero size section.
226
3d7d6a6f
AM
2272019-05-27 Alan Modra <amodra@gmail.com>
228
229 PR 24596
230 * linker.c (_bfd_generic_link_output_symbols): Heed BSF_KEEP.
231
823710d5
SN
2322019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
233
234 * elfnn-aarch64.c (elfNN_aarch64_merge_symbol_attribute): New function.
235 (struct elf_aarch64_link_hash_table): Add variant_pcs member.
236 (elfNN_aarch64_allocate_dynrelocs): Update variant_pcs.
237 (elfNN_aarch64_size_dynamic_sections): Add DT_AARCH64_VARIANT_PCS.
238 (elf_backend_merge_symbol_attribute): Define.
239
405b5bd8
AM
2402019-05-24 Alan Modra <amodra@gmail.com>
241
242 * po/SRC-POTFILES.in: Regenerate.
243
04bdff6a
AM
2442019-05-24 Alan Modra <amodra@gmail.com>
245
246 * elf64-ppc.c: Comment on powerxx _notoc stub variants.
247 (LI_R11_0, LIS_R11, ORI_R11_R11_0, SLDI_R11_R11_34): Define.
248 (PADDI_R12_PC, PLD_R12_PC, D34, HA34): Define.
249 (struct ppc_link_hash_table): Add powerxx_stubs.
250 (ppc64_elf_check_relocs): Set powerxx_stubs.
251 (build_powerxx_offset, size_powerxx_offset),
252 (num_relocs_for_powerxx_offset),
253 (emit_relocs_for_powerxx_offset): New functions.
254 (plt_stub_size): Size powerxx stubs.
255 (ppc_build_one_stub): Emit powerxx stubs.
256 (ppc_size_one_stub): Size powerxx stubs. Omit .eh_frame for
257 powerxx stubs.
258
4a421c53
AM
2592019-05-24 Alan Modra <amodra@gmail.com>
260
261 * elf64-ppc.c (ppc64_elf_check_relocs): Set has_gotrel for
262 R_PPC64_GOT_PCREL34.
263 (xlate_pcrel_opt): New function.
264 (ppc64_elf_edit_toc): Handle R_PPC64_GOT_PCREL34.
265 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
266 for R_PPC64_GOT_PCREL34. Implement R_PPC64_PCREL_OPT optimisation.
267
5663e321
AM
2682019-05-24 Alan Modra <amodra@gmail.com>
269
270 * reloc.c (BFD_RELOC_PPC64_D34, BFD_RELOC_PPC64_D34_LO),
271 (BFD_RELOC_PPC64_D34_HI30, BFD_RELOC_PPC64_D34_HA30),
272 (BFD_RELOC_PPC64_PCREL34, BFD_RELOC_PPC64_GOT_PCREL34),
273 (BFD_RELOC_PPC64_PLT_PCREL34),
274 (BFD_RELOC_PPC64_ADDR16_HIGHER34, BFD_RELOC_PPC64_ADDR16_HIGHERA34),
275 (BFD_RELOC_PPC64_ADDR16_HIGHEST34, BFD_RELOC_PPC64_ADDR16_HIGHESTA34),
276 (BFD_RELOC_PPC64_REL16_HIGHER34, BFD_RELOC_PPC64_REL16_HIGHERA34),
277 (BFD_RELOC_PPC64_REL16_HIGHEST34, BFD_RELOC_PPC64_REL16_HIGHESTA34),
278 (BFD_RELOC_PPC64_D28, BFD_RELOC_PPC64_PCREL28): New reloc enums.
279 * elf64-ppc.c (PNOP): Define.
280 (ppc64_elf_howto_raw): Add reloc howtos for new relocations.
281 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc numbers.
282 (ppc64_elf_ha_reloc): Adjust addend for highera34 and highesta34
283 relocs.
284 (ppc64_elf_prefix_reloc): New function.
285 (struct ppc_link_hash_table): Add notoc_plt.
286 (is_branch_reloc): Add R_PPC64_PLTCALL_NOTOC.
287 (is_plt_seq_reloc): Add R_PPC64_PLT_PCREL34,
288 R_PPC64_PLT_PCREL34_NOTOC, and R_PPC64_PLTSEQ_NOTOC.
289 (ppc64_elf_check_relocs): Handle pcrel got and plt relocs. Set
290 has_pltcall for section on seeing R_PPC64_PLTCALL_NOTOC. Handle
291 possible need for dynamic relocs on non-pcrel powerxx relocs.
292 (dec_dynrel_count): Handle non-pcrel powerxx relocs.
293 (ppc64_elf_inline_plt): Handle R_PPC64_PLTCALL_NOTOC.
294 (toc_adjusting_stub_needed): Likewise.
295 (ppc64_elf_tls_optimize): Handle R_PPC64_PLTSEQ_NOTOC.
296 (ppc64_elf_relocate_section): Handle new powerxx relocs.
297 * bfd-in2.h: Regenerate.
298 * libbfd.h: Regenerate.
299
fd0de36e
JM
3002019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
301
45d5293f
JM
302 * config.bfd (targ_cpu): Process bpf-*-none only if BFD64.
303 * configure.ac: Set target_size=64 for bpf_elf64_le_vec and
304 bpf_elf64_be_vec.
305 * configure: Regenerate.
306
3072019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
308
fd0de36e
JM
309 * configure: Regenerated.
310 * Makefile.am (ALL_MACHINES): Add cpu-bpf.lo.
311 (ALL_MACHINES_CFILES): Add cpu-bpf.c.
312 (BFD64_BACKENDS): Add elf64-bpf.lo.
313 (BFD64_BACKENDS_CFILES): Add elf64-bpf.c.
314 * Makefile.in (SOURCE_HFILES): Regenerate.
315 * config.bfd (targ_cpu): Handle bpf-*-* targets.
316 * cpu-bpf.c: New file.
317 * elf64-bpf.c: Likewise.
318 * targets.c (_bfd_target_vector): Add bpf_elf64_be_vec and
319 bpf_elf64_le_vec.
320 * archures.c: Define architecture bfd_arch_bpf and machine
321 bfd_arch_bpf.
322 * reloc.c: Define BFD relocations used by the BPF target.
323 * bfd-in2.h: Regenerated.
324 * libbfd.h: Likewise.
325
b0f4fbf8
AM
3262019-05-22 Alan Modra <amodra@gmail.com>
327
328 * elf32-arm.c (arm_allocate_glue_section_space): Clear section
329 contents.
330
9ec2f606
AM
3312019-05-22 Alan Modra <amodra@gmail.com>
332
333 * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
334 processing on "size error in section".
335
4decd602
AM
3362019-05-22 Alan Modra <amodra@gmail.com>
337
338 * som.c (som_bfd_free_cached_info): Call
339 _bfd_generic_close_and_cleanup.
340
b474a202
FS
3412019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
342
343 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Generate error
344 for TLS_TPREL_HI16(/LO16) relocations in shared library.
345
304f09d0
FS
3462019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
347
348 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Add NULL pointer
349 checks. Search the RELA table for n64 relocations.
350
3734320d
MF
3512019-05-21 Matthew Fortune <matthew.fortune@mips.com>
352 Faraz Shahbazker <fshahbazker@wavecomp.com>
353
354 * elfxx-mips.c (LA25_BC): New macro.
355 (mips_elf_link_hash_table)<compact_branches>: New field.
356 (STUB_JALRC): New macro.
357 (mipsr6_o32_exec_plt0_entry_compact): New array.
358 (mipsr6_n32_exec_plt0_entry_compact): Likewise.
359 (mipsr6_n64_exec_plt0_entry_compact): Likewise.
360 (mipsr6_exec_plt_entry_compact): Likewise.
361 (mips_elf_create_la25_stub): Use BC instead of J for stubs
362 when compact_branches is true.
363 (_bfd_mips_elf_finish_dynamic_symbol): Choose the compact
364 PLT for MIPSR6 with compact_branches. Do not reorder the
365 compact branches PLT. Switch the lazy stub for MIPSR6
366 with compact_branches to use JALRC.
367 (mips_finish_exec_plt): Choose the compact PLT0 for MIPSR6
368 when compact_branches is true.
369 (_bfd_mips_elf_compact_branches): New function.
370 * elfxx-mips.h (_bfd_mips_elf_compact_branches): New prototype.
371
64672071
TC
3722019-05-21 Tamar Christina <tamar.christina@arm.com>
373
374 PR ld/24373
375 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
376 Fix print formatter.
377
e6f65e75
AV
3782019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
379
380 PR 24460
381 * elf32-arm.c (get_value_helper): Remove.
382 (elf32_arm_final_link_relocate): Fix branch future relocations.
383
739b5c9c
TC
3842019-05-21 Tamar Christina <tamar.christina@arm.com>
385
386 PR ld/24373
387 * bfd-in.h (enum erratum_84319_opts): New
388 (bfd_elf64_aarch64_set_options, bfd_elf32_aarch64_set_options): Change
389 int to enum erratum_84319_opts.
390 * bfd-in2.h: Regenerate.
391 * elfnn-aarch64.c (struct elf_aarch64_link_hash_table): Change
392 fix_erratum_843419 to use new enum, remove fix_erratum_843419_adr.
393 (_bfd_aarch64_add_stub_entry_after): Conditionally create erratum stub.
394 (aarch64_size_one_stub): Conditionally size erratum 843419 stubs.
395 (_bfd_aarch64_resize_stubs): Amend comment.
396 (elfNN_aarch64_size_stubs): Don't generate stubs when no workaround
397 requested.
398 (bfd_elfNN_aarch64_set_options): Use new fix_erratum_843419 enum.
399 (_bfd_aarch64_erratum_843419_branch_to_stub): Implement selection of
400 erratum workaround.
401 (clear_erratum_843419_entry): Update erratum conditional.
402
7622049e
SKS
4032019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
404
405 PR ld/24571
406 * bfd/elf32-avr.c (elf32_avr_relax_section): Adjust range check
407 when computing distance_short_enough.
408
338ba755
SKS
4092019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
410
411 PR ld/24564
412 * bfd/elf32-avr.c (avr_relative_distance_considering_wrap_around):
413 Wrap around even if distance equals avr_pc_wrap_around.
414
999b073b
NC
4152019-05-20 Nick Clifton <nickc@redhat.com>
416
417 * po/fr.po: Updated French translation.
418
a7ad558c
AV
4192019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
420
421 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add case for Tag_MVE_arch.
422
a2699ef2
AM
4232019-05-16 Alan Modra <amodra@gmail.com>
424
425 * elf32-arm.c (elf32_arm_write_section): Revert last change.
426
3a1bb98c
AM
4272019-05-15 Alan Modra <amodra@gmail.com>
428
429 * elf32-arm.c (elf32_arm_write_section): Don't leave
430 error case of STM32L4XX_ERRATUM_BRANCH_TO_VENEER with
431 unitialised section contents.
432
37d0d091
JH
4332019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
434
435 PR 19921
436 * verilog.c: (VerilogDataWidth): New variable.
437 (verilog_write_record): Emit bytes in VerilogDataWidth bundles.
438
79299211
NC
4392019-05-08 Nick Clifton <nickc@redhat.com>
440
441 PR 24523
442 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Return TRUE
443 rather than FALSE if encountering a non-ELF file.
444
e1cbf07a
AM
4452019-05-06 Alan Modra <amodra@gmail.com>
446
447 * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error.
448
334d91b9
AM
4492019-05-06 Alan Modra <amodra@gmail.com>
450
451 * reloc.c (BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA),
452 (BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA):
453 Sort before BFD_RELOC_PPC64_DTPREL16_HIGHESTA entry.
454 * libbfd.h: Regenerate.
455 * bfd-in2.h: Regenerate.
456
a288c270
AM
4572019-05-04 Alan Modra <amodra@gmail.com>
458
459 PR 24511
460 * syms.c (coff_section_type): Only allow '.', '$' and numeric
461 following the standard section names.
462 (bfd_decode_symclass): Prioritize section flag tests in
463 decode_section_type before name tests in coff_section_type.
464 * plugin.c (bfd_plugin_canonicalize_symtab): Init fake_section
465 and fake_common_section using BFD_FAKE_SECTION. Use "fake" as
466 their names and choose standard .text section flags for
467 fake_section.
468
2cdc1a97
NC
4692019-05-02 Nick Clifton <nickc@redhat.com>
470
471 PR 24493
472 * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
473 .gnu.debugaltlink sections as debugging sections.
474
066f4018
AM
4752019-04-30 Alan Modra <amodra@gmail.com>
476
477 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel.
478 (struct _ppc64_elf_section_data): Likewise.
479 (ppc64_elf_check_relocs): Set above fields.
480 (ppc64_elf_edit_toc): Add a pass over GOT relocs.
481 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
482 when possible.
483
c54f1524
L
4842019-04-26 H.J. Lu <hongjiu.lu@intel.com>
485
486 PR ld/24486
487 * elflink.c (elf_link_output_extsym): Don't complain undefined
488 weak dynamic reference.
489
68bb0359
SD
4902019-04-25 Sudakshina Das <sudi.das@arm.com>
491
492 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): Remove.
493 (PLT_BTI_TLSDESC_ENTRY_SIZE): Remove.
494 (PLT_PAC_ENTRY_SIZE, PLT_BTI_PAC_ENTRY_SIZE): Remove.
495 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): Update.
496 (elfNN_aarch64_small_plt0_pac_entry): Remove.
497 (elfNN_aarch64_small_plt0_bti_pac_entry): Remove.
498 (elfNN_aarch64_small_plt0_bti_entry): Update.
499 (elfNN_aarch64_small_plt_bti_entry): Update.
500 (elfNN_aarch64_small_plt_pac_entry): Update.
501 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): Update.
502 (setup_plt_values): Setup new entries.
503 (elfNN_aarch64_finish_dynamic_sections): Remove size change.
504 (elfNN_aarch64_plt_sym_val): Likewise.
505
79b8e8ab
JW
5062019-04-22 Jim Wilson <jimw@sifive.com>
507
508 * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
509
fce97736
AM
5102019-04-19 Alan Modra <amodra@gmail.com>
511
512 * elf32-s12z.c (elf_backend_can_gc_sections): Don't define
513
9a7f0679
L
5142019-04-17 H.J. Lu <hongjiu.lu@intel.com>
515
516 * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not
517 building shared object.
518 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Likewise.
519
4e84a8f8
L
5202019-04-17 H.J. Lu <hongjiu.lu@intel.com>
521
522 PR ld/24458
523 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86
524 linker_def.
525
32c36c3c
AV
5262019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
527
528 * reloc.c (BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM): New internal
529 relocation.
530 * bfd-in2.h: Regenerate.
531 * libbfd.h: Likewise.
532
60f993ce
AV
5332019-04-15 Sudakshina Das <sudi.das@arm.com>
534
535 * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New.
536 * bfd-in2.h: Regenerated.
537 * libbfd.h: Regenerated.
538
f6b2b12d
AV
5392019-04-15 Sudakshina Das <sudi.das@arm.com>
540
541 * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation.
542 * bfd-in2.h: Regenerated.
543 * libbfd.h: Likewise.
544
1889da70
AV
5452019-04-15 Sudakshina Das <sudi.das@arm.com>
546
547 * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New.
548 * bfd-in2.h: Regenerated.
549 * libbfd.h: Regenerated.
550 * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13.
551 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13
552 and R_ARM_THM_BF12 together.
553 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13.
554
1caf72a5
AV
5552019-04-15 Sudakshina Das <sudi.das@arm.com>
556
557 * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New
558 * libbfd.h: Regenerated.
559 * bfd-in2.h: Regenerated.
560 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18.
561 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19
562 and R_ARM_THM_BF18 together.
563 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19.
564
e5d6e09e
AV
5652019-04-15 Sudakshina Das <sudi.das@arm.com>
566
567 * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum.
568 * bfd-in2.h: Regenerated.
569 * libbfd.h: Regenerated.
570 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16.
571 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17
572 and R_ARM_THM_BF16 together.
573 (get_value_helper): New reloc helper.
574 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16.
575
e12437dc
AV
5762019-04-15 Sudakshina Das <sudi.das@arm.com>
577
578 * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
579 * bfd-in2.h: Regenerate.
580 * libbfd.h: Regenerate.
581
031254f2
AV
5822019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
583
584 * archures.c (bfd_mach_arm_8_1M_MAIN): Define.
585 * bfd-in2.h: Regenerate.
586 * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline.
587 * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline
588 and update assert.
589 (using_thumb2): Likewise.
590 (using_thumb2_bl): Update assert.
591 (arch_has_arm_nop): Likewise.
592 (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline.
593 (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging.
594
233a0083
L
5952019-04-11 H.J. Lu <hongjiu.lu@intel.com>
596
597 * elf-linker-x86.h (elf_x86_cet_report): New.
598 (elf_linker_x86_params): Add cet_report.
599 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
600 missing IBT and SHSTK properties if needed.
601
a0ea3a14
L
6022019-04-11 H.J. Lu <hongjiu.lu@intel.com>
603
ca4e6331 604 PR ld/24436
a0ea3a14
L
605 * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of
606 "h != NULL". Don't check "h != NULL" before calling.
607 bfd_elf_gc_record_vtentry.
608 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
609 * elf32-bfin.c (bfin_check_relocs): Likewise.
610 * elf32-cris.c (cris_elf_check_relocs): Likewise.
611 * elf32-csky.c (csky_elf_check_relocs): Likewise.
612 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
613 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
614 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
615 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
616 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
617 * elf32-i386.c (elf_i386_check_relocs): Likewise.
618 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
619 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
620 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
621 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
622 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
623 * elf32-metag.c (elf_metag_check_relocs): Likewise.
624 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
625 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
626 * elf32-s390.c (elf_s390_check_relocs): Likewise.
627 * elf32-sh.c (sh_elf_check_relocs): Likewise.
628 * elf32-v850.c (v850_elf_check_relocs): Likewise.
629 * elf32-vax.c (elf_vax_check_relocs): Likewise.
630 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
631 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
632 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
633 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
634 * elf64-s390.c (elf_s390_check_relocs): Likewise.
635 * elf64-x86-64.c (elf_s390_check_relocs): Likewise.
636 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
637 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
638 * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt
639 VTENTRY entry.
640
9bff840e
AM
6412019-04-11 Alan Modra <amodra@gmail.com>
642
643 PR 24435
644 * elflink.c (elf_link_add_object_symbols): Don't read partial
645 dynamic entries from fuzzed objects.
646
ce12121b
TC
6472019-04-11 Tamar Christina <tamar.christina@arm.com>
648
649 PR ld/24302
650 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit
651 DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW.
652 (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW.
653
b05971a6
MF
6542019-04-10 Michael Forney <mforney@mforney.org>
655
656 PR 24427
657 * doc/chew.c (free_words): Correctly free "push_text" strings.
658
3ae61bb6
L
6592019-04-08 H.J. Lu <hongjiu.lu@intel.com>
660
661 * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets.
662
5f2a6b85
AM
6632019-04-08 Alan Modra <amodra@gmail.com>
664
665 * configure.ac (elfxx_x86): Define and use.
666 * configure: Regenerate.
667
5b9c07b2
L
6682019-04-06 H.J. Lu <hongjiu.lu@intel.com>
669
670 * elf-linker-x86.h: New file.
671 * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params
672 to get x86-specific linker options.
673 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
674 (elf_x86_64_check_relocs): Likewise.
675 (elf_x86_64_relocate_section): Likewise.
676 (elf_x86_64_link_setup_gnu_properties): Likewise.
677 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise.
678 (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
679 (_bfd_elf_linker_x86_set_options): New function.
680 * elfxx-x86.h: Include "elf-linker-x86.h".
681 (elf_x86_link_hash_table): Add params.
682
4b24dd1a
AM
6832019-04-03 Alan Modra <amodra@gmail.com>
684
685 * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c,
686 * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c,
687 * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c,
688 * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c,
689 * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c,
690 * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes.
691
87f98bac
JW
6922019-04-02 Jim Wilson <jimw@sifive.com>
693
694 PR 24389
695 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
696 ELF header flags to after check for ELF object file. Loop through
697 sections looking for code sections, if none, then skip ABI checks.
698
ae2b14c7
JW
6992019-03-30 Andrew Waterman <andrew@sifive.com>
700
701 * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for
702 rd == X_RA case.
703
2487ef07
MF
7042019-03-29 Max Filippov <jcmvbkbc@gmail.com>
705
706 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
707 info->export_dynamic to the conditional.
708
242a1159
AM
7092019-03-28 Alan Modra <amodra@gmail.com>
710
711 PR 24392
712 * configure.ac: Invoke AC_CHECK_SIZEOF(int).
713 * configure: Regenerate.
714 * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
715 workaround with SIZEOF_LONG vs. SIZEOF_INT check.
716 * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
717 * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
718 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
719
a9f5a551
JW
7202019-03-21 Jim Wilson <jimw@sifive.com>
721
722 PR 24365
723 * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check,
724 verify sym non-NULL before using. Add identical check using h.
725
4e539114
SD
7262019-03-21 Sudakshina Das <sudi.das@arm.com>
727
728 * elf-bfd.h (struct elf_backend_data): Add argument to
729 merge_gnu_properties.
730 * elf-properties.c (elf_merge_gnu_properties): Add argument to
731 itself and while calling bed->merge_gnu_properties.
732 (elf_merge_gnu_property_list): Update the calls for
733 elf_merge_gnu_properties.
734 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
735 of --force-bti warning and add argument.
736 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
737 warning.
738 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
739 * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
740 declaration.
741
acde6c6b
SD
7422019-03-20 Sudakshina Das <sudi.das@arm.com>
743
744 * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define.
745 * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare.
746 (elf_backend_fixup_gnu_properties): Define for AArch64.
747
8cd1fe1b
AM
7482019-03-18 Alan Modra <amodra@gmail.com>
749
750 PR 24355
751 * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
752 for local iplt syms with ent->plt.offset == -1. Remove ineffective
753 attempt at writing glink stubs only once.
754
6835821b
AM
7552019-03-16 Alan Modra <amodra@gmail.com>
756
757 PR 24337
758 * elf.c (_bfd_elf_rela_local_sym): Revert last change.
759 (_bfd_elf_rel_local_sym): Likewise.
760 * elflink.c (elf_link_input_bfd): Use bfd_und_section for
761 section of symbols with unrecognized shndx.
762
2219ae0b
L
7632019-03-15 H.J. Lu <hongjiu.lu@intel.com>
764
765 PR ld/24267
766 * coffgen.c (_bfd_coff_section_already_linked): Skip discarded
767 section.
768 * cofflink.c (coff_link_add_symbols): Check for symbols defined
769 in discarded section.
770
fe3fef62
AM
7712019-03-15 Alan Modra <amodra@gmail.com>
772
773 PR 24339
774 * elflink.c (elf_link_add_object_symbols): Bail out on a local
775 symbol after globals if elf_bad_symtab is not set.
776
1ff31e13
AM
7772019-03-15 Alan Modra <amodra@gmail.com>
778
779 PR 24337
780 * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec.
781 (_bfd_elf_rel_local_sym): Likewise.
782
f55b1e32
AM
7832019-03-15 Alan Modra <amodra@gmail.com>
784
785 PR 24336
786 * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed
787 object files with sh_size not a multiple of sh_entsize.
788
da0d12d2
L
7892019-03-15 H.J. Lu <hongjiu.lu@intel.com>
790
418d4036
L
791 PR ld/24338
792 * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt
793 input with bad relocation.
794
79522019-03-15 H.J. Lu <hongjiu.lu@intel.com>
796
da0d12d2
L
797 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
798
d7f848c3
NC
7992019-03-14 Nick Clifton <nickc@redhat.com>
800
801 PR 24334
802 * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field.
803 (save_section_vma): Initialise field to the number of entries in
804 the sec_vma table.
805 (section_vma_same): Check that the number of entries in the
806 sec_vma table matches the number of sections in the bfd.
807
6cc71b82
NC
8082019-03-14 Nick Clifton <nickc@redhat.com>
809
810 PR 24333
811 * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL
812 section owner pointer when adding the default symbol.
813
be22c732
NC
8142019-03-14 Nick Clifton <nickc@redhat.com>
815
816 PR 24332
817 * elflink.c (elf_link_add_object_symbols): Add new local variable
818 extversym_end. Initialise it to point to the end of the version
819 symbol table, if present. Check it when initialising and updating
820 the ever pointer.
821
1dbade74
SD
8222019-03-13 Sudakshina Das <sudi.das@arm.com>
823
824 * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New.
825 (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New.
826 (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs.
827 (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC
828 and PLT_PAC_PLT.
829 (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC.
830 (get_plt_type): Add case for DT_AARCH64_PAC_PLT.
831 (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC.
832
37c18eed
SD
8332019-03-13 Sudakshina Das <sudi.das@arm.com>
834 Szabolcs Nagy <szabolcs.nagy@arm.com>
835
836 * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New.
837 (aarch64_bti_pac_info): New.
838 (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument.
839 (bfd_elf32_aarch64_set_options): Likewise.
840 * bfd-in2.h: Regenerate
841 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New.
842 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New.
843 (elfNN_aarch64_small_plt0_bti_entry): New.
844 (elfNN_aarch64_small_plt_bti_entry): New.
845 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New.
846 (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields.
847 (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and
848 tlsdesc_plt_entry_size fields.
849 (elfNN_aarch64_link_hash_table_create): Initialise the new fields.
850 (setup_plt_values): New helper function.
851 (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and
852 bti enable type.
853 (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of
854 fixed macros.
855 (elfNN_aarch64_size_dynamic_sections): Likewise and add checks.
856 (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers
857 to plt stubs instead of fixed ones and update filling them according
858 to the need for bti.
859 (elfNN_aarch64_init_small_plt0_entry): Likewise.
860 (elfNN_aarch64_finish_dynamic_sections): Likewise.
861 (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New.
862 (elfNN_aarch64_plt_sym_val): Update size accordingly.
863 (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE
864 is set.
865 (bfd_elfNN_get_synthetic_symtab): Define.
866 (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti
867 and mising BTI NOTE SECTION.
868
869
cd702818
SD
8702019-03-13 Sudakshina Das <sudi.das@arm.com>
871
872 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude
873 linker created inputs from merge.
874 * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for
875 GNU_PROPERTY_AARCH64_FEATURE_1_AND properties.
876 (elfNN_aarch64_link_setup_gnu_properties): New.
877 (elfNN_aarch64_merge_gnu_properties): New.
878 (elf_backend_setup_gnu_properties): Define for AArch64.
879 (elf_backend_merge_gnu_properties): Likewise.
880 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define.
881 (_bfd_aarch64_elf_parse_gnu_properties): Define.
882 (_bfd_aarch64_elf_merge_gnu_properties): Define.
883 * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare.
884 (_bfd_aarch64_elf_parse_gnu_properties): Declare.
885 (_bfd_aarch64_elf_merge_gnu_properties): Declare.
886 (elf_backend_parse_gnu_properties): Define for AArch64.
887
44b27f95
L
8882019-03-13 H.J. Lu <hongjiu.lu@intel.com>
889
890 PR ld/24322
891 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly
892 merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK].
893
7a6e0d89
AM
8942019-03-12 Alan Modra <amodra@gmail.com>
895
896 * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add
897 nmemb parameter. Use bfd_alloc2.
898 (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls.
899 Delete assertion.
900 (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2.
901 (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls.
902 * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation
903 doesn't overflow.
904 * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix.
905 (assign_section_numbers): Style fix.
906 (swap_out_syms): Use bfd_malloc2.
907 (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't
908 overflow.
909 (_bfd_elf_make_empty_symbol): Style fix.
910 (elfobj_grok_stapsdt_note_1): Formatting.
911 * elfcode.h (elf_object_p): Use bfd_alloc2.
912 (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise.
913 (elf_slurp_symbol_table): Use bfd_zalloc2.
914 (elf_slurp_reloc_table): Use bfd_alloc2.
915 (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2.
916 * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure
917 size calculation doesn't overflow.
918 (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise.
919 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
920 * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version.
921
ebd2263b
AM
9222019-03-08 Alan Modra <amodra@gmail.com>
923
924 PR 24311
925 * merge.c (merge_strings): Return secinfo. Don't pad section
926 to alignment here.
927 (_bfd_merge_sections): Pad section to alignment here, if input
928 sections contributing to merged output all pad to alignment.
929 Formatting.
930
219d6836
NC
9312019-03-06 Nick Clifton <nickc@redhat.com>
932
933 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
934 table pointer.
935 * coffgen.c (coff_find_nearest_line_with_names): Do not call
936 _bfd_dwarf2_find_symbol_bias if there is no symbol table available.
937
24801b15
AK
9382019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
939
940 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
941 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
942
943 PR 20113
944 * elf32-s390.c (allocate_dynrelocs): Update comment.
945
4ffd2909
TC
9462019-02-28 Tamar Christina <tamar.christina@arm.com>
947
948 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
949
eed5def8
NC
9502019-02-28 Nick Clifton <nickc@redhat.com>
951
952 PR 24273
953 * elf.c (bfd_elf_string_from_elf_section): Check for a string
954 section that is not NUL terminated.
955
5cfe428c
L
9562019-02-27 H.J. Lu <hongjiu.lu@intel.com>
957
958 PR ld/24276
959 * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
960 by linker when checking copy reloc on protected symbol.
961
f616c36b
AM
9622019-02-24 Alan Modra <amodra@gmail.com>
963
964 PR 24144
965 * pdp11.c (set_section_contents): Revert 2015-02-24 change.
966
eed62915
MF
9672019-02-20 Eric Tsai <erictsai@cadence.com>
968
969 * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
970 sections between the call site and call destination and adjust
971 call distance by the largest alignment.
972
e6c3b5bf
AH
9732019-02-20 Alan Hayward <alan.hayward@arm.com>
974
975 * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
976 * elf.c (elfcore_grok_aarch_pauth): New function.
977 (elfcore_grok_note): Check for NT_ARM_PAC_MASK.
978 (elfcore_write_aarch_pauth): New function.
979 (elfcore_write_register_note): Check for AArch64 pauth section.
980
34d75fb5
AM
9812019-02-20 Alan Modra <amodra@gmail.com>
982
983 PR 24225
984 * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
985 return value.
986
edd01d07
MR
9872019-02-20 Michael Roitzsch <reactorcontrol@icloud.com>
988
989 * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
990 Darwin hosts, not just or1k.
991 * configure: Regenerate.
992
8abac803
AM
9932019-02-20 Alan Modra <amodra@gmail.com>
994
995 PR 24236
996 * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
997 sentinel NUL to string buffer nearer to loop where it is used.
998 Don't go past sentinel when scanning strings, and don't write
999 NUL again.
1000 * archive.c (do_slurp_coff_armap): Simplify string handling to
1001 archive64.c style.
1002
179f2db0
AM
10032019-02-19 Alan Modra <amodra@gmail.com>
1004
1005 PR 24235
1006 * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
1007 attempting to prevent read past end of section.
1008
a31b8bd9
AM
10092019-02-18 Alan Modra <amodra@gmail.com>
1010
1011 PR 24225
1012 * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
1013 PRIx64 to generate warning messages. Print local sym names too.
1014
a0e90a73
CZ
10152019-02-09 Vineet Gupta <vgupta@synopsys.com>
1016
1017 * elf32-arc (INIT_SYM_STRING): Delete.
1018 (FINI_SYM_STRING): Likewise.
1019 (init_str): Likewise.
1020 (fini_str): Likewise.
1021
482f3505
AM
10222019-02-08 Alan Modra <amodra@gmail.com>
1023
1024 * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
1025 for bss-plt" warning to make it an error.
1026
b2abe1bd
EB
10272019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1028
1029 PR ld/18841
1030 * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
1031 reloc_class_ifunc for ifunc symbols.
1032 * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
1033
68a09132
EB
10342019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1035
1036 * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
1037 <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
1038
2012bf01
NC
10392019-02-07 Nick Clifton <nickc@redhat.com>
1040
1041 * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
1042 into the definitely obsolete list.
1043
83924b38
L
10442019-02-05 H.J. Lu <hongjiu.lu@intel.com>
1045
1046 PR ld/24151
1047 * elf64-x86-64.c (elf_x86_64_need_pic): Check
1048 SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
1049 (elf_x86_64_relocate_section): Move PIC check for PC-relative
1050 relocations to ...
1051 (elf_x86_64_check_relocs): Here.
1052 (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
1053 to check if a symbol is defined in a non-shared object.
1054 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
1055
453f8e1e
SDJ
10562019-01-21 Sergio Durigan Junior <sergiodj@redhat.com>
1057
1058 * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
1059 of 'labs' (and fix GCC warning).
1060
9ed1348c
NC
10612019-01-25 Nick Clifton <nickc@redhat.com>
1062
1063 * po/ru.po: Updated Russian translation.
1064
d9938630
NC
10652019-01-23 Nick Clifton <nickc@redhat.com>
1066
1067 * po/fr.po: Updated French translation.
1068
375cd423
NC
10692019-01-21 Nick Clifton <nickc@redhat.com>
1070
1071 * po/pt.po: Updated Portuguese translation.
1072 * po/uk.po: Updated Ukranian translation.
1073
acef8081
YC
10742019-01-21 Yuri Chornoivan <yurchor@ukr.net>
1075
1076 PR 24108
1077 * elf32-nds32.c (nds32_relocate_section): Add space between words
1078 in error message.
1079 * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
1080 error message.
1081 (riscv_i_or_e_p): Likewise.
1082 (riscv_merge_arch_attr_info): Likewise.
1083
f48dfe41
NC
10842019-01-19 Nick Clifton <nickc@redhat.com>
1085
1086 * version.m4: Reset to 2.32.51
1087 * configure: Regenerate.
1088 * po/bfd.pot: Regenerate.
1089
f974f26c
NC
10902018-06-24 Nick Clifton <nickc@redhat.com>
1091
1092 2.32 branch created.
1093
a4bf3d07
JW
10942019-01-16 Kito Cheng <kito@andestech.com>
1095
1096 * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
1097 for OBJ_ATTR_PROC.
1098
2dc8dd17
JW
10992019-01-16 Kito Cheng <kito@andestech.com>
1100 Nelson Chu <nelson@andestech.com>
1101
7d7a7d7c
JW
1102 * elfnn-riscv.c (in_subsets): New.
1103 (out_subsets): Likewise.
1104 (merged_subsets): Likewise.
1105 (riscv_std_ext_p): Likewise.
1106 (riscv_non_std_ext_p): Likewise.
1107 (riscv_std_sv_ext_p): Likewise.
1108 (riscv_non_std_sv_ext_p): Likewise.
1109 (riscv_version_mismatch): Likewise.
1110 (riscv_i_or_e_p): Likewise.
1111 (riscv_merge_std_ext): Likewise.
1112 (riscv_merge_non_std_and_sv_ext): Likewise.
1113 (riscv_merge_arch_attr_info): Likewise.
1114 (riscv_merge_attributes): Likewise.
1115 (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
1116
2dc8dd17
JW
1117 * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
1118 (elf_backend_obj_attrs_vendor): Define.
1119 (elf_backend_obj_attrs_section_type): Likewise.
1120 (elf_backend_obj_attrs_section): Likewise.
1121 (elf_backend_obj_attrs_arg_type): Define as
1122 riscv_elf_obj_attrs_arg_type.
1123 * elfxx-riscv.c (riscv_estimate_digit): New.
1124 (riscv_estimate_arch_strlen1): Likewise.
1125 (riscv_estimate_arch_strlen): Likewise.
1126 (riscv_arch_str1): Likewise.
1127 (riscv_arch_str): Likewise.
1128 * elfxx-riscv.h (riscv_arch_str): Declare.
1129
d5dcaf1b
JD
11302019-01-14 John Darrington <john@darrington.wattle.id.au>
1131
1132 * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
1133 * libbfd.h: regen.
1134 * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
1135 source field. (md_apply_fix): Apply final fix
1136 to BFD_RELOC_S12Z_OPR.
1137 * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
1138
5a12586d
MT
11392019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1140
f466c305 1141 PR 20113
5a12586d
MT
1142 * elf32-s390.c (allocate_dynrelocs): Update comment.
1143
3107326d
AP
11442019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1145
1146 * warning.m4: Adjust egrep pattern for non-GNU compilers.
1147 * configure: Regenerate.
1148
a9859e01
AM
11492019-01-08 Alan Modra <amodra@gmail.com>
1150
1151 PR 23699
1152 PR 24065
1153 * ihex.c (ihex_write_object_contents): Properly check 32-bit
1154 address range.
1155
c8c89dac
YS
11562019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1157
1158 * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
1159 * bfd/bfd-in2.h: Regenerate.
1160 * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
1161 * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
1162
d9858c37
LX
11632019-01-04 Lifang Xia <lifang_xia@c-sky.com>
1164
1165 * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
1166 default target, little endian target is more suitable.
1167
677bd4c6
AM
11682019-01-04 Alan Modra <amodra@gmail.com>
1169
1170 PR 24061
1171 PR 21786
1172 * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
1173 adjust all callers.
1174 (EQ_VALUE_IN_FIELD): Likewise.
1175 * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
1176
82704155
AM
11772019-01-01 Alan Modra <amodra@gmail.com>
1178
1179 Update year range in copyright notice of all files.
1180
d5c04e1b 1181For older changes see ChangeLog-2018
3499769a 1182\f
d5c04e1b 1183Copyright (C) 2019 Free Software Foundation, Inc.
3499769a
AM
1184
1185Copying and distribution of this file, with or without modification,
1186are permitted in any medium without royalty provided the copyright
1187notice and this notice are preserved.
1188
1189Local Variables:
1190mode: change-log
1191left-margin: 8
1192fill-column: 74
1193version-control: never
1194End:
This page took 0.33323 seconds and 4 git commands to generate.