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