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