PR24689, string table corruption
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
890f750a
AM
12019-06-21 Alan Modra <amodra@gmail.com>
2
3 PR 24689
4 * elfcode.h (elf_object_p): Check type of e_shstrndx section.
5
6f5601c4
AM
62019-06-19 Alan Modra <amodra@gmail.com>
7
8 PR 24697
9 * elf32-ppc.c (ppc_elf_relocate_section): Don't read insn for
10 R_PPC_EMB_RELSDA. Mask low bit of R_PPC_EMB_SDA21 r_offset.
11
4a4e7361
AM
122019-06-19 Alan Modra <amodra@gmail.com>
13
14 * elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for
15 functions that require r2 valid to use local entry.
16 (ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise.
17
39c05d94
SN
182019-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
19
20 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_dynrelocs): Remove.
21 (elfNN_aarch64_size_dynamic_sections): Remove loc_hash_table traversal
22 with elfNN_aarch64_allocate_local_dynrelocs.
23
e30d1fa1
SN
242019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
25
26 * elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32.
27
3a3a077c
AM
282019-06-14 Alan Modra <amodra@gmail.com>
29
30 * Makefile.in: Regenerate.
31 * configure: Regenerate.
32
d4b87b1e
AM
332019-06-14 Alan Modra <amodra@gmail.com>
34
35 * elf64-ppc.c: Fix comments involving paddi.
36
62e0492f
AL
372019-06-12 Adam Lackorzymski <adam@os.inf.tu-dresden.de>
38
39 PR 24643
40 * elf32-arm.c (arm_elf_find_function): Fail if the symol table is
41 absent, or the bfd is not in the ELF formart.
42 * elfnn-aarch64.c (aarch64_elf_find_function): Likewise.
43
58e07198
CZ
442019-06-10 Christos Zoulas <christos@zoulas.com>
45
46 PR 24650
47 * elf.c (elfcore_make_auxv_note_section): New function.
48 (elfcore_grok_note): Use it.
49 (elfcore_grok_freebsd_note): Likewise.
50 (elfcore_grok_openbsd_note): Likewise.
51 (elfcore_grok_netbsd_note): Likewise. Plus add support for
52 NT_NETBSDCORE_AUXV notes.
53
237df8fe
SD
542019-06-06 Sudakshina Das <sudi.das@arm.com>
55
56 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Set
57 alignment of the new gnu property section.
58
8bf6d176
SD
592019-06-06 Sudakshina Das <sudi.das@arm.com>
60
61 * bfd-in.h: Change comment.
62 * bfd-in2.h: Regenerate.
63 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update warning.
64 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties):
65 Likwise.
66
1e129bbe
FS
672019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
68
69 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>:
70 Remove overflow check.
71
0f4a61b4
AM
722019-05-28 Alan Modra <amodra@gmail.com>
73
74 PR 24596
75 * cofflink.c (coff_link_check_archive_element): Don't assume
76 element is a coff object file after calling add_archive_element.
77
94667ab1
AM
782019-05-28 Alan Modra <amodra@gmail.com>
79
80 PR 24596
81 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't
82 attempt to set sh_entsize for excluded PLT section.
83
28fbeab8
AM
842019-05-28 Alan Modra <amodra@gmail.com>
85
86 PR 24596
87 * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt
88 to emit R_ALPHA_GOTTPREL in PIEs, for which no space is
89 allocated in alpha_dynamic_entries_for_reloc.
90
a0f6fd21
AM
912019-05-28 Alan Modra <amodra@gmail.com>
92
93 PR 24596
94 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault
95 on NULL output_section.
96 * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf.
97
c83004d5
AM
982019-05-28 Alan Modra <amodra@gmail.com>
99
100 PR 24596
101 * elf32-m68k.c (elf_m68k_get_got_entry): Don't create a new
102 entry when MUST_FIND. Abort when MUST_FIND not found.
103 (elf_m68k_get_bfd2got_entry): Likewise.
104 (elf_m68k_relocate_section): Remove now useless assert.
105
586338b8
AM
1062019-05-28 Alan Modra <amodra@gmail.com>
107
108 PR 24596
109 * elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd
110 from bfd_link_info, not an output section owner.
111 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise.
112 (elf_hppa_final_link_relocate): Likewise.
113
a7b34aba
AM
1142019-05-28 Alan Modra <amodra@gmail.com>
115
116 PR 24596
117 * aout-tic30.c (MY_bfd_final_link): Don't segfault on missing
118 create_object_symbols_section, obj_textsec, obj_datasec or
119 obj_bsssec. Fix other errors in placement.
120 * config.bfd: Obsolete tic30-aout.
121
0eb32b6e
AM
1222019-05-28 Alan Modra <amodra@gmail.com>
123
124 PR 24596
125 * dwarf2.c (save_section_vma, section_vma_same): Check for NULL
126 end of section list as well as section_count.
127 * xcofflink.c (xcoff_link_add_symbols): Fix temporarily changed
128 section list before returning error.
129
ce5aecf8
AM
1302019-05-27 Alan Modra <amodra@gmail.com>
131
132 * elf.c (bfd_elf_set_group_contents): Exit on zero size section.
133
3d7d6a6f
AM
1342019-05-27 Alan Modra <amodra@gmail.com>
135
136 PR 24596
137 * linker.c (_bfd_generic_link_output_symbols): Heed BSF_KEEP.
138
823710d5
SN
1392019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
140
141 * elfnn-aarch64.c (elfNN_aarch64_merge_symbol_attribute): New function.
142 (struct elf_aarch64_link_hash_table): Add variant_pcs member.
143 (elfNN_aarch64_allocate_dynrelocs): Update variant_pcs.
144 (elfNN_aarch64_size_dynamic_sections): Add DT_AARCH64_VARIANT_PCS.
145 (elf_backend_merge_symbol_attribute): Define.
146
405b5bd8
AM
1472019-05-24 Alan Modra <amodra@gmail.com>
148
149 * po/SRC-POTFILES.in: Regenerate.
150
04bdff6a
AM
1512019-05-24 Alan Modra <amodra@gmail.com>
152
153 * elf64-ppc.c: Comment on powerxx _notoc stub variants.
154 (LI_R11_0, LIS_R11, ORI_R11_R11_0, SLDI_R11_R11_34): Define.
155 (PADDI_R12_PC, PLD_R12_PC, D34, HA34): Define.
156 (struct ppc_link_hash_table): Add powerxx_stubs.
157 (ppc64_elf_check_relocs): Set powerxx_stubs.
158 (build_powerxx_offset, size_powerxx_offset),
159 (num_relocs_for_powerxx_offset),
160 (emit_relocs_for_powerxx_offset): New functions.
161 (plt_stub_size): Size powerxx stubs.
162 (ppc_build_one_stub): Emit powerxx stubs.
163 (ppc_size_one_stub): Size powerxx stubs. Omit .eh_frame for
164 powerxx stubs.
165
4a421c53
AM
1662019-05-24 Alan Modra <amodra@gmail.com>
167
168 * elf64-ppc.c (ppc64_elf_check_relocs): Set has_gotrel for
169 R_PPC64_GOT_PCREL34.
170 (xlate_pcrel_opt): New function.
171 (ppc64_elf_edit_toc): Handle R_PPC64_GOT_PCREL34.
172 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
173 for R_PPC64_GOT_PCREL34. Implement R_PPC64_PCREL_OPT optimisation.
174
5663e321
AM
1752019-05-24 Alan Modra <amodra@gmail.com>
176
177 * reloc.c (BFD_RELOC_PPC64_D34, BFD_RELOC_PPC64_D34_LO),
178 (BFD_RELOC_PPC64_D34_HI30, BFD_RELOC_PPC64_D34_HA30),
179 (BFD_RELOC_PPC64_PCREL34, BFD_RELOC_PPC64_GOT_PCREL34),
180 (BFD_RELOC_PPC64_PLT_PCREL34),
181 (BFD_RELOC_PPC64_ADDR16_HIGHER34, BFD_RELOC_PPC64_ADDR16_HIGHERA34),
182 (BFD_RELOC_PPC64_ADDR16_HIGHEST34, BFD_RELOC_PPC64_ADDR16_HIGHESTA34),
183 (BFD_RELOC_PPC64_REL16_HIGHER34, BFD_RELOC_PPC64_REL16_HIGHERA34),
184 (BFD_RELOC_PPC64_REL16_HIGHEST34, BFD_RELOC_PPC64_REL16_HIGHESTA34),
185 (BFD_RELOC_PPC64_D28, BFD_RELOC_PPC64_PCREL28): New reloc enums.
186 * elf64-ppc.c (PNOP): Define.
187 (ppc64_elf_howto_raw): Add reloc howtos for new relocations.
188 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc numbers.
189 (ppc64_elf_ha_reloc): Adjust addend for highera34 and highesta34
190 relocs.
191 (ppc64_elf_prefix_reloc): New function.
192 (struct ppc_link_hash_table): Add notoc_plt.
193 (is_branch_reloc): Add R_PPC64_PLTCALL_NOTOC.
194 (is_plt_seq_reloc): Add R_PPC64_PLT_PCREL34,
195 R_PPC64_PLT_PCREL34_NOTOC, and R_PPC64_PLTSEQ_NOTOC.
196 (ppc64_elf_check_relocs): Handle pcrel got and plt relocs. Set
197 has_pltcall for section on seeing R_PPC64_PLTCALL_NOTOC. Handle
198 possible need for dynamic relocs on non-pcrel powerxx relocs.
199 (dec_dynrel_count): Handle non-pcrel powerxx relocs.
200 (ppc64_elf_inline_plt): Handle R_PPC64_PLTCALL_NOTOC.
201 (toc_adjusting_stub_needed): Likewise.
202 (ppc64_elf_tls_optimize): Handle R_PPC64_PLTSEQ_NOTOC.
203 (ppc64_elf_relocate_section): Handle new powerxx relocs.
204 * bfd-in2.h: Regenerate.
205 * libbfd.h: Regenerate.
206
fd0de36e
JM
2072019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
208
45d5293f
JM
209 * config.bfd (targ_cpu): Process bpf-*-none only if BFD64.
210 * configure.ac: Set target_size=64 for bpf_elf64_le_vec and
211 bpf_elf64_be_vec.
212 * configure: Regenerate.
213
2142019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
215
fd0de36e
JM
216 * configure: Regenerated.
217 * Makefile.am (ALL_MACHINES): Add cpu-bpf.lo.
218 (ALL_MACHINES_CFILES): Add cpu-bpf.c.
219 (BFD64_BACKENDS): Add elf64-bpf.lo.
220 (BFD64_BACKENDS_CFILES): Add elf64-bpf.c.
221 * Makefile.in (SOURCE_HFILES): Regenerate.
222 * config.bfd (targ_cpu): Handle bpf-*-* targets.
223 * cpu-bpf.c: New file.
224 * elf64-bpf.c: Likewise.
225 * targets.c (_bfd_target_vector): Add bpf_elf64_be_vec and
226 bpf_elf64_le_vec.
227 * archures.c: Define architecture bfd_arch_bpf and machine
228 bfd_arch_bpf.
229 * reloc.c: Define BFD relocations used by the BPF target.
230 * bfd-in2.h: Regenerated.
231 * libbfd.h: Likewise.
232
b0f4fbf8
AM
2332019-05-22 Alan Modra <amodra@gmail.com>
234
235 * elf32-arm.c (arm_allocate_glue_section_space): Clear section
236 contents.
237
9ec2f606
AM
2382019-05-22 Alan Modra <amodra@gmail.com>
239
240 * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
241 processing on "size error in section".
242
4decd602
AM
2432019-05-22 Alan Modra <amodra@gmail.com>
244
245 * som.c (som_bfd_free_cached_info): Call
246 _bfd_generic_close_and_cleanup.
247
b474a202
FS
2482019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
249
250 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Generate error
251 for TLS_TPREL_HI16(/LO16) relocations in shared library.
252
304f09d0
FS
2532019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
254
255 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Add NULL pointer
256 checks. Search the RELA table for n64 relocations.
257
3734320d
MF
2582019-05-21 Matthew Fortune <matthew.fortune@mips.com>
259 Faraz Shahbazker <fshahbazker@wavecomp.com>
260
261 * elfxx-mips.c (LA25_BC): New macro.
262 (mips_elf_link_hash_table)<compact_branches>: New field.
263 (STUB_JALRC): New macro.
264 (mipsr6_o32_exec_plt0_entry_compact): New array.
265 (mipsr6_n32_exec_plt0_entry_compact): Likewise.
266 (mipsr6_n64_exec_plt0_entry_compact): Likewise.
267 (mipsr6_exec_plt_entry_compact): Likewise.
268 (mips_elf_create_la25_stub): Use BC instead of J for stubs
269 when compact_branches is true.
270 (_bfd_mips_elf_finish_dynamic_symbol): Choose the compact
271 PLT for MIPSR6 with compact_branches. Do not reorder the
272 compact branches PLT. Switch the lazy stub for MIPSR6
273 with compact_branches to use JALRC.
274 (mips_finish_exec_plt): Choose the compact PLT0 for MIPSR6
275 when compact_branches is true.
276 (_bfd_mips_elf_compact_branches): New function.
277 * elfxx-mips.h (_bfd_mips_elf_compact_branches): New prototype.
278
64672071
TC
2792019-05-21 Tamar Christina <tamar.christina@arm.com>
280
281 PR ld/24373
282 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
283 Fix print formatter.
284
e6f65e75
AV
2852019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
286
287 PR 24460
288 * elf32-arm.c (get_value_helper): Remove.
289 (elf32_arm_final_link_relocate): Fix branch future relocations.
290
739b5c9c
TC
2912019-05-21 Tamar Christina <tamar.christina@arm.com>
292
293 PR ld/24373
294 * bfd-in.h (enum erratum_84319_opts): New
295 (bfd_elf64_aarch64_set_options, bfd_elf32_aarch64_set_options): Change
296 int to enum erratum_84319_opts.
297 * bfd-in2.h: Regenerate.
298 * elfnn-aarch64.c (struct elf_aarch64_link_hash_table): Change
299 fix_erratum_843419 to use new enum, remove fix_erratum_843419_adr.
300 (_bfd_aarch64_add_stub_entry_after): Conditionally create erratum stub.
301 (aarch64_size_one_stub): Conditionally size erratum 843419 stubs.
302 (_bfd_aarch64_resize_stubs): Amend comment.
303 (elfNN_aarch64_size_stubs): Don't generate stubs when no workaround
304 requested.
305 (bfd_elfNN_aarch64_set_options): Use new fix_erratum_843419 enum.
306 (_bfd_aarch64_erratum_843419_branch_to_stub): Implement selection of
307 erratum workaround.
308 (clear_erratum_843419_entry): Update erratum conditional.
309
7622049e
SKS
3102019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
311
312 PR ld/24571
313 * bfd/elf32-avr.c (elf32_avr_relax_section): Adjust range check
314 when computing distance_short_enough.
315
338ba755
SKS
3162019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
317
318 PR ld/24564
319 * bfd/elf32-avr.c (avr_relative_distance_considering_wrap_around):
320 Wrap around even if distance equals avr_pc_wrap_around.
321
999b073b
NC
3222019-05-20 Nick Clifton <nickc@redhat.com>
323
324 * po/fr.po: Updated French translation.
325
a7ad558c
AV
3262019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
327
328 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add case for Tag_MVE_arch.
329
a2699ef2
AM
3302019-05-16 Alan Modra <amodra@gmail.com>
331
332 * elf32-arm.c (elf32_arm_write_section): Revert last change.
333
3a1bb98c
AM
3342019-05-15 Alan Modra <amodra@gmail.com>
335
336 * elf32-arm.c (elf32_arm_write_section): Don't leave
337 error case of STM32L4XX_ERRATUM_BRANCH_TO_VENEER with
338 unitialised section contents.
339
37d0d091
JH
3402019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
341
342 PR 19921
343 * verilog.c: (VerilogDataWidth): New variable.
344 (verilog_write_record): Emit bytes in VerilogDataWidth bundles.
345
79299211
NC
3462019-05-08 Nick Clifton <nickc@redhat.com>
347
348 PR 24523
349 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Return TRUE
350 rather than FALSE if encountering a non-ELF file.
351
e1cbf07a
AM
3522019-05-06 Alan Modra <amodra@gmail.com>
353
354 * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error.
355
334d91b9
AM
3562019-05-06 Alan Modra <amodra@gmail.com>
357
358 * reloc.c (BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA),
359 (BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA):
360 Sort before BFD_RELOC_PPC64_DTPREL16_HIGHESTA entry.
361 * libbfd.h: Regenerate.
362 * bfd-in2.h: Regenerate.
363
a288c270
AM
3642019-05-04 Alan Modra <amodra@gmail.com>
365
366 PR 24511
367 * syms.c (coff_section_type): Only allow '.', '$' and numeric
368 following the standard section names.
369 (bfd_decode_symclass): Prioritize section flag tests in
370 decode_section_type before name tests in coff_section_type.
371 * plugin.c (bfd_plugin_canonicalize_symtab): Init fake_section
372 and fake_common_section using BFD_FAKE_SECTION. Use "fake" as
373 their names and choose standard .text section flags for
374 fake_section.
375
2cdc1a97
NC
3762019-05-02 Nick Clifton <nickc@redhat.com>
377
378 PR 24493
379 * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
380 .gnu.debugaltlink sections as debugging sections.
381
066f4018
AM
3822019-04-30 Alan Modra <amodra@gmail.com>
383
384 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel.
385 (struct _ppc64_elf_section_data): Likewise.
386 (ppc64_elf_check_relocs): Set above fields.
387 (ppc64_elf_edit_toc): Add a pass over GOT relocs.
388 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
389 when possible.
390
c54f1524
L
3912019-04-26 H.J. Lu <hongjiu.lu@intel.com>
392
393 PR ld/24486
394 * elflink.c (elf_link_output_extsym): Don't complain undefined
395 weak dynamic reference.
396
68bb0359
SD
3972019-04-25 Sudakshina Das <sudi.das@arm.com>
398
399 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): Remove.
400 (PLT_BTI_TLSDESC_ENTRY_SIZE): Remove.
401 (PLT_PAC_ENTRY_SIZE, PLT_BTI_PAC_ENTRY_SIZE): Remove.
402 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): Update.
403 (elfNN_aarch64_small_plt0_pac_entry): Remove.
404 (elfNN_aarch64_small_plt0_bti_pac_entry): Remove.
405 (elfNN_aarch64_small_plt0_bti_entry): Update.
406 (elfNN_aarch64_small_plt_bti_entry): Update.
407 (elfNN_aarch64_small_plt_pac_entry): Update.
408 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): Update.
409 (setup_plt_values): Setup new entries.
410 (elfNN_aarch64_finish_dynamic_sections): Remove size change.
411 (elfNN_aarch64_plt_sym_val): Likewise.
412
79b8e8ab
JW
4132019-04-22 Jim Wilson <jimw@sifive.com>
414
415 * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
416
fce97736
AM
4172019-04-19 Alan Modra <amodra@gmail.com>
418
419 * elf32-s12z.c (elf_backend_can_gc_sections): Don't define
420
9a7f0679
L
4212019-04-17 H.J. Lu <hongjiu.lu@intel.com>
422
423 * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not
424 building shared object.
425 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Likewise.
426
4e84a8f8
L
4272019-04-17 H.J. Lu <hongjiu.lu@intel.com>
428
429 PR ld/24458
430 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86
431 linker_def.
432
32c36c3c
AV
4332019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
434
435 * reloc.c (BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM): New internal
436 relocation.
437 * bfd-in2.h: Regenerate.
438 * libbfd.h: Likewise.
439
60f993ce
AV
4402019-04-15 Sudakshina Das <sudi.das@arm.com>
441
442 * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New.
443 * bfd-in2.h: Regenerated.
444 * libbfd.h: Regenerated.
445
f6b2b12d
AV
4462019-04-15 Sudakshina Das <sudi.das@arm.com>
447
448 * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation.
449 * bfd-in2.h: Regenerated.
450 * libbfd.h: Likewise.
451
1889da70
AV
4522019-04-15 Sudakshina Das <sudi.das@arm.com>
453
454 * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New.
455 * bfd-in2.h: Regenerated.
456 * libbfd.h: Regenerated.
457 * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13.
458 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13
459 and R_ARM_THM_BF12 together.
460 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13.
461
1caf72a5
AV
4622019-04-15 Sudakshina Das <sudi.das@arm.com>
463
464 * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New
465 * libbfd.h: Regenerated.
466 * bfd-in2.h: Regenerated.
467 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18.
468 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19
469 and R_ARM_THM_BF18 together.
470 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19.
471
e5d6e09e
AV
4722019-04-15 Sudakshina Das <sudi.das@arm.com>
473
474 * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum.
475 * bfd-in2.h: Regenerated.
476 * libbfd.h: Regenerated.
477 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16.
478 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17
479 and R_ARM_THM_BF16 together.
480 (get_value_helper): New reloc helper.
481 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16.
482
e12437dc
AV
4832019-04-15 Sudakshina Das <sudi.das@arm.com>
484
485 * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
486 * bfd-in2.h: Regenerate.
487 * libbfd.h: Regenerate.
488
031254f2
AV
4892019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
490
491 * archures.c (bfd_mach_arm_8_1M_MAIN): Define.
492 * bfd-in2.h: Regenerate.
493 * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline.
494 * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline
495 and update assert.
496 (using_thumb2): Likewise.
497 (using_thumb2_bl): Update assert.
498 (arch_has_arm_nop): Likewise.
499 (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline.
500 (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging.
501
233a0083
L
5022019-04-11 H.J. Lu <hongjiu.lu@intel.com>
503
504 * elf-linker-x86.h (elf_x86_cet_report): New.
505 (elf_linker_x86_params): Add cet_report.
506 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
507 missing IBT and SHSTK properties if needed.
508
a0ea3a14
L
5092019-04-11 H.J. Lu <hongjiu.lu@intel.com>
510
ca4e6331 511 PR ld/24436
a0ea3a14
L
512 * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of
513 "h != NULL". Don't check "h != NULL" before calling.
514 bfd_elf_gc_record_vtentry.
515 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
516 * elf32-bfin.c (bfin_check_relocs): Likewise.
517 * elf32-cris.c (cris_elf_check_relocs): Likewise.
518 * elf32-csky.c (csky_elf_check_relocs): Likewise.
519 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
520 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
521 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
522 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
523 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
524 * elf32-i386.c (elf_i386_check_relocs): Likewise.
525 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
526 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
527 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
528 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
529 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
530 * elf32-metag.c (elf_metag_check_relocs): Likewise.
531 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
532 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
533 * elf32-s390.c (elf_s390_check_relocs): Likewise.
534 * elf32-sh.c (sh_elf_check_relocs): Likewise.
535 * elf32-v850.c (v850_elf_check_relocs): Likewise.
536 * elf32-vax.c (elf_vax_check_relocs): Likewise.
537 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
538 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
539 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
540 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
541 * elf64-s390.c (elf_s390_check_relocs): Likewise.
542 * elf64-x86-64.c (elf_s390_check_relocs): Likewise.
543 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
544 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
545 * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt
546 VTENTRY entry.
547
9bff840e
AM
5482019-04-11 Alan Modra <amodra@gmail.com>
549
550 PR 24435
551 * elflink.c (elf_link_add_object_symbols): Don't read partial
552 dynamic entries from fuzzed objects.
553
ce12121b
TC
5542019-04-11 Tamar Christina <tamar.christina@arm.com>
555
556 PR ld/24302
557 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit
558 DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW.
559 (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW.
560
b05971a6
MF
5612019-04-10 Michael Forney <mforney@mforney.org>
562
563 PR 24427
564 * doc/chew.c (free_words): Correctly free "push_text" strings.
565
3ae61bb6
L
5662019-04-08 H.J. Lu <hongjiu.lu@intel.com>
567
568 * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets.
569
5f2a6b85
AM
5702019-04-08 Alan Modra <amodra@gmail.com>
571
572 * configure.ac (elfxx_x86): Define and use.
573 * configure: Regenerate.
574
5b9c07b2
L
5752019-04-06 H.J. Lu <hongjiu.lu@intel.com>
576
577 * elf-linker-x86.h: New file.
578 * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params
579 to get x86-specific linker options.
580 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
581 (elf_x86_64_check_relocs): Likewise.
582 (elf_x86_64_relocate_section): Likewise.
583 (elf_x86_64_link_setup_gnu_properties): Likewise.
584 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise.
585 (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
586 (_bfd_elf_linker_x86_set_options): New function.
587 * elfxx-x86.h: Include "elf-linker-x86.h".
588 (elf_x86_link_hash_table): Add params.
589
4b24dd1a
AM
5902019-04-03 Alan Modra <amodra@gmail.com>
591
592 * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c,
593 * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c,
594 * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c,
595 * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c,
596 * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c,
597 * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes.
598
87f98bac
JW
5992019-04-02 Jim Wilson <jimw@sifive.com>
600
601 PR 24389
602 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
603 ELF header flags to after check for ELF object file. Loop through
604 sections looking for code sections, if none, then skip ABI checks.
605
ae2b14c7
JW
6062019-03-30 Andrew Waterman <andrew@sifive.com>
607
608 * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for
609 rd == X_RA case.
610
2487ef07
MF
6112019-03-29 Max Filippov <jcmvbkbc@gmail.com>
612
613 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
614 info->export_dynamic to the conditional.
615
242a1159
AM
6162019-03-28 Alan Modra <amodra@gmail.com>
617
618 PR 24392
619 * configure.ac: Invoke AC_CHECK_SIZEOF(int).
620 * configure: Regenerate.
621 * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
622 workaround with SIZEOF_LONG vs. SIZEOF_INT check.
623 * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
624 * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
625 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
626
a9f5a551
JW
6272019-03-21 Jim Wilson <jimw@sifive.com>
628
629 PR 24365
630 * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check,
631 verify sym non-NULL before using. Add identical check using h.
632
4e539114
SD
6332019-03-21 Sudakshina Das <sudi.das@arm.com>
634
635 * elf-bfd.h (struct elf_backend_data): Add argument to
636 merge_gnu_properties.
637 * elf-properties.c (elf_merge_gnu_properties): Add argument to
638 itself and while calling bed->merge_gnu_properties.
639 (elf_merge_gnu_property_list): Update the calls for
640 elf_merge_gnu_properties.
641 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
642 of --force-bti warning and add argument.
643 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
644 warning.
645 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
646 * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
647 declaration.
648
acde6c6b
SD
6492019-03-20 Sudakshina Das <sudi.das@arm.com>
650
651 * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define.
652 * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare.
653 (elf_backend_fixup_gnu_properties): Define for AArch64.
654
8cd1fe1b
AM
6552019-03-18 Alan Modra <amodra@gmail.com>
656
657 PR 24355
658 * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
659 for local iplt syms with ent->plt.offset == -1. Remove ineffective
660 attempt at writing glink stubs only once.
661
6835821b
AM
6622019-03-16 Alan Modra <amodra@gmail.com>
663
664 PR 24337
665 * elf.c (_bfd_elf_rela_local_sym): Revert last change.
666 (_bfd_elf_rel_local_sym): Likewise.
667 * elflink.c (elf_link_input_bfd): Use bfd_und_section for
668 section of symbols with unrecognized shndx.
669
2219ae0b
L
6702019-03-15 H.J. Lu <hongjiu.lu@intel.com>
671
672 PR ld/24267
673 * coffgen.c (_bfd_coff_section_already_linked): Skip discarded
674 section.
675 * cofflink.c (coff_link_add_symbols): Check for symbols defined
676 in discarded section.
677
fe3fef62
AM
6782019-03-15 Alan Modra <amodra@gmail.com>
679
680 PR 24339
681 * elflink.c (elf_link_add_object_symbols): Bail out on a local
682 symbol after globals if elf_bad_symtab is not set.
683
1ff31e13
AM
6842019-03-15 Alan Modra <amodra@gmail.com>
685
686 PR 24337
687 * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec.
688 (_bfd_elf_rel_local_sym): Likewise.
689
f55b1e32
AM
6902019-03-15 Alan Modra <amodra@gmail.com>
691
692 PR 24336
693 * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed
694 object files with sh_size not a multiple of sh_entsize.
695
da0d12d2
L
6962019-03-15 H.J. Lu <hongjiu.lu@intel.com>
697
418d4036
L
698 PR ld/24338
699 * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt
700 input with bad relocation.
701
70222019-03-15 H.J. Lu <hongjiu.lu@intel.com>
703
da0d12d2
L
704 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
705
d7f848c3
NC
7062019-03-14 Nick Clifton <nickc@redhat.com>
707
708 PR 24334
709 * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field.
710 (save_section_vma): Initialise field to the number of entries in
711 the sec_vma table.
712 (section_vma_same): Check that the number of entries in the
713 sec_vma table matches the number of sections in the bfd.
714
6cc71b82
NC
7152019-03-14 Nick Clifton <nickc@redhat.com>
716
717 PR 24333
718 * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL
719 section owner pointer when adding the default symbol.
720
be22c732
NC
7212019-03-14 Nick Clifton <nickc@redhat.com>
722
723 PR 24332
724 * elflink.c (elf_link_add_object_symbols): Add new local variable
725 extversym_end. Initialise it to point to the end of the version
726 symbol table, if present. Check it when initialising and updating
727 the ever pointer.
728
1dbade74
SD
7292019-03-13 Sudakshina Das <sudi.das@arm.com>
730
731 * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New.
732 (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New.
733 (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs.
734 (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC
735 and PLT_PAC_PLT.
736 (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC.
737 (get_plt_type): Add case for DT_AARCH64_PAC_PLT.
738 (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC.
739
37c18eed
SD
7402019-03-13 Sudakshina Das <sudi.das@arm.com>
741 Szabolcs Nagy <szabolcs.nagy@arm.com>
742
743 * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New.
744 (aarch64_bti_pac_info): New.
745 (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument.
746 (bfd_elf32_aarch64_set_options): Likewise.
747 * bfd-in2.h: Regenerate
748 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New.
749 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New.
750 (elfNN_aarch64_small_plt0_bti_entry): New.
751 (elfNN_aarch64_small_plt_bti_entry): New.
752 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New.
753 (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields.
754 (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and
755 tlsdesc_plt_entry_size fields.
756 (elfNN_aarch64_link_hash_table_create): Initialise the new fields.
757 (setup_plt_values): New helper function.
758 (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and
759 bti enable type.
760 (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of
761 fixed macros.
762 (elfNN_aarch64_size_dynamic_sections): Likewise and add checks.
763 (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers
764 to plt stubs instead of fixed ones and update filling them according
765 to the need for bti.
766 (elfNN_aarch64_init_small_plt0_entry): Likewise.
767 (elfNN_aarch64_finish_dynamic_sections): Likewise.
768 (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New.
769 (elfNN_aarch64_plt_sym_val): Update size accordingly.
770 (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE
771 is set.
772 (bfd_elfNN_get_synthetic_symtab): Define.
773 (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti
774 and mising BTI NOTE SECTION.
775
776
cd702818
SD
7772019-03-13 Sudakshina Das <sudi.das@arm.com>
778
779 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude
780 linker created inputs from merge.
781 * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for
782 GNU_PROPERTY_AARCH64_FEATURE_1_AND properties.
783 (elfNN_aarch64_link_setup_gnu_properties): New.
784 (elfNN_aarch64_merge_gnu_properties): New.
785 (elf_backend_setup_gnu_properties): Define for AArch64.
786 (elf_backend_merge_gnu_properties): Likewise.
787 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define.
788 (_bfd_aarch64_elf_parse_gnu_properties): Define.
789 (_bfd_aarch64_elf_merge_gnu_properties): Define.
790 * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare.
791 (_bfd_aarch64_elf_parse_gnu_properties): Declare.
792 (_bfd_aarch64_elf_merge_gnu_properties): Declare.
793 (elf_backend_parse_gnu_properties): Define for AArch64.
794
44b27f95
L
7952019-03-13 H.J. Lu <hongjiu.lu@intel.com>
796
797 PR ld/24322
798 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly
799 merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK].
800
7a6e0d89
AM
8012019-03-12 Alan Modra <amodra@gmail.com>
802
803 * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add
804 nmemb parameter. Use bfd_alloc2.
805 (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls.
806 Delete assertion.
807 (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2.
808 (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls.
809 * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation
810 doesn't overflow.
811 * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix.
812 (assign_section_numbers): Style fix.
813 (swap_out_syms): Use bfd_malloc2.
814 (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't
815 overflow.
816 (_bfd_elf_make_empty_symbol): Style fix.
817 (elfobj_grok_stapsdt_note_1): Formatting.
818 * elfcode.h (elf_object_p): Use bfd_alloc2.
819 (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise.
820 (elf_slurp_symbol_table): Use bfd_zalloc2.
821 (elf_slurp_reloc_table): Use bfd_alloc2.
822 (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2.
823 * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure
824 size calculation doesn't overflow.
825 (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise.
826 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
827 * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version.
828
ebd2263b
AM
8292019-03-08 Alan Modra <amodra@gmail.com>
830
831 PR 24311
832 * merge.c (merge_strings): Return secinfo. Don't pad section
833 to alignment here.
834 (_bfd_merge_sections): Pad section to alignment here, if input
835 sections contributing to merged output all pad to alignment.
836 Formatting.
837
219d6836
NC
8382019-03-06 Nick Clifton <nickc@redhat.com>
839
840 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
841 table pointer.
842 * coffgen.c (coff_find_nearest_line_with_names): Do not call
843 _bfd_dwarf2_find_symbol_bias if there is no symbol table available.
844
24801b15
AK
8452019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
846
847 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
848 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
849
850 PR 20113
851 * elf32-s390.c (allocate_dynrelocs): Update comment.
852
4ffd2909
TC
8532019-02-28 Tamar Christina <tamar.christina@arm.com>
854
855 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
856
eed5def8
NC
8572019-02-28 Nick Clifton <nickc@redhat.com>
858
859 PR 24273
860 * elf.c (bfd_elf_string_from_elf_section): Check for a string
861 section that is not NUL terminated.
862
5cfe428c
L
8632019-02-27 H.J. Lu <hongjiu.lu@intel.com>
864
865 PR ld/24276
866 * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
867 by linker when checking copy reloc on protected symbol.
868
f616c36b
AM
8692019-02-24 Alan Modra <amodra@gmail.com>
870
871 PR 24144
872 * pdp11.c (set_section_contents): Revert 2015-02-24 change.
873
eed62915
MF
8742019-02-20 Eric Tsai <erictsai@cadence.com>
875
876 * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
877 sections between the call site and call destination and adjust
878 call distance by the largest alignment.
879
e6c3b5bf
AH
8802019-02-20 Alan Hayward <alan.hayward@arm.com>
881
882 * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
883 * elf.c (elfcore_grok_aarch_pauth): New function.
884 (elfcore_grok_note): Check for NT_ARM_PAC_MASK.
885 (elfcore_write_aarch_pauth): New function.
886 (elfcore_write_register_note): Check for AArch64 pauth section.
887
34d75fb5
AM
8882019-02-20 Alan Modra <amodra@gmail.com>
889
890 PR 24225
891 * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
892 return value.
893
edd01d07
MR
8942019-02-20 Michael Roitzsch <reactorcontrol@icloud.com>
895
896 * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
897 Darwin hosts, not just or1k.
898 * configure: Regenerate.
899
8abac803
AM
9002019-02-20 Alan Modra <amodra@gmail.com>
901
902 PR 24236
903 * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
904 sentinel NUL to string buffer nearer to loop where it is used.
905 Don't go past sentinel when scanning strings, and don't write
906 NUL again.
907 * archive.c (do_slurp_coff_armap): Simplify string handling to
908 archive64.c style.
909
179f2db0
AM
9102019-02-19 Alan Modra <amodra@gmail.com>
911
912 PR 24235
913 * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
914 attempting to prevent read past end of section.
915
a31b8bd9
AM
9162019-02-18 Alan Modra <amodra@gmail.com>
917
918 PR 24225
919 * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
920 PRIx64 to generate warning messages. Print local sym names too.
921
a0e90a73
CZ
9222019-02-09 Vineet Gupta <vgupta@synopsys.com>
923
924 * elf32-arc (INIT_SYM_STRING): Delete.
925 (FINI_SYM_STRING): Likewise.
926 (init_str): Likewise.
927 (fini_str): Likewise.
928
482f3505
AM
9292019-02-08 Alan Modra <amodra@gmail.com>
930
931 * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
932 for bss-plt" warning to make it an error.
933
b2abe1bd
EB
9342019-02-07 Eric Botcazou <ebotcazou@adacore.com>
935
936 PR ld/18841
937 * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
938 reloc_class_ifunc for ifunc symbols.
939 * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
940
68a09132
EB
9412019-02-07 Eric Botcazou <ebotcazou@adacore.com>
942
943 * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
944 <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
945
2012bf01
NC
9462019-02-07 Nick Clifton <nickc@redhat.com>
947
948 * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
949 into the definitely obsolete list.
950
83924b38
L
9512019-02-05 H.J. Lu <hongjiu.lu@intel.com>
952
953 PR ld/24151
954 * elf64-x86-64.c (elf_x86_64_need_pic): Check
955 SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
956 (elf_x86_64_relocate_section): Move PIC check for PC-relative
957 relocations to ...
958 (elf_x86_64_check_relocs): Here.
959 (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
960 to check if a symbol is defined in a non-shared object.
961 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
962
453f8e1e
SDJ
9632019-01-21 Sergio Durigan Junior <sergiodj@redhat.com>
964
965 * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
966 of 'labs' (and fix GCC warning).
967
9ed1348c
NC
9682019-01-25 Nick Clifton <nickc@redhat.com>
969
970 * po/ru.po: Updated Russian translation.
971
d9938630
NC
9722019-01-23 Nick Clifton <nickc@redhat.com>
973
974 * po/fr.po: Updated French translation.
975
375cd423
NC
9762019-01-21 Nick Clifton <nickc@redhat.com>
977
978 * po/pt.po: Updated Portuguese translation.
979 * po/uk.po: Updated Ukranian translation.
980
acef8081
YC
9812019-01-21 Yuri Chornoivan <yurchor@ukr.net>
982
983 PR 24108
984 * elf32-nds32.c (nds32_relocate_section): Add space between words
985 in error message.
986 * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
987 error message.
988 (riscv_i_or_e_p): Likewise.
989 (riscv_merge_arch_attr_info): Likewise.
990
f48dfe41
NC
9912019-01-19 Nick Clifton <nickc@redhat.com>
992
993 * version.m4: Reset to 2.32.51
994 * configure: Regenerate.
995 * po/bfd.pot: Regenerate.
996
f974f26c
NC
9972018-06-24 Nick Clifton <nickc@redhat.com>
998
999 2.32 branch created.
1000
a4bf3d07
JW
10012019-01-16 Kito Cheng <kito@andestech.com>
1002
1003 * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
1004 for OBJ_ATTR_PROC.
1005
2dc8dd17
JW
10062019-01-16 Kito Cheng <kito@andestech.com>
1007 Nelson Chu <nelson@andestech.com>
1008
7d7a7d7c
JW
1009 * elfnn-riscv.c (in_subsets): New.
1010 (out_subsets): Likewise.
1011 (merged_subsets): Likewise.
1012 (riscv_std_ext_p): Likewise.
1013 (riscv_non_std_ext_p): Likewise.
1014 (riscv_std_sv_ext_p): Likewise.
1015 (riscv_non_std_sv_ext_p): Likewise.
1016 (riscv_version_mismatch): Likewise.
1017 (riscv_i_or_e_p): Likewise.
1018 (riscv_merge_std_ext): Likewise.
1019 (riscv_merge_non_std_and_sv_ext): Likewise.
1020 (riscv_merge_arch_attr_info): Likewise.
1021 (riscv_merge_attributes): Likewise.
1022 (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
1023
2dc8dd17
JW
1024 * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
1025 (elf_backend_obj_attrs_vendor): Define.
1026 (elf_backend_obj_attrs_section_type): Likewise.
1027 (elf_backend_obj_attrs_section): Likewise.
1028 (elf_backend_obj_attrs_arg_type): Define as
1029 riscv_elf_obj_attrs_arg_type.
1030 * elfxx-riscv.c (riscv_estimate_digit): New.
1031 (riscv_estimate_arch_strlen1): Likewise.
1032 (riscv_estimate_arch_strlen): Likewise.
1033 (riscv_arch_str1): Likewise.
1034 (riscv_arch_str): Likewise.
1035 * elfxx-riscv.h (riscv_arch_str): Declare.
1036
d5dcaf1b
JD
10372019-01-14 John Darrington <john@darrington.wattle.id.au>
1038
1039 * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
1040 * libbfd.h: regen.
1041 * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
1042 source field. (md_apply_fix): Apply final fix
1043 to BFD_RELOC_S12Z_OPR.
1044 * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
1045
5a12586d
MT
10462019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1047
f466c305 1048 PR 20113
5a12586d
MT
1049 * elf32-s390.c (allocate_dynrelocs): Update comment.
1050
3107326d
AP
10512019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1052
1053 * warning.m4: Adjust egrep pattern for non-GNU compilers.
1054 * configure: Regenerate.
1055
a9859e01
AM
10562019-01-08 Alan Modra <amodra@gmail.com>
1057
1058 PR 23699
1059 PR 24065
1060 * ihex.c (ihex_write_object_contents): Properly check 32-bit
1061 address range.
1062
c8c89dac
YS
10632019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1064
1065 * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
1066 * bfd/bfd-in2.h: Regenerate.
1067 * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
1068 * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
1069
d9858c37
LX
10702019-01-04 Lifang Xia <lifang_xia@c-sky.com>
1071
1072 * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
1073 default target, little endian target is more suitable.
1074
677bd4c6
AM
10752019-01-04 Alan Modra <amodra@gmail.com>
1076
1077 PR 24061
1078 PR 21786
1079 * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
1080 adjust all callers.
1081 (EQ_VALUE_IN_FIELD): Likewise.
1082 * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
1083
82704155
AM
10842019-01-01 Alan Modra <amodra@gmail.com>
1085
1086 Update year range in copyright notice of all files.
1087
d5c04e1b 1088For older changes see ChangeLog-2018
3499769a 1089\f
d5c04e1b 1090Copyright (C) 2019 Free Software Foundation, Inc.
3499769a
AM
1091
1092Copying and distribution of this file, with or without modification,
1093are permitted in any medium without royalty provided the copyright
1094notice and this notice are preserved.
1095
1096Local Variables:
1097mode: change-log
1098left-margin: 8
1099fill-column: 74
1100version-control: never
1101End:
This page took 0.266801 seconds and 4 git commands to generate.