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