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