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