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