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