Constify bfd_octets_per_byte and related functions
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2019-09-18 Alan Modra <amodra@gmail.com>
2
3 * archures.c (bfd_get_arch): Make param const.
4 (bfd_get_mach, bfd_arch_bits_per_byte): Likewise.
5 (bfd_arch_bits_per_address, bfd_octets_per_byte): Likewise.
6 * bfd-in2.h: Regenerate.
7
8 2019-09-18 Alan Modra <amodra@gmail.com>
9
10 * bfd-in.h (carsym.name): Make const.
11 * reloc.c (struct reloc_howto_struct.name): Likewise.
12 * targets.c (bfd_target.name): Likewise.!
13 * bfd.c (bfd_get_sign_extend_vma): Make variable const.
14 * som.c (som_bfd_fill_in_ar_symbols): Use an intermediary variable
15 when setting carsym.name.
16 * bfd-in2.h: Regenerate.
17
18 2019-09-18 Alan Modra <amodra@gmail.com>
19
20 * mach-o.c (bfd_mach_o_fat_member_init): Likewise. Replace
21 xstrdup and xmalloc with bfd_strdup and bfd_malloc. Return an
22 error status. Adjust calls.
23 * vms-lib.c (_bfd_vms_lib_get_module): Test mhd->id earlier.
24 Close bfd on failure. Replace xstrdup/bfd_alloc use with
25 bfd_malloc. Use bfd_set_filename.
26
27 2019-09-18 Alan Modra <amodra@gmail.com>
28
29 * elf64-ppc.c (must_be_dyn_reloc): Return 0 for TOC16 relocs.
30 (ppc64_elf_check_relocs): Support dynamic/copy relocs for TOC16.
31 (ppc64_elf_adjust_dynamic_symbol): Don't keep dynamic reloc when
32 needs_copy even if all relocs are in rw sections.
33 (dec_dynrel_count): Handle TOC16 relocs.
34 (ppc64_elf_relocate_section): Support dynamic relocs for TOC16.
35 (ppc64_elf_finish_dynamic_symbol): Adjust to handle needs_copy
36 semantic change.
37
38 2019-09-16 Phil Blundell <pb@pbcl.net>
39
40 * version.m4: Set version to 2.33.50.
41 * Makefile.in, configure, doc/Makefile.in: Regenerated.
42
43 2019-09-11 Tom Tromey <tom@tromey.com>
44
45 * opncls.c (bfd_set_filename): New function.
46 * bfd-in2.h: Regenerate.
47
48 2019-09-11 Alan Modra <amodra@gmail.com>
49
50 * targets.c (struct bfd_target): Add _bfd_group_name.
51 (BFD_JUMP_TABLE): Likewise.
52 * coffgen.c (bfd_coff_group_name): New function.
53 * elf.c (bfd_elf_group_name): New function.
54 * linker.c (_bfd_nolink_bfd_group_name): New function.
55 * section.c (bfd_generic_group_name): New function.
56 * elf-bfd.h (bfd_elf_group_name): Declare.
57 * libbfd-in.h (_bfd_nolink_bfd_group_name): Declare.
58 * libcoff-in.h (bfd_coff_group_name): Declare.
59 * aout-target.h (MY_bfd_group_name): Define.
60 * aout-tic30.c (MY_bfd_group_name): Define.
61 * bfd.c (bfd_group_name): Define.
62 * binary.c (binary_bfd_group_name): Define.
63 * coff-alpha.c (_bfd_ecoff_bfd_group_name): Define.
64 * coff-mips.c (_bfd_ecoff_bfd_group_name): Define.
65 * coff-rs6000.c (_bfd_xcoff_bfd_group_name): Define.
66 * coffcode.h (coff_bfd_group_name): Define.
67 * elfxx-target.h (bfd_elfNN_bfd_group_name): Define.
68 * i386msdos.c (msdos_bfd_group_name): Define.
69 * ihex.c (ihex_bfd_group_name): Define.
70 * mach-o-target.c (bfd_mach_o_bfd_group_name): Define.
71 * mmo.c (mmo_bfd_group_name): Define.
72 * pef.c (bfd_pef_bfd_group_name): Define.
73 * plugin.c (bfd_plugin_bfd_group_name): Define.
74 * ppcboot.c (ppcboot_bfd_group_name): Define.
75 * som.c (som_bfd_group_name): Define.
76 * srec.c (srec_bfd_group_name): Define.
77 * tekhex.c (tekhex_bfd_group_name): Define.
78 * verilog.c (verilog_bfd_group_name): Define.
79 * vms-alpha.c (vms_bfd_group_name, alpha_vms_bfd_group_name): Define.
80 * xsym.c (bfd_sym_bfd_group_name): Define.
81 * coff64-rs6000.c (rs6000_xcoff64_vec): Init new field.
82 (rs6000_xcoff64_aix_vec): Likewise.
83 * bfd-in2.h: Regenerate.
84 * libbfd.h: Regenerate.
85 * libcoff.h: Regenerate.
86
87 2019-09-10 Nick Clifton <nickc@redhat.com>
88
89 PR 24907
90 * archures.c (bfd_arch_info_type): Add max_reloc_offset_into_insn
91 field.
92 (bfd_default_arch_struct): Initialise the new field.
93 * bfd-in2.h: Regenerate.
94 * cpu-aarch64.c: Initialise the new field.
95 * cpu-alpha.c: Likewise.
96 * cpu-arc.c: Likewise.
97 * cpu-arm.c: Likewise.
98 * cpu-avr.c: Likewise.
99 * cpu-bfin.c: Likewise.
100 * cpu-bpf.c: Likewise.
101 * cpu-cr16.c: Likewise.
102 * cpu-cr16c.c: Likewise.
103 * cpu-cris.c: Likewise.
104 * cpu-crx.c: Likewise.
105 * cpu-csky.c: Likewise.
106 * cpu-d10v.c: Likewise.
107 * cpu-d30v.c: Likewise.
108 * cpu-dlx.c: Likewise.
109 * cpu-epiphany.c: Likewise.
110 * cpu-fr30.c: Likewise.
111 * cpu-frv.c: Likewise.
112 * cpu-ft32.c: Likewise.
113 * cpu-h8300.c: Likewise.
114 * cpu-hppa.c: Likewise.
115 * cpu-i386.c: Likewise.
116 * cpu-ia64.c: Likewise.
117 * cpu-iamcu.c: Likewise.
118 * cpu-ip2k.c: Likewise.
119 * cpu-iq2000.c: Likewise.
120 * cpu-k1om.c: Likewise.
121 * cpu-l1om.c: Likewise.
122 * cpu-lm32.c: Likewise.
123 * cpu-m10200.c: Likewise.
124 * cpu-m10300.c: Likewise.
125 * cpu-m32c.c: Likewise.
126 * cpu-m32r.c: Likewise.
127 * cpu-m68hc11.c: Likewise.
128 * cpu-m68hc12.c: Likewise.
129 * cpu-m68k.c: Likewise.
130 * cpu-m9s12x.c: Likewise.
131 * cpu-m9s12xg.c: Likewise.
132 * cpu-mcore.c: Likewise.
133 * cpu-mep.c: Likewise.
134 * cpu-metag.c: Likewise.
135 * cpu-microblaze.c: Likewise.
136 * cpu-mips.c: Likewise.
137 * cpu-mmix.c: Likewise.
138 * cpu-moxie.c: Likewise.
139 * cpu-msp430.c: Likewise.
140 * cpu-mt.c: Likewise.
141 * cpu-nds32.c: Likewise.
142 * cpu-nfp.c: Likewise.
143 * cpu-nios2.c: Likewise.
144 * cpu-ns32k.c: Likewise.
145 * cpu-or1k.c: Likewise.
146 * cpu-pdp11.c: Likewise.
147 * cpu-pj.c: Likewise.
148 * cpu-plugin.c: Likewise.
149 * cpu-powerpc.c: Likewise.
150 * cpu-pru.c: Likewise.
151 * cpu-riscv.c: Likewise.
152 * cpu-rl78.c: Likewise.
153 * cpu-rs6000.c: Likewise.
154 * cpu-rx.c: Likewise.
155 * cpu-s12z.c: Likewise.
156 * cpu-s390.c: Likewise.
157 * cpu-score.c: Likewise.
158 * cpu-sh.c: Likewise.
159 * cpu-sparc.c: Likewise.
160 * cpu-spu.c: Likewise.
161 * cpu-tic30.c: Likewise.
162 * cpu-tic4x.c: Likewise.
163 * cpu-tic54x.c: Likewise.
164 * cpu-tic6x.c: Likewise.
165 * cpu-tic80.c: Likewise.
166 * cpu-tilegx.c: Likewise.
167 * cpu-tilepro.c: Likewise.
168 * cpu-v850.c: Likewise.
169 * cpu-v850_rh850.c: Likewise.
170 * cpu-vax.c: Likewise.
171 * cpu-visium.c: Likewise.
172 * cpu-wasm32.c: Likewise.
173 * cpu-xc16x.c: Likewise.
174 * cpu-xgate.c: Likewise.
175 * cpu-xstormy16.c: Likewise.
176 * cpu-xtensa.c: Likewise.
177 * cpu-z80.c: Likewise.
178 * cpu-z8k.c: Likewise.
179
180 2019-09-09 Phil Blundell <pb@pbcl.net>
181
182 binutils 2.33 branch created.
183
184 2019-09-06 Alan Modra <amodra@gmail.com>
185
186 * aout-target.h (object_p): Formatting.
187 * bfd-in.h (bfd_get_filename): Don't cast to char*.
188 * corefile.c (generic_core_file_matches_executable_p): Constify
189 variables and remove cast.
190 * bfd-in2.h: Regenerate.
191
192 2019-09-05 Alan Modra <amodra@gmail.com>
193
194 * elf64-ppc.c (ppc64_elf_check_relocs): Interpret an addend in
195 GOT_PCREL and PLT_PCREL relocs as affecting the value stored
196 in the GOT/PLT entry rather than affecting the offset to that
197 GOI/PLT entry.
198 (ppc64_elf_edit_toc, ppc64_elf_relocate_section): Likewise.
199
200 2019-09-05 Alan Modra <amodra@gmail.com>
201
202 * elf64-ppc.c (xlate_pcrel_opt): Handle prefix loads and stores
203 in second instruction.
204 (ppc64_elf_relocate_section): Likewise.
205
206 2019-09-05 Alan Modra <amodra@gmail.com>
207
208 PR 24955
209 * libbfd-in.h (bfd_strdup): New inline function.
210 * archive.c (_bfd_get_elt_at_filepos): Use bfd_strdup. Close
211 bfd on error.
212 * elfcode.h (_bfd_elf_bfd_from_remote_memory): Use bfd_strdup.
213 * opncls.c (bfd_fopen): Use bfd_strdup. Close fd and stream
214 on error.
215 (bfd_openstreamr): Use bfd_strdup.
216 (bfd_openr_iovec, bfd_openw, bfd_create): Likewise.
217 * plugin.c (try_load_plugin): Use bfd_malloc.
218 * libbfd.h: Regenerate.
219
220 2019-09-02 Alan Modra <amodra@gmail.com>
221
222 PR 11983
223 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Free debug_filename
224 on success. Tidy.
225 (read_alt_indirect_string): Likewise.
226 (read_alt_indirect_ref): Likewise.
227
228 2019-08-31 Jim Wilson <jimw@sifive.com>
229
230 PR 23825
231 * elfnn-riscv.c (riscv_elf_create_dynamic_sections): Add SEC_LOAD,
232 SEC_DATA, and SEC_HAS_CONTENTS to .tdata.dyn section.
233
234 2019-08-30 Jim Wilson <jimw@sifive.com>
235
236 * elfnn-riscv.c (riscv_elf_relocate_section): For unresolvable reloc
237 error, call bfd_set_error, set ret to FALSE, and goto out label.
238
239 2019-08-30 H.J. Lu <hongjiu.lu@intel.com>
240
241 PR ld/24951
242 * archive.c (_bfd_get_elt_at_filepos): Copy BFD_COMPRESS,
243 BFD_DECOMPRESS and BFD_COMPRESS_GABI flags for thin archive.
244
245 2019-08-29 Alan Modra <amodra@gmail.com>
246
247 PR 24697
248 * elf32-ppc.c (ppc_elf_check_relocs): Call bad_shared_reloc
249 when !bfd_link_executable for R_PPC_EMB_SDA2I16 and
250 R_PPC_EMB_SDA2REL. Don't call bad_shared_reloc for any other
251 reloc.
252
253 2019-08-29 Alan Modra <amodra@gmail.com>
254
255 * elf64-ppc.c (xlate_pcrel_opt): Add poff parameter. Allow offset
256 on second insn, return it in poff.
257 (ppc64_elf_relocate_section): Add offset to paddi addend for
258 PCREL_OPT.
259
260 2019-08-28 Jim Wilson <jimw@sifive.com>
261
262 * elfnn-riscv.c (_bfd_riscv_relax_lui): Add check to exclude abs
263 section when setting max_alignment. Update comment.
264 (_bfd_riscv_relax_pc): Likewise.
265
266 2019-08-29 Alan Modra <amodra@gmail.com>
267
268 PR 24891
269 * bfd.c (struct bfd): Add no_element_cache.
270 * archive.c (_bfd_get_elt_at_filepos): Don't add element to
271 archive cache when no_element_cache.
272 (bfd_generic_archive_p): Set no_element_cache when opening first
273 element to check format. Close first element too.
274 (do_slurp_bsd_armap): Don't zero ardata->cache here.
275 * bfd-in2.h: Regenerate.
276
277 2019-08-24 Alan Modra <amodra@gmail.com>
278
279 * elf64-ppc.c (ppc64_elf_edit_toc): Exclude undefined weak
280 symbols from GOT optimisation.
281
282 2019-08-23 Stafford Horne <shorne@gmail.com>
283
284 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Use correct value for
285 PLT GOT entries.
286
287 2019-08-23 Nick Clifton <nickc@redhat.com>
288
289 PR 24456
290 * elf.c (bfd_section_from_shdr): Issue an informative warning
291 message and continue processing other sections after encountering
292 a reloc section for a section which already has other relocs
293 associated with it.
294
295 2019-08-23 Alan Modra <amodra@gmail.com>
296
297 PR 24933
298 * elfxx-x86.c (_bfd_x86_elf_get_synthetic_symtab): Don't exit
299 on error without freeing plts[] contents.
300
301 2019-08-22 Dennis Zhang <dennis.zhang@arm.com>
302
303 * cpu-arm.c: New entries for Cortex-M35P, Cortex-A77, Cortex-A76AE.
304
305 2019-08-22 Nick Clifton <nickc@redhat.com>
306
307 PR 24922
308 * pei-x86_64.c (pex64_xdata_print_uwd_codes): Add checks before
309 reading data from extra records.
310
311 2019-08-22 Tamar Christina <tamar.christina@arm.com>
312
313 PR ld/24601
314 * elfnn-aarch64.c (aarch64_relocate): Handle weak TLS and undefined TLS.
315 Also Pass input_bfd to _bfd_aarch64_elf_resolve_relocation.
316 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use it.
317 * elfxx-aarch64.h (_bfd_aarch64_elf_resolve_relocation): Emit warning
318 for weak TLS.
319
320 2019-08-22 Alan Modra <amodra@gmail.com>
321
322 * elf32-arm.c (cmse_scan): Don't use ARM_GET_SYM_CMSE_SPCL,
323 instead recognize CMSE_PREFIX in symbol name.
324 (elf32_arm_gc_mark_extra_sections): Likewise.
325 (elf32_arm_filter_cmse_symbols): Don't test ARM_GET_SYM_CMSE_SPCL.
326 (elf32_arm_swap_symbol_in): Don't invoke ARM_SET_SYM_CMSE_SPCL.
327
328 2019-08-20 Dennis Zhang <dennis.zhang@arm.com>
329
330 * cpu-aarch64.c: New entries for Cortex-A34, Cortex-A65,
331 Cortex-A77, cortex-A65AE, and Cortex-A76AE.
332
333 2019-08-20 Tamar Christina <tamar.christina@arm.com>
334
335 * elf32-arm.c (elf32_thumb2_plt_entry, elf32_arm_plt_thumb_stub,
336 elf32_arm_stub_long_branch_v4t_thumb_thumb,
337 elf32_arm_stub_long_branch_v4t_thumb_arm,
338 elf32_arm_stub_short_branch_v4t_thumb_arm,
339 elf32_arm_stub_long_branch_v4t_thumb_arm_pic,
340 elf32_arm_stub_long_branch_v4t_thumb_thumb_pic,
341 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): Change nop to branch to
342 previous instruction.
343
344 2019-08-19 Tom Tromey <tromey@adacore.com>
345
346 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Create hash table
347 holding symbols.
348
349 2019-08-19 Alan Modra <amodra@gmail.com>
350
351 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename has_gotrel
352 to has_optrel.
353 (struct _ppc64_elf_section_data): Likewise.
354 (ppc64_elf_check_relocs): Set has_optrel for more relocs.
355 (ppc64_elf_edit_toc): Do ha/lo insn checks in GOT loop rather
356 than TOC loop. Check PLT16 insns too.
357
358 2019-08-16 H.J. Lu <hongjiu.lu@intel.com>
359
360 PR ld/24905
361 * elf64-x86-64.c (elf_x86_64_check_relocs): Move PIC check for
362 PC-relative relocations back to ...
363 (elf_x86_64_relocate_section): Here.
364
365 2019-08-16 Martin Liska <mliska@suse.cz>
366
367 PR ld/24912
368 * elflink.c: Report error only for not relocatable.
369 * linker.c (_bfd_generic_link_add_one_symbol): Do not handle
370 here lto_slim_object as it's handled in caller.
371
372 2019-08-16 Alan Modra <amodra@gmail.com>
373
374 * elf32-ppc.c (ppc_elf_relocate_section): Optimize unaligned relocs.
375
376 2019-08-15 Jim Wilson <jimw@sifive.com>
377
378 * elfnn-riscv.c (perform_relocation) <R_RISCV_RVC_LUI>: If
379 RISCV_CONST_HIGH_PART (value) is zero, then convert c.lui instruction
380 to c.li instruction, and use ENCODE_RVC_IMM to set value.
381
382 2019-08-15 Tom Tromey <tromey@adacore.com>
383
384 * dwarf2.c (scan_unit_for_symbols): Check for end of CU, not end
385 of section.
386
387 2019-08-14 Alan Modra <amodra@gmail.com>
388
389 PR 24623
390 * dwarf2.c (stash_comp_unit): New function, extracted from..
391 (_bfd_dwarf2_find_nearest_line): ..here.
392 (find_abstract_instance): Parse comp units and decode line info
393 as needed.
394
395 2019-08-14 Alan Modra <amodra@gmail.com>
396
397 * dwarf2.c (comp_unit_maybe_decode_line_info): Declare.
398 (comp_unit_find_nearest_line): Use it here..
399 (_bfd_dwarf2_find_symbol_bias): ..and here.
400
401 2019-08-14 Alan Modra <amodra@gmail.com>
402
403 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove addr_size parameter.
404 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
405 * coffgen.c (coff_find_nearest_line_with_names): Adjust
406 _bfd_dwarf2_find_nearest_line calls.
407 * elf.c (_bfd_elf_find_nearest_line, _bfd_elf_find_line): Likewise.
408 * elf32-arm.c (elf32_arm_find_nearest_line): Likewise.
409 * elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise.
410 * elfnn-aarch64.c (elfNN_aarch64_find_nearest_line): Likewise.
411 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise.
412 * mach-o.c (bfd_mach_o_find_nearest_line): Likewise.
413 * libbfd.h: Regenerate.
414
415 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
416
417 * elf-bfd.h (struct elf_backend_data): New members.
418 * elflink.c (_bfd_elf_link_create_dynamic_sections): Create
419 .gnu.hash section if necessary.
420 (struct collect_gnu_hash_codes): New member.
421 (elf_gnu_hash_process_symidx): New function name.
422 (elf_renumber_gnu_hash_syms): Ignore local and undefined
423 symbols. Record xlat location for every symbol which should have
424 a .MIPS.xhash entry.
425 (bfd_elf_size_dynamic_sections): Add DT_GNU_HASH dynamic tag to
426 dynamic section if necessary.
427 (GNU_HASH_SECTION_NAME): New define.
428 (bfd_elf_size_dynsym_hash_dynstr): Get .MIPS.xhash section.
429 Update the section size info.
430 * elfxx-mips.c (struct mips_elf_hash_sort_data): New members.
431 (struct mips_elf_link_hash_entry): New member.
432 (mips_elf_link_hash_newfunc): Initialize .MIPS.xhash translation
433 table location.
434 (mips_elf_sort_hash_table): Initialize the pointer to the
435 .MIPS.xhash section.
436 (mips_elf_sort_hash_table_f): Populate the .MIPS.xhash
437 translation table entry with the symbol dynindx.
438 (_bfd_mips_elf_section_from_shdr): Add SHT_MIPS_XHASH.
439 (_bfd_mips_elf_fake_sections): Initialize .MIPS.xhash section
440 info.
441 (_bfd_mips_elf_create_dynamic_sections): Create .MIPS.xhash
442 section.
443 (_bfd_mips_elf_size_dynamic_sections): Add DT_MIPS_XHASH tag to
444 dynamic section.
445 (_bfd_mips_elf_finish_synamic_sections): Add DT_MIPS_XHASH.
446 (_bfd_mips_elf_final_write_processing): Set .MIPS.xhash section
447 sh_link info.
448 (_bfd_mips_elf_get_target_dtag): Get DT_MIPS_XHASH tag.
449 (MIPS_LIBC_ABI_XHASH): New ABI version enum value.
450 (_bfd_mips_post_process_headers): Mark the ABI version as
451 MIPS_LIBC_ABI_XHASH if there exists a .MIPS.xhash section,
452 but not a .hash section.
453 (_bfd_mips_elf_record_xhash_symbol): New function. Record a
454 position in the translation table, associated with the hash
455 entry.
456 * elfxx-mips.h (literal_reloc_p): Define
457 elf_backend_record_xhash_symbol backend hook.
458 * elfxx-target.h: Initialize elf_backend_record_xhash_symbol
459 backend hook.
460
461 2019-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
462
463 * elf64-bpf.c (bpf_elf_relocate_section): New function.
464 (bpf_elf_insn_disp_reloc): Delete function.
465 (elf_backend_relocate_section): Define.
466
467 2019-08-07 Alan Modra <amodra@gmail.com>
468
469 PR 24644
470 * archive64.c (_bfd_archive_64_bit_slurp_armap): Properly check
471 for overflow in expressions involving nsymz.
472
473 2019-08-01 Ilia Diachkov <ilia.diachkov@optimitech.com>
474
475 * elfnn-riscv.c (_bfd_riscv_relax_lui): Set lui relax safety area to
476 two pages in relro presence.
477
478 2019-08-01 Max Filippov <jcmvbkbc@gmail.com>
479
480 * elf32-xtensa.c (insn_num_slots, get_rsr_lend_opcode)
481 (get_wsr_lbeg_opcode): New functions.
482 (check_loop_aligned): Detect relaxed loops and adjust loop_len
483 and insn_len for the first actual instruction of the loop.
484
485 2019-07-30 Alan Modra <amodra@gmail.com>
486
487 PR 24768
488 * bfd.c (struct bfd): Add lto_slim_object flag.
489 * bfd-in2.h: Regenerate.
490
491 2019-07-29 Martin Liska <mliska@suse.cz>
492
493 PR 24768
494 * archive.c (_bfd_compute_and_write_armap): Come up with
495 report_plugin_err variable.
496 * bfd-in2.h (struct bfd): Add lto_slim_object flag.
497 * elf.c (struct lto_section): New.
498 (_bfd_elf_make_section_from_shdr): Parse content of
499 .gnu_lto_.lto section.
500 * elflink.c: Report error for a missing LTO plugin.
501 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
502
503 2019-07-28 Alan Modra <amodra@gmail.com>
504
505 PR 24857
506 PR 24339
507 * elflink.c (elf_link_add_object_symbols): Report an informative
508 error on finding local symbols with index equal or greater than
509 symbol table sh_info. Correct comment. Allow such symbols in
510 dynamic objects. Abort on NULL section for symbol.
511
512 2019-07-26 Alan Modra <amodra@gmail.com>
513
514 * elf-bfd.h (struct output_elf_obj_tdata): Delete "linker" field.
515 (elf_linker): Don't define.
516 * elflink.c (bfd_elf_final_link): Don't set elf_linker.
517
518 2019-07-25 YunQiang Su <syq@debian.org>
519
520 PR 24832
521 * elfxx-mips.c (mips_set_isa_flags): Default to MIPS 3 for 64-bit
522 mips inputs.
523
524 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
525
526 * elf32-arc.c (bfd_get_32_me): Add a small description, fix
527 formating.
528 (reloc_type_to_name): Fix formating.
529 (arc_elf_object_p): Likewise.
530 (debug_arc_reloc): Likewise.
531 (arc_do_relocation): Likewise.
532
533 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
534
535 * elf32-arc.c (bfd_get_32_me): New function.
536 (bfd_put_32_me): Likewise.
537 (arc_elf_relax_section): Likewise.
538 (bfd_elf32_bfd_relax_section): Define.
539
540 2019-07-24 Alan Modra <amodra@gmail.com>
541
542 * elf-bfd.h (struct elf_backend_data): Return bfd_boolean from
543 elf_backend_final_write_processing, don't pass linker arg.
544 (_bfd_elf_final_write_processing): Update prototype.
545 * elf.c (_bfd_elf_write_object_contents): Adjust call.
546 (_bfd_elf_final_write_processing): Return error on incompatible
547 OSABI and has_gnu_osabi. Remove linker arg.
548 * elf-nacl.h (nacl_final_write_processing): Update prototype.
549 * elf-vxworks.h (elf_vxworks_final_write_processing): Likewise.
550 * elfxx-mips.h (_bfd_mips_final_write_processing): Likewise.
551 (_bfd_mips_elf_final_write_processing): Likewise.
552 * elf-hppa.h (elf_hppa_final_write_processing): Return status
553 and remove linker arg.
554 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
555 * elf-nacl.c (nacl_final_write_processing): Likewise.
556 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
557 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
558 * elf32-arm.c (arm_final_write_processing): Likewise.
559 (elf32_arm_final_write_processing): Likewise.
560 (elf32_arm_nacl_final_write_processing): Likewise.
561 (elf32_arm_vxworks_final_write_processing): Likewise.
562 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
563 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
564 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
565 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
566 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
567 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
568 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
569 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
570 * elf32-mips.c (mips_vxworks_final_write_processing): Likewise.
571 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
572 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
573 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
574 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
575 * elf32-ppc.c (ppc_final_write_processing): Likewise.
576 (ppc_elf_final_write_processing): Likewise.
577 (ppc_elf_vxworks_final_write_processing): Likewise.
578 * elf32-sparc.c (sparc_final_write_processing): Likewise.
579 (elf32_sparc_final_write_processing): Likewise.
580 (elf32_sparc_vxworks_final_write_processing): Likewise.
581 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
582 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
583 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
584 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
585 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
586 * elfxx-mips.c (_bfd_mips_final_write_processing): Likewise.
587 (_bfd_mips_elf_final_write_processing): Likewise.
588
589 2019-07-24 Alan Modra <amodra@gmail.com>
590
591 * elf-vxworks.c (elf_vxworks_final_write_processing): Don't return
592 early.
593 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
594 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
595
596 2019-07-24 Alan Modra <amodra@gmail.com>
597
598 * elf32-visium.c (visium_elf_post_process_headers): Don't set
599 EI_OSABI header byte here.
600 (ELF_OSABI): Define.
601
602 2019-07-23 Alan Modra <amodra@gmail.com>
603
604 * elf-bfd.h (enum elf_gnu_osabi): Add elf_gnu_osabi_mbind.
605 * elf.c (_bfd_elf_make_section_from_shdr): Set elf_gnu_osabi_mbind.
606 (get_program_header_size): Formatting. Only test SH_GNU_MBIND
607 when elf_gnu_osabi_mbind is set.
608 (_bfd_elf_map_sections_to_segments): Likewise.
609 (_bfd_elf_init_private_section_data): Likewise.
610 (_bfd_elf_final_write_processing): Update comment.
611 * elf64-hppa.c (elf64_hppa_special_sections): Move .tbss entry.
612 (elf_backend_special_sections): Define without .tbss for linux.
613
614 2019-07-23 Alan Modra <amodra@gmail.com>
615
616 * elf-bfd.h (enum elf_gnu_osabi): Rename from elf_gnu_symbols.
617 Remove none, any, all enums.
618 (struct elf_obj_tdata): Rename has_gnu_symbols field to has_gnu_osabi.
619 (_bfd_elf_final_write_processing): Declare.
620 * elf.c (_bfd_elf_write_object_contents): Unconditionally call
621 elf_backend_final_write_processing.
622 (_bfd_elf_post_process_headers): Move body of function to..
623 (_bfd_elf_final_write_processing): ..here, but set EI_OSABI byte
624 only when not already set. Adjust for rename.
625 * elfxx-target.h (elf_backend_final_write_processing): Default to
626 _bfd_elf_final_write_processing.
627 * elf-hppa.h (elf_hppa_final_write_processing): Call
628 _bfd_elf_final_write_processing.
629 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
630 * elf-nacl.c (nacl_final_write_processing): Likewise.
631 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
632 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
633 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
634 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
635 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
636 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
637 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
638 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
639 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
640 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
641 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
642 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
643 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
644 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
645 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
646 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
647 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
648 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
649 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
650 * elf32-arm.c (arm_final_write_processing): Split out from..
651 (elf32_arm_final_write_processing): ..here. Call
652 _bfd_elf_final_write_processing.
653 (elf32_arm_nacl_final_write_processing): Adjust.
654 * elfxx-mips.c (_bfd_mips_final_write_processing): Split out from..
655 (_bfd_mips_elf_final_write_processing): ..here. Call
656 _bfd_elf_final_write_processing.
657 * elfxx-mips.h (_bfd_mips_final_write_processing): Declare.
658 * elf32-mips.c (mips_vxworks_final_write_processing): Adjust.
659 * elf32-ppc.c (ppc_final_write_processing): Split out from..
660 (ppc_elf_final_write_processing): ..here. Call
661 _bfd_elf_final_write_processing.
662 (ppc_elf_vxworks_final_write_processing): Adjust.
663 * elf32-sparc.c (sparc_final_write_processing): Split out from..
664 (elf32_sparc_final_write_processing): ..here. Call
665 _bfd_elf_final_write_processing.
666 (elf32_sparc_vxworks_final_write_processing): Adjust.
667 * elf32-d10v.c (elf_backend_final_write_processing): Don't define.
668 * elf32-d30v.c (elf_backend_final_write_processing): Don't define.
669 * elf32-m68hc11.c (elf_backend_final_write_processing): Don't define.
670 * elf32-m68hc12.c (elf_backend_final_write_processing): Don't define.
671 * elf32-s12z.c (elf_backend_final_write_processing): Don't define.
672 * elf32-i386.c (elf_i386_check_relocs): Don't set has_gnu_symbols.
673 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
674 * elflink.c (elf_link_add_object_symbols): Likewise.
675 (elf_link_output_symstrtab): Set has_gnu_osabi for symbols here
676 instead.
677
678 2019-07-23 Omar Majid <omajid@redhat.com>
679
680 * coffcode.h (coff_set_arch_mach_hook): Handle I386_APPLE_MAGIC,
681 I386_FREEBSD_MAGIC, I386_LINUX_MAGIC, I386_NETBSD_MAGIC,
682 AMD64_APPLE_MAGIC, AMD64_FREEBSD_MAGIC, AMD64_LINUX_MAGIC,
683 AMD64_NETBSD_MAGIC.
684 * peXXigen.c: Add comment about source of .NET magic numbers.
685
686 2019-07-19 Alan Modra <amodra@gmail.com>
687
688 * reloc.c (BFD_RELOC_PPC64_TPREL34, BFD_RELOC_PPC64_DTPREL34),
689 (BFD_RELOC_PPC64_GOT_TLSGD34, BFD_RELOC_PPC64_GOT_TLSLD34),
690 (BFD_RELOC_PPC64_GOT_TPREL34, BFD_RELOC_PPC64_GOT_DTPREL34),
691 (BFD_RELOC_PPC64_TLS_PCREL): New pcrel tls relocs.
692 * elf64-ppc.c (ppc64_elf_howto_raw): Add howtos for pcrel tls relocs.
693 (ppc64_elf_reloc_type_lookup): Translate pcrel tls relocs.
694 (must_be_dyn_reloc, dec_dynrel_count): Add R_PPC64_TPREL64.
695 (ppc64_elf_check_relocs): Support pcrel tls relocs.
696 (ppc64_elf_tls_optimize, ppc64_elf_relocate_section): Likewise.
697 * bfd-in2.h: Regenerate.
698 * libbfd.h: Regenerate.
699
700 2019-07-18 Alan Modra <amodra@gmail.com>
701
702 * elf64-ppc.c (ppc64_elf_relocate_section): Don't bother selecting
703 a TLS section symbol for edited relocs. Tighten TLS symbol/reloc
704 match test.
705
706 2019-07-18 Alan Modra <amodra@gmail.com>
707
708 * elf64-ppc.c (TLS_EXPLICIT): Define as 256.
709 (ppc64_elf_check_relocs): Don't store TLS_EXPLICIT even if char
710 is more than 8 bits.
711 (ppc64_elf_tls_optimize): Likewise. Make tls_set, tls_clear, and
712 tls_type vars unsigned int.
713 (ppc64_elf_relocate_section): Use r_type rather than TLS_EXPLICIT
714 to select r_type edit.
715
716 2019-07-18 Alan Modra <amodra@gmail.com>
717
718 * elf32-ppc.c (TLS_GDIE): Rename from TLS_TPRELGD throughout file.
719 Correct comment.
720 * elf64-ppc.c (TLS_GDIE): Likewise.
721
722 2019-07-18 Alan Modra <amodra@gmail.com>
723
724 * elf64-ppc.c (ppc64_elf_tls_optimize): Correct test for allowed
725 range of tp-relative offsets.
726
727 2019-07-15 Alan Modra <amodra@gmail.com>
728
729 * elflink.c (_bfd_elf_fix_symbol_flags): If the def for an
730 alias is no longer bfd_link_hash_defined, clear the alias.
731
732 2019-07-13 Alan Modra <amodra@gmail.com>
733
734 * elflink.c (_bfd_elf_omit_section_dynsym_default): Don't keep
735 tls_sec.
736 (_bfd_elf_init_1_index_section): Prefer not using TLS sections.
737 (_bfd_elf_init_2_index_sections): Likewise.
738 * elf64-ppc.c (ppc64_elf_relocate_section): When emitting dynamic
739 relocations for local TLS symbols, use STN_UNDEF as the relocation
740 symbol.
741 * elf32-ppc.c (ppc_elf_relocate_section): Likewise, and don't
742 leave TLS symbol value in the addend.
743
744 2019-07-08 Alan Modra <amodra@gmail.com>
745
746 PR 24785
747 * elf32-ppc.c (_bfd_elf_ppc_set_arch): Sanity check .PPC.EMB.apuinfo
748 size before reading first word.
749
750 2019-07-02 Nick Clifton <nickc@redhat.com>
751
752 PR 24717
753 * elf.c (is_debuginfo_file): New function.
754 (assign_file_positions_for_non_load_sections): Do not warn about
755 allocated sections outside of loadable segments if they are found
756 in a debuginfo file.
757 * elf-bfd.h (is_debuginfo_file): Prototype.
758
759 2019-07-02 Nick Clifton <nickc@redhat.com>
760
761 PR 24753
762 * compress.c (bfd_get_full_section_contents): Do not complain
763 about linker created sections that are larger than the file size.
764
765 2019-07-02 Christophe Lyon <christophe.lyon@linaro.org>
766
767 * bfd/elf32-arm.c (CMSE_STUB_NAME): New define.
768 (elf32_arm_get_stub_entry): Do not try to emit long-branch stubs
769 for CMSE stubs.
770 (arm_dedicated_stub_output_section_name): Use CMSE_STUB_NAME.
771
772 2019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
773
774 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Mark debug
775 sections when .text section contain secure entry functions
776 is marked.
777
778 2019-07-01 Nick Clifton <nickc@redhat.com>
779
780 PR 23839
781 * elf32-arm.c (elf32_arm_update_relocs): Do not include the
782 section VMA in the offset used to update exidx relocs.
783
784 2019-06-28 Nick Clifton <nickc@redhat.com>
785
786 PR 24708
787 * elf.c (_bfd_elf_slurp_version_tables): Check for an excessively
788 large version reference section.
789 * compress.c (bfd_get_full_section_contents): Check for an
790 uncompressed section whose size is larger than the file size.
791
792 2019-06-28 Alan Modra <amodra@gmail.com>
793
794 * format.c (bfd_check_format_matches): Don't match plugin target
795 if another target matches. Expand comment.
796 * targets.c (_bfd_target_vector): Move plugin_vec after all other
797 non-corefile targets, outside !SELECT_VECS.
798 * config.bfd: Don't handle targ=plugin here.
799 * configure.ac: Don't add plugin to enable_targets or handle in
800 target loop setting selvecs and other target vars.
801 * configure: Regenerate.
802
803 2019-06-26 Nick Clifton <nickc@redhat.com>
804
805 PR 24703
806 * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add error
807 messages for failures.
808 * mach-o.c (bfd_mach_o_canonicalize_relocs): Set an bfd error code
809 if returning an error value.
810
811 2019-06-25 Jan Beulich <jbeulich@suse.com>
812
813 * elf-properties.c (elf_find_and_remove_property): Rename last
814 parameter. Mention it in comment.
815
816 2019-06-24 Ilia Diachkov <ilia.diachkov@optimitech.com>
817
818 * elfnn-riscv.c (_bfd_riscv_relax_lui): Delete early exit when
819 SEC_MERGE or SEC_CODE flags are set.
820 (_bfd_riscv_relax_section): New local symtype. Set sym_sec and
821 symtype consistently. Don't include sec_addr (sym_sec) in symval.
822 Add check for SEC_INFO_TYPE_MERGE and call _bfd_merged_section_offset.
823 Add sec_addr (sym_sec) after handling merge sections.
824
825 2019-06-24 H.J. Lu <hongjiu.lu@intel.com>
826
827 PR ld/24721
828 * elf-properties.c (elf_merge_gnu_property_list): Remove the
829 property after reporting property removal.
830
831 2019-06-23 Alan Modra <amodra@gmail.com>
832
833 PR 24704
834 * elf64-ppc.c (R_PPC64_GOT16_DS): Don't set has_gotrel.
835 (ppc64_elf_edit_toc): Don't remove R_PPC64_GOT16_DS got entries.
836 Reduce range of offsets allowed for other GOT relocs.
837
838 2019-06-23 Alan Modra <amodra@gmail.com>
839
840 PR 24689
841 * elfcode.h (elf_object_p): Warning fix.
842
843 2019-06-21 Alan Modra <amodra@gmail.com>
844
845 PR 24689
846 * elfcode.h (elf_object_p): Check type of e_shstrndx section.
847
848 2019-06-19 Alan Modra <amodra@gmail.com>
849
850 PR 24697
851 * elf32-ppc.c (ppc_elf_relocate_section): Don't read insn for
852 R_PPC_EMB_RELSDA. Mask low bit of R_PPC_EMB_SDA21 r_offset.
853
854 2019-06-19 Alan Modra <amodra@gmail.com>
855
856 * elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for
857 functions that require r2 valid to use local entry.
858 (ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise.
859
860 2019-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
861
862 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_dynrelocs): Remove.
863 (elfNN_aarch64_size_dynamic_sections): Remove loc_hash_table traversal
864 with elfNN_aarch64_allocate_local_dynrelocs.
865
866 2019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
867
868 * elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32.
869
870 2019-06-14 Alan Modra <amodra@gmail.com>
871
872 * Makefile.in: Regenerate.
873 * configure: Regenerate.
874
875 2019-06-14 Alan Modra <amodra@gmail.com>
876
877 * elf64-ppc.c: Fix comments involving paddi.
878
879 2019-06-12 Adam Lackorzymski <adam@os.inf.tu-dresden.de>
880
881 PR 24643
882 * elf32-arm.c (arm_elf_find_function): Fail if the symol table is
883 absent, or the bfd is not in the ELF formart.
884 * elfnn-aarch64.c (aarch64_elf_find_function): Likewise.
885
886 2019-06-10 Christos Zoulas <christos@zoulas.com>
887
888 PR 24650
889 * elf.c (elfcore_make_auxv_note_section): New function.
890 (elfcore_grok_note): Use it.
891 (elfcore_grok_freebsd_note): Likewise.
892 (elfcore_grok_openbsd_note): Likewise.
893 (elfcore_grok_netbsd_note): Likewise. Plus add support for
894 NT_NETBSDCORE_AUXV notes.
895
896 2019-06-06 Sudakshina Das <sudi.das@arm.com>
897
898 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Set
899 alignment of the new gnu property section.
900
901 2019-06-06 Sudakshina Das <sudi.das@arm.com>
902
903 * bfd-in.h: Change comment.
904 * bfd-in2.h: Regenerate.
905 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update warning.
906 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties):
907 Likwise.
908
909 2019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
910
911 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>:
912 Remove overflow check.
913
914 2019-05-28 Alan Modra <amodra@gmail.com>
915
916 PR 24596
917 * cofflink.c (coff_link_check_archive_element): Don't assume
918 element is a coff object file after calling add_archive_element.
919
920 2019-05-28 Alan Modra <amodra@gmail.com>
921
922 PR 24596
923 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't
924 attempt to set sh_entsize for excluded PLT section.
925
926 2019-05-28 Alan Modra <amodra@gmail.com>
927
928 PR 24596
929 * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt
930 to emit R_ALPHA_GOTTPREL in PIEs, for which no space is
931 allocated in alpha_dynamic_entries_for_reloc.
932
933 2019-05-28 Alan Modra <amodra@gmail.com>
934
935 PR 24596
936 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault
937 on NULL output_section.
938 * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf.
939
940 2019-05-28 Alan Modra <amodra@gmail.com>
941
942 PR 24596
943 * elf32-m68k.c (elf_m68k_get_got_entry): Don't create a new
944 entry when MUST_FIND. Abort when MUST_FIND not found.
945 (elf_m68k_get_bfd2got_entry): Likewise.
946 (elf_m68k_relocate_section): Remove now useless assert.
947
948 2019-05-28 Alan Modra <amodra@gmail.com>
949
950 PR 24596
951 * elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd
952 from bfd_link_info, not an output section owner.
953 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise.
954 (elf_hppa_final_link_relocate): Likewise.
955
956 2019-05-28 Alan Modra <amodra@gmail.com>
957
958 PR 24596
959 * aout-tic30.c (MY_bfd_final_link): Don't segfault on missing
960 create_object_symbols_section, obj_textsec, obj_datasec or
961 obj_bsssec. Fix other errors in placement.
962 * config.bfd: Obsolete tic30-aout.
963
964 2019-05-28 Alan Modra <amodra@gmail.com>
965
966 PR 24596
967 * dwarf2.c (save_section_vma, section_vma_same): Check for NULL
968 end of section list as well as section_count.
969 * xcofflink.c (xcoff_link_add_symbols): Fix temporarily changed
970 section list before returning error.
971
972 2019-05-27 Alan Modra <amodra@gmail.com>
973
974 * elf.c (bfd_elf_set_group_contents): Exit on zero size section.
975
976 2019-05-27 Alan Modra <amodra@gmail.com>
977
978 PR 24596
979 * linker.c (_bfd_generic_link_output_symbols): Heed BSF_KEEP.
980
981 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
982
983 * elfnn-aarch64.c (elfNN_aarch64_merge_symbol_attribute): New function.
984 (struct elf_aarch64_link_hash_table): Add variant_pcs member.
985 (elfNN_aarch64_allocate_dynrelocs): Update variant_pcs.
986 (elfNN_aarch64_size_dynamic_sections): Add DT_AARCH64_VARIANT_PCS.
987 (elf_backend_merge_symbol_attribute): Define.
988
989 2019-05-24 Alan Modra <amodra@gmail.com>
990
991 * po/SRC-POTFILES.in: Regenerate.
992
993 2019-05-24 Alan Modra <amodra@gmail.com>
994
995 * elf64-ppc.c: Comment on powerxx _notoc stub variants.
996 (LI_R11_0, LIS_R11, ORI_R11_R11_0, SLDI_R11_R11_34): Define.
997 (PADDI_R12_PC, PLD_R12_PC, D34, HA34): Define.
998 (struct ppc_link_hash_table): Add powerxx_stubs.
999 (ppc64_elf_check_relocs): Set powerxx_stubs.
1000 (build_powerxx_offset, size_powerxx_offset),
1001 (num_relocs_for_powerxx_offset),
1002 (emit_relocs_for_powerxx_offset): New functions.
1003 (plt_stub_size): Size powerxx stubs.
1004 (ppc_build_one_stub): Emit powerxx stubs.
1005 (ppc_size_one_stub): Size powerxx stubs. Omit .eh_frame for
1006 powerxx stubs.
1007
1008 2019-05-24 Alan Modra <amodra@gmail.com>
1009
1010 * elf64-ppc.c (ppc64_elf_check_relocs): Set has_gotrel for
1011 R_PPC64_GOT_PCREL34.
1012 (xlate_pcrel_opt): New function.
1013 (ppc64_elf_edit_toc): Handle R_PPC64_GOT_PCREL34.
1014 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
1015 for R_PPC64_GOT_PCREL34. Implement R_PPC64_PCREL_OPT optimisation.
1016
1017 2019-05-24 Alan Modra <amodra@gmail.com>
1018
1019 * reloc.c (BFD_RELOC_PPC64_D34, BFD_RELOC_PPC64_D34_LO),
1020 (BFD_RELOC_PPC64_D34_HI30, BFD_RELOC_PPC64_D34_HA30),
1021 (BFD_RELOC_PPC64_PCREL34, BFD_RELOC_PPC64_GOT_PCREL34),
1022 (BFD_RELOC_PPC64_PLT_PCREL34),
1023 (BFD_RELOC_PPC64_ADDR16_HIGHER34, BFD_RELOC_PPC64_ADDR16_HIGHERA34),
1024 (BFD_RELOC_PPC64_ADDR16_HIGHEST34, BFD_RELOC_PPC64_ADDR16_HIGHESTA34),
1025 (BFD_RELOC_PPC64_REL16_HIGHER34, BFD_RELOC_PPC64_REL16_HIGHERA34),
1026 (BFD_RELOC_PPC64_REL16_HIGHEST34, BFD_RELOC_PPC64_REL16_HIGHESTA34),
1027 (BFD_RELOC_PPC64_D28, BFD_RELOC_PPC64_PCREL28): New reloc enums.
1028 * elf64-ppc.c (PNOP): Define.
1029 (ppc64_elf_howto_raw): Add reloc howtos for new relocations.
1030 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc numbers.
1031 (ppc64_elf_ha_reloc): Adjust addend for highera34 and highesta34
1032 relocs.
1033 (ppc64_elf_prefix_reloc): New function.
1034 (struct ppc_link_hash_table): Add notoc_plt.
1035 (is_branch_reloc): Add R_PPC64_PLTCALL_NOTOC.
1036 (is_plt_seq_reloc): Add R_PPC64_PLT_PCREL34,
1037 R_PPC64_PLT_PCREL34_NOTOC, and R_PPC64_PLTSEQ_NOTOC.
1038 (ppc64_elf_check_relocs): Handle pcrel got and plt relocs. Set
1039 has_pltcall for section on seeing R_PPC64_PLTCALL_NOTOC. Handle
1040 possible need for dynamic relocs on non-pcrel powerxx relocs.
1041 (dec_dynrel_count): Handle non-pcrel powerxx relocs.
1042 (ppc64_elf_inline_plt): Handle R_PPC64_PLTCALL_NOTOC.
1043 (toc_adjusting_stub_needed): Likewise.
1044 (ppc64_elf_tls_optimize): Handle R_PPC64_PLTSEQ_NOTOC.
1045 (ppc64_elf_relocate_section): Handle new powerxx relocs.
1046 * bfd-in2.h: Regenerate.
1047 * libbfd.h: Regenerate.
1048
1049 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
1050
1051 * config.bfd (targ_cpu): Process bpf-*-none only if BFD64.
1052 * configure.ac: Set target_size=64 for bpf_elf64_le_vec and
1053 bpf_elf64_be_vec.
1054 * configure: Regenerate.
1055
1056 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
1057
1058 * configure: Regenerated.
1059 * Makefile.am (ALL_MACHINES): Add cpu-bpf.lo.
1060 (ALL_MACHINES_CFILES): Add cpu-bpf.c.
1061 (BFD64_BACKENDS): Add elf64-bpf.lo.
1062 (BFD64_BACKENDS_CFILES): Add elf64-bpf.c.
1063 * Makefile.in (SOURCE_HFILES): Regenerate.
1064 * config.bfd (targ_cpu): Handle bpf-*-* targets.
1065 * cpu-bpf.c: New file.
1066 * elf64-bpf.c: Likewise.
1067 * targets.c (_bfd_target_vector): Add bpf_elf64_be_vec and
1068 bpf_elf64_le_vec.
1069 * archures.c: Define architecture bfd_arch_bpf and machine
1070 bfd_arch_bpf.
1071 * reloc.c: Define BFD relocations used by the BPF target.
1072 * bfd-in2.h: Regenerated.
1073 * libbfd.h: Likewise.
1074
1075 2019-05-22 Alan Modra <amodra@gmail.com>
1076
1077 * elf32-arm.c (arm_allocate_glue_section_space): Clear section
1078 contents.
1079
1080 2019-05-22 Alan Modra <amodra@gmail.com>
1081
1082 * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
1083 processing on "size error in section".
1084
1085 2019-05-22 Alan Modra <amodra@gmail.com>
1086
1087 * som.c (som_bfd_free_cached_info): Call
1088 _bfd_generic_close_and_cleanup.
1089
1090 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
1091
1092 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Generate error
1093 for TLS_TPREL_HI16(/LO16) relocations in shared library.
1094
1095 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
1096
1097 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Add NULL pointer
1098 checks. Search the RELA table for n64 relocations.
1099
1100 2019-05-21 Matthew Fortune <matthew.fortune@mips.com>
1101 Faraz Shahbazker <fshahbazker@wavecomp.com>
1102
1103 * elfxx-mips.c (LA25_BC): New macro.
1104 (mips_elf_link_hash_table)<compact_branches>: New field.
1105 (STUB_JALRC): New macro.
1106 (mipsr6_o32_exec_plt0_entry_compact): New array.
1107 (mipsr6_n32_exec_plt0_entry_compact): Likewise.
1108 (mipsr6_n64_exec_plt0_entry_compact): Likewise.
1109 (mipsr6_exec_plt_entry_compact): Likewise.
1110 (mips_elf_create_la25_stub): Use BC instead of J for stubs
1111 when compact_branches is true.
1112 (_bfd_mips_elf_finish_dynamic_symbol): Choose the compact
1113 PLT for MIPSR6 with compact_branches. Do not reorder the
1114 compact branches PLT. Switch the lazy stub for MIPSR6
1115 with compact_branches to use JALRC.
1116 (mips_finish_exec_plt): Choose the compact PLT0 for MIPSR6
1117 when compact_branches is true.
1118 (_bfd_mips_elf_compact_branches): New function.
1119 * elfxx-mips.h (_bfd_mips_elf_compact_branches): New prototype.
1120
1121 2019-05-21 Tamar Christina <tamar.christina@arm.com>
1122
1123 PR ld/24373
1124 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
1125 Fix print formatter.
1126
1127 2019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
1128
1129 PR 24460
1130 * elf32-arm.c (get_value_helper): Remove.
1131 (elf32_arm_final_link_relocate): Fix branch future relocations.
1132
1133 2019-05-21 Tamar Christina <tamar.christina@arm.com>
1134
1135 PR ld/24373
1136 * bfd-in.h (enum erratum_84319_opts): New
1137 (bfd_elf64_aarch64_set_options, bfd_elf32_aarch64_set_options): Change
1138 int to enum erratum_84319_opts.
1139 * bfd-in2.h: Regenerate.
1140 * elfnn-aarch64.c (struct elf_aarch64_link_hash_table): Change
1141 fix_erratum_843419 to use new enum, remove fix_erratum_843419_adr.
1142 (_bfd_aarch64_add_stub_entry_after): Conditionally create erratum stub.
1143 (aarch64_size_one_stub): Conditionally size erratum 843419 stubs.
1144 (_bfd_aarch64_resize_stubs): Amend comment.
1145 (elfNN_aarch64_size_stubs): Don't generate stubs when no workaround
1146 requested.
1147 (bfd_elfNN_aarch64_set_options): Use new fix_erratum_843419 enum.
1148 (_bfd_aarch64_erratum_843419_branch_to_stub): Implement selection of
1149 erratum workaround.
1150 (clear_erratum_843419_entry): Update erratum conditional.
1151
1152 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1153
1154 PR ld/24571
1155 * bfd/elf32-avr.c (elf32_avr_relax_section): Adjust range check
1156 when computing distance_short_enough.
1157
1158 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1159
1160 PR ld/24564
1161 * bfd/elf32-avr.c (avr_relative_distance_considering_wrap_around):
1162 Wrap around even if distance equals avr_pc_wrap_around.
1163
1164 2019-05-20 Nick Clifton <nickc@redhat.com>
1165
1166 * po/fr.po: Updated French translation.
1167
1168 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
1169
1170 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add case for Tag_MVE_arch.
1171
1172 2019-05-16 Alan Modra <amodra@gmail.com>
1173
1174 * elf32-arm.c (elf32_arm_write_section): Revert last change.
1175
1176 2019-05-15 Alan Modra <amodra@gmail.com>
1177
1178 * elf32-arm.c (elf32_arm_write_section): Don't leave
1179 error case of STM32L4XX_ERRATUM_BRANCH_TO_VENEER with
1180 unitialised section contents.
1181
1182 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
1183
1184 PR 19921
1185 * verilog.c: (VerilogDataWidth): New variable.
1186 (verilog_write_record): Emit bytes in VerilogDataWidth bundles.
1187
1188 2019-05-08 Nick Clifton <nickc@redhat.com>
1189
1190 PR 24523
1191 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Return TRUE
1192 rather than FALSE if encountering a non-ELF file.
1193
1194 2019-05-06 Alan Modra <amodra@gmail.com>
1195
1196 * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error.
1197
1198 2019-05-06 Alan Modra <amodra@gmail.com>
1199
1200 * reloc.c (BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA),
1201 (BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA):
1202 Sort before BFD_RELOC_PPC64_DTPREL16_HIGHESTA entry.
1203 * libbfd.h: Regenerate.
1204 * bfd-in2.h: Regenerate.
1205
1206 2019-05-04 Alan Modra <amodra@gmail.com>
1207
1208 PR 24511
1209 * syms.c (coff_section_type): Only allow '.', '$' and numeric
1210 following the standard section names.
1211 (bfd_decode_symclass): Prioritize section flag tests in
1212 decode_section_type before name tests in coff_section_type.
1213 * plugin.c (bfd_plugin_canonicalize_symtab): Init fake_section
1214 and fake_common_section using BFD_FAKE_SECTION. Use "fake" as
1215 their names and choose standard .text section flags for
1216 fake_section.
1217
1218 2019-05-02 Nick Clifton <nickc@redhat.com>
1219
1220 PR 24493
1221 * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
1222 .gnu.debugaltlink sections as debugging sections.
1223
1224 2019-04-30 Alan Modra <amodra@gmail.com>
1225
1226 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel.
1227 (struct _ppc64_elf_section_data): Likewise.
1228 (ppc64_elf_check_relocs): Set above fields.
1229 (ppc64_elf_edit_toc): Add a pass over GOT relocs.
1230 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
1231 when possible.
1232
1233 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
1234
1235 PR ld/24486
1236 * elflink.c (elf_link_output_extsym): Don't complain undefined
1237 weak dynamic reference.
1238
1239 2019-04-25 Sudakshina Das <sudi.das@arm.com>
1240
1241 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): Remove.
1242 (PLT_BTI_TLSDESC_ENTRY_SIZE): Remove.
1243 (PLT_PAC_ENTRY_SIZE, PLT_BTI_PAC_ENTRY_SIZE): Remove.
1244 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): Update.
1245 (elfNN_aarch64_small_plt0_pac_entry): Remove.
1246 (elfNN_aarch64_small_plt0_bti_pac_entry): Remove.
1247 (elfNN_aarch64_small_plt0_bti_entry): Update.
1248 (elfNN_aarch64_small_plt_bti_entry): Update.
1249 (elfNN_aarch64_small_plt_pac_entry): Update.
1250 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): Update.
1251 (setup_plt_values): Setup new entries.
1252 (elfNN_aarch64_finish_dynamic_sections): Remove size change.
1253 (elfNN_aarch64_plt_sym_val): Likewise.
1254
1255 2019-04-22 Jim Wilson <jimw@sifive.com>
1256
1257 * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
1258
1259 2019-04-19 Alan Modra <amodra@gmail.com>
1260
1261 * elf32-s12z.c (elf_backend_can_gc_sections): Don't define
1262
1263 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1264
1265 * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not
1266 building shared object.
1267 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Likewise.
1268
1269 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1270
1271 PR ld/24458
1272 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86
1273 linker_def.
1274
1275 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1276
1277 * reloc.c (BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM): New internal
1278 relocation.
1279 * bfd-in2.h: Regenerate.
1280 * libbfd.h: Likewise.
1281
1282 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1283
1284 * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New.
1285 * bfd-in2.h: Regenerated.
1286 * libbfd.h: Regenerated.
1287
1288 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1289
1290 * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation.
1291 * bfd-in2.h: Regenerated.
1292 * libbfd.h: Likewise.
1293
1294 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1295
1296 * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New.
1297 * bfd-in2.h: Regenerated.
1298 * libbfd.h: Regenerated.
1299 * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13.
1300 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13
1301 and R_ARM_THM_BF12 together.
1302 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13.
1303
1304 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1305
1306 * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New
1307 * libbfd.h: Regenerated.
1308 * bfd-in2.h: Regenerated.
1309 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18.
1310 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19
1311 and R_ARM_THM_BF18 together.
1312 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19.
1313
1314 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1315
1316 * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum.
1317 * bfd-in2.h: Regenerated.
1318 * libbfd.h: Regenerated.
1319 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16.
1320 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17
1321 and R_ARM_THM_BF16 together.
1322 (get_value_helper): New reloc helper.
1323 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16.
1324
1325 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1326
1327 * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
1328 * bfd-in2.h: Regenerate.
1329 * libbfd.h: Regenerate.
1330
1331 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1332
1333 * archures.c (bfd_mach_arm_8_1M_MAIN): Define.
1334 * bfd-in2.h: Regenerate.
1335 * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline.
1336 * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline
1337 and update assert.
1338 (using_thumb2): Likewise.
1339 (using_thumb2_bl): Update assert.
1340 (arch_has_arm_nop): Likewise.
1341 (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline.
1342 (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging.
1343
1344 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1345
1346 * elf-linker-x86.h (elf_x86_cet_report): New.
1347 (elf_linker_x86_params): Add cet_report.
1348 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
1349 missing IBT and SHSTK properties if needed.
1350
1351 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1352
1353 PR ld/24436
1354 * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of
1355 "h != NULL". Don't check "h != NULL" before calling.
1356 bfd_elf_gc_record_vtentry.
1357 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
1358 * elf32-bfin.c (bfin_check_relocs): Likewise.
1359 * elf32-cris.c (cris_elf_check_relocs): Likewise.
1360 * elf32-csky.c (csky_elf_check_relocs): Likewise.
1361 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
1362 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
1363 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
1364 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
1365 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
1366 * elf32-i386.c (elf_i386_check_relocs): Likewise.
1367 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1368 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
1369 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
1370 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
1371 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
1372 * elf32-metag.c (elf_metag_check_relocs): Likewise.
1373 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
1374 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
1375 * elf32-s390.c (elf_s390_check_relocs): Likewise.
1376 * elf32-sh.c (sh_elf_check_relocs): Likewise.
1377 * elf32-v850.c (v850_elf_check_relocs): Likewise.
1378 * elf32-vax.c (elf_vax_check_relocs): Likewise.
1379 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
1380 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
1381 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
1382 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1383 * elf64-s390.c (elf_s390_check_relocs): Likewise.
1384 * elf64-x86-64.c (elf_s390_check_relocs): Likewise.
1385 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
1386 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
1387 * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt
1388 VTENTRY entry.
1389
1390 2019-04-11 Alan Modra <amodra@gmail.com>
1391
1392 PR 24435
1393 * elflink.c (elf_link_add_object_symbols): Don't read partial
1394 dynamic entries from fuzzed objects.
1395
1396 2019-04-11 Tamar Christina <tamar.christina@arm.com>
1397
1398 PR ld/24302
1399 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit
1400 DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW.
1401 (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW.
1402
1403 2019-04-10 Michael Forney <mforney@mforney.org>
1404
1405 PR 24427
1406 * doc/chew.c (free_words): Correctly free "push_text" strings.
1407
1408 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1409
1410 * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets.
1411
1412 2019-04-08 Alan Modra <amodra@gmail.com>
1413
1414 * configure.ac (elfxx_x86): Define and use.
1415 * configure: Regenerate.
1416
1417 2019-04-06 H.J. Lu <hongjiu.lu@intel.com>
1418
1419 * elf-linker-x86.h: New file.
1420 * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params
1421 to get x86-specific linker options.
1422 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
1423 (elf_x86_64_check_relocs): Likewise.
1424 (elf_x86_64_relocate_section): Likewise.
1425 (elf_x86_64_link_setup_gnu_properties): Likewise.
1426 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise.
1427 (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
1428 (_bfd_elf_linker_x86_set_options): New function.
1429 * elfxx-x86.h: Include "elf-linker-x86.h".
1430 (elf_x86_link_hash_table): Add params.
1431
1432 2019-04-03 Alan Modra <amodra@gmail.com>
1433
1434 * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c,
1435 * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c,
1436 * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c,
1437 * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c,
1438 * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c,
1439 * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes.
1440
1441 2019-04-02 Jim Wilson <jimw@sifive.com>
1442
1443 PR 24389
1444 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
1445 ELF header flags to after check for ELF object file. Loop through
1446 sections looking for code sections, if none, then skip ABI checks.
1447
1448 2019-03-30 Andrew Waterman <andrew@sifive.com>
1449
1450 * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for
1451 rd == X_RA case.
1452
1453 2019-03-29 Max Filippov <jcmvbkbc@gmail.com>
1454
1455 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
1456 info->export_dynamic to the conditional.
1457
1458 2019-03-28 Alan Modra <amodra@gmail.com>
1459
1460 PR 24392
1461 * configure.ac: Invoke AC_CHECK_SIZEOF(int).
1462 * configure: Regenerate.
1463 * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
1464 workaround with SIZEOF_LONG vs. SIZEOF_INT check.
1465 * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
1466 * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
1467 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
1468
1469 2019-03-21 Jim Wilson <jimw@sifive.com>
1470
1471 PR 24365
1472 * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check,
1473 verify sym non-NULL before using. Add identical check using h.
1474
1475 2019-03-21 Sudakshina Das <sudi.das@arm.com>
1476
1477 * elf-bfd.h (struct elf_backend_data): Add argument to
1478 merge_gnu_properties.
1479 * elf-properties.c (elf_merge_gnu_properties): Add argument to
1480 itself and while calling bed->merge_gnu_properties.
1481 (elf_merge_gnu_property_list): Update the calls for
1482 elf_merge_gnu_properties.
1483 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
1484 of --force-bti warning and add argument.
1485 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
1486 warning.
1487 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
1488 * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
1489 declaration.
1490
1491 2019-03-20 Sudakshina Das <sudi.das@arm.com>
1492
1493 * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define.
1494 * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare.
1495 (elf_backend_fixup_gnu_properties): Define for AArch64.
1496
1497 2019-03-18 Alan Modra <amodra@gmail.com>
1498
1499 PR 24355
1500 * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
1501 for local iplt syms with ent->plt.offset == -1. Remove ineffective
1502 attempt at writing glink stubs only once.
1503
1504 2019-03-16 Alan Modra <amodra@gmail.com>
1505
1506 PR 24337
1507 * elf.c (_bfd_elf_rela_local_sym): Revert last change.
1508 (_bfd_elf_rel_local_sym): Likewise.
1509 * elflink.c (elf_link_input_bfd): Use bfd_und_section for
1510 section of symbols with unrecognized shndx.
1511
1512 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1513
1514 PR ld/24267
1515 * coffgen.c (_bfd_coff_section_already_linked): Skip discarded
1516 section.
1517 * cofflink.c (coff_link_add_symbols): Check for symbols defined
1518 in discarded section.
1519
1520 2019-03-15 Alan Modra <amodra@gmail.com>
1521
1522 PR 24339
1523 * elflink.c (elf_link_add_object_symbols): Bail out on a local
1524 symbol after globals if elf_bad_symtab is not set.
1525
1526 2019-03-15 Alan Modra <amodra@gmail.com>
1527
1528 PR 24337
1529 * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec.
1530 (_bfd_elf_rel_local_sym): Likewise.
1531
1532 2019-03-15 Alan Modra <amodra@gmail.com>
1533
1534 PR 24336
1535 * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed
1536 object files with sh_size not a multiple of sh_entsize.
1537
1538 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1539
1540 PR ld/24338
1541 * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt
1542 input with bad relocation.
1543
1544 22019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1545
1546 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
1547
1548 2019-03-14 Nick Clifton <nickc@redhat.com>
1549
1550 PR 24334
1551 * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field.
1552 (save_section_vma): Initialise field to the number of entries in
1553 the sec_vma table.
1554 (section_vma_same): Check that the number of entries in the
1555 sec_vma table matches the number of sections in the bfd.
1556
1557 2019-03-14 Nick Clifton <nickc@redhat.com>
1558
1559 PR 24333
1560 * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL
1561 section owner pointer when adding the default symbol.
1562
1563 2019-03-14 Nick Clifton <nickc@redhat.com>
1564
1565 PR 24332
1566 * elflink.c (elf_link_add_object_symbols): Add new local variable
1567 extversym_end. Initialise it to point to the end of the version
1568 symbol table, if present. Check it when initialising and updating
1569 the ever pointer.
1570
1571 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1572
1573 * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New.
1574 (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New.
1575 (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs.
1576 (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC
1577 and PLT_PAC_PLT.
1578 (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC.
1579 (get_plt_type): Add case for DT_AARCH64_PAC_PLT.
1580 (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC.
1581
1582 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1583 Szabolcs Nagy <szabolcs.nagy@arm.com>
1584
1585 * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New.
1586 (aarch64_bti_pac_info): New.
1587 (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument.
1588 (bfd_elf32_aarch64_set_options): Likewise.
1589 * bfd-in2.h: Regenerate
1590 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New.
1591 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New.
1592 (elfNN_aarch64_small_plt0_bti_entry): New.
1593 (elfNN_aarch64_small_plt_bti_entry): New.
1594 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New.
1595 (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields.
1596 (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and
1597 tlsdesc_plt_entry_size fields.
1598 (elfNN_aarch64_link_hash_table_create): Initialise the new fields.
1599 (setup_plt_values): New helper function.
1600 (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and
1601 bti enable type.
1602 (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of
1603 fixed macros.
1604 (elfNN_aarch64_size_dynamic_sections): Likewise and add checks.
1605 (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers
1606 to plt stubs instead of fixed ones and update filling them according
1607 to the need for bti.
1608 (elfNN_aarch64_init_small_plt0_entry): Likewise.
1609 (elfNN_aarch64_finish_dynamic_sections): Likewise.
1610 (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New.
1611 (elfNN_aarch64_plt_sym_val): Update size accordingly.
1612 (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE
1613 is set.
1614 (bfd_elfNN_get_synthetic_symtab): Define.
1615 (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti
1616 and mising BTI NOTE SECTION.
1617
1618
1619 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1620
1621 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude
1622 linker created inputs from merge.
1623 * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for
1624 GNU_PROPERTY_AARCH64_FEATURE_1_AND properties.
1625 (elfNN_aarch64_link_setup_gnu_properties): New.
1626 (elfNN_aarch64_merge_gnu_properties): New.
1627 (elf_backend_setup_gnu_properties): Define for AArch64.
1628 (elf_backend_merge_gnu_properties): Likewise.
1629 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define.
1630 (_bfd_aarch64_elf_parse_gnu_properties): Define.
1631 (_bfd_aarch64_elf_merge_gnu_properties): Define.
1632 * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare.
1633 (_bfd_aarch64_elf_parse_gnu_properties): Declare.
1634 (_bfd_aarch64_elf_merge_gnu_properties): Declare.
1635 (elf_backend_parse_gnu_properties): Define for AArch64.
1636
1637 2019-03-13 H.J. Lu <hongjiu.lu@intel.com>
1638
1639 PR ld/24322
1640 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly
1641 merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK].
1642
1643 2019-03-12 Alan Modra <amodra@gmail.com>
1644
1645 * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add
1646 nmemb parameter. Use bfd_alloc2.
1647 (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls.
1648 Delete assertion.
1649 (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2.
1650 (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls.
1651 * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation
1652 doesn't overflow.
1653 * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix.
1654 (assign_section_numbers): Style fix.
1655 (swap_out_syms): Use bfd_malloc2.
1656 (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't
1657 overflow.
1658 (_bfd_elf_make_empty_symbol): Style fix.
1659 (elfobj_grok_stapsdt_note_1): Formatting.
1660 * elfcode.h (elf_object_p): Use bfd_alloc2.
1661 (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise.
1662 (elf_slurp_symbol_table): Use bfd_zalloc2.
1663 (elf_slurp_reloc_table): Use bfd_alloc2.
1664 (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2.
1665 * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure
1666 size calculation doesn't overflow.
1667 (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise.
1668 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
1669 * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version.
1670
1671 2019-03-08 Alan Modra <amodra@gmail.com>
1672
1673 PR 24311
1674 * merge.c (merge_strings): Return secinfo. Don't pad section
1675 to alignment here.
1676 (_bfd_merge_sections): Pad section to alignment here, if input
1677 sections contributing to merged output all pad to alignment.
1678 Formatting.
1679
1680 2019-03-06 Nick Clifton <nickc@redhat.com>
1681
1682 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
1683 table pointer.
1684 * coffgen.c (coff_find_nearest_line_with_names): Do not call
1685 _bfd_dwarf2_find_symbol_bias if there is no symbol table available.
1686
1687 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
1688
1689 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
1690 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1691
1692 PR 20113
1693 * elf32-s390.c (allocate_dynrelocs): Update comment.
1694
1695 2019-02-28 Tamar Christina <tamar.christina@arm.com>
1696
1697 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
1698
1699 2019-02-28 Nick Clifton <nickc@redhat.com>
1700
1701 PR 24273
1702 * elf.c (bfd_elf_string_from_elf_section): Check for a string
1703 section that is not NUL terminated.
1704
1705 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1706
1707 PR ld/24276
1708 * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
1709 by linker when checking copy reloc on protected symbol.
1710
1711 2019-02-24 Alan Modra <amodra@gmail.com>
1712
1713 PR 24144
1714 * pdp11.c (set_section_contents): Revert 2015-02-24 change.
1715
1716 2019-02-20 Eric Tsai <erictsai@cadence.com>
1717
1718 * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
1719 sections between the call site and call destination and adjust
1720 call distance by the largest alignment.
1721
1722 2019-02-20 Alan Hayward <alan.hayward@arm.com>
1723
1724 * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
1725 * elf.c (elfcore_grok_aarch_pauth): New function.
1726 (elfcore_grok_note): Check for NT_ARM_PAC_MASK.
1727 (elfcore_write_aarch_pauth): New function.
1728 (elfcore_write_register_note): Check for AArch64 pauth section.
1729
1730 2019-02-20 Alan Modra <amodra@gmail.com>
1731
1732 PR 24225
1733 * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
1734 return value.
1735
1736 2019-02-20 Michael Roitzsch <reactorcontrol@icloud.com>
1737
1738 * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
1739 Darwin hosts, not just or1k.
1740 * configure: Regenerate.
1741
1742 2019-02-20 Alan Modra <amodra@gmail.com>
1743
1744 PR 24236
1745 * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
1746 sentinel NUL to string buffer nearer to loop where it is used.
1747 Don't go past sentinel when scanning strings, and don't write
1748 NUL again.
1749 * archive.c (do_slurp_coff_armap): Simplify string handling to
1750 archive64.c style.
1751
1752 2019-02-19 Alan Modra <amodra@gmail.com>
1753
1754 PR 24235
1755 * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
1756 attempting to prevent read past end of section.
1757
1758 2019-02-18 Alan Modra <amodra@gmail.com>
1759
1760 PR 24225
1761 * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
1762 PRIx64 to generate warning messages. Print local sym names too.
1763
1764 2019-02-09 Vineet Gupta <vgupta@synopsys.com>
1765
1766 * elf32-arc (INIT_SYM_STRING): Delete.
1767 (FINI_SYM_STRING): Likewise.
1768 (init_str): Likewise.
1769 (fini_str): Likewise.
1770
1771 2019-02-08 Alan Modra <amodra@gmail.com>
1772
1773 * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
1774 for bss-plt" warning to make it an error.
1775
1776 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1777
1778 PR ld/18841
1779 * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
1780 reloc_class_ifunc for ifunc symbols.
1781 * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
1782
1783 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1784
1785 * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
1786 <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
1787
1788 2019-02-07 Nick Clifton <nickc@redhat.com>
1789
1790 * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
1791 into the definitely obsolete list.
1792
1793 2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
1794
1795 PR ld/24151
1796 * elf64-x86-64.c (elf_x86_64_need_pic): Check
1797 SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
1798 (elf_x86_64_relocate_section): Move PIC check for PC-relative
1799 relocations to ...
1800 (elf_x86_64_check_relocs): Here.
1801 (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
1802 to check if a symbol is defined in a non-shared object.
1803 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
1804
1805 2019-01-21 Sergio Durigan Junior <sergiodj@redhat.com>
1806
1807 * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
1808 of 'labs' (and fix GCC warning).
1809
1810 2019-01-25 Nick Clifton <nickc@redhat.com>
1811
1812 * po/ru.po: Updated Russian translation.
1813
1814 2019-01-23 Nick Clifton <nickc@redhat.com>
1815
1816 * po/fr.po: Updated French translation.
1817
1818 2019-01-21 Nick Clifton <nickc@redhat.com>
1819
1820 * po/pt.po: Updated Portuguese translation.
1821 * po/uk.po: Updated Ukranian translation.
1822
1823 2019-01-21 Yuri Chornoivan <yurchor@ukr.net>
1824
1825 PR 24108
1826 * elf32-nds32.c (nds32_relocate_section): Add space between words
1827 in error message.
1828 * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
1829 error message.
1830 (riscv_i_or_e_p): Likewise.
1831 (riscv_merge_arch_attr_info): Likewise.
1832
1833 2019-01-19 Nick Clifton <nickc@redhat.com>
1834
1835 * version.m4: Reset to 2.32.51
1836 * configure: Regenerate.
1837 * po/bfd.pot: Regenerate.
1838
1839 2018-06-24 Nick Clifton <nickc@redhat.com>
1840
1841 2.32 branch created.
1842
1843 2019-01-16 Kito Cheng <kito@andestech.com>
1844
1845 * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
1846 for OBJ_ATTR_PROC.
1847
1848 2019-01-16 Kito Cheng <kito@andestech.com>
1849 Nelson Chu <nelson@andestech.com>
1850
1851 * elfnn-riscv.c (in_subsets): New.
1852 (out_subsets): Likewise.
1853 (merged_subsets): Likewise.
1854 (riscv_std_ext_p): Likewise.
1855 (riscv_non_std_ext_p): Likewise.
1856 (riscv_std_sv_ext_p): Likewise.
1857 (riscv_non_std_sv_ext_p): Likewise.
1858 (riscv_version_mismatch): Likewise.
1859 (riscv_i_or_e_p): Likewise.
1860 (riscv_merge_std_ext): Likewise.
1861 (riscv_merge_non_std_and_sv_ext): Likewise.
1862 (riscv_merge_arch_attr_info): Likewise.
1863 (riscv_merge_attributes): Likewise.
1864 (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
1865
1866 * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
1867 (elf_backend_obj_attrs_vendor): Define.
1868 (elf_backend_obj_attrs_section_type): Likewise.
1869 (elf_backend_obj_attrs_section): Likewise.
1870 (elf_backend_obj_attrs_arg_type): Define as
1871 riscv_elf_obj_attrs_arg_type.
1872 * elfxx-riscv.c (riscv_estimate_digit): New.
1873 (riscv_estimate_arch_strlen1): Likewise.
1874 (riscv_estimate_arch_strlen): Likewise.
1875 (riscv_arch_str1): Likewise.
1876 (riscv_arch_str): Likewise.
1877 * elfxx-riscv.h (riscv_arch_str): Declare.
1878
1879 2019-01-14 John Darrington <john@darrington.wattle.id.au>
1880
1881 * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
1882 * libbfd.h: regen.
1883 * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
1884 source field. (md_apply_fix): Apply final fix
1885 to BFD_RELOC_S12Z_OPR.
1886 * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
1887
1888 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1889
1890 PR 20113
1891 * elf32-s390.c (allocate_dynrelocs): Update comment.
1892
1893 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1894
1895 * warning.m4: Adjust egrep pattern for non-GNU compilers.
1896 * configure: Regenerate.
1897
1898 2019-01-08 Alan Modra <amodra@gmail.com>
1899
1900 PR 23699
1901 PR 24065
1902 * ihex.c (ihex_write_object_contents): Properly check 32-bit
1903 address range.
1904
1905 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1906
1907 * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
1908 * bfd/bfd-in2.h: Regenerate.
1909 * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
1910 * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
1911
1912 2019-01-04 Lifang Xia <lifang_xia@c-sky.com>
1913
1914 * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
1915 default target, little endian target is more suitable.
1916
1917 2019-01-04 Alan Modra <amodra@gmail.com>
1918
1919 PR 24061
1920 PR 21786
1921 * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
1922 adjust all callers.
1923 (EQ_VALUE_IN_FIELD): Likewise.
1924 * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
1925
1926 2019-01-01 Alan Modra <amodra@gmail.com>
1927
1928 Update year range in copyright notice of all files.
1929
1930 For older changes see ChangeLog-2018
1931 \f
1932 Copyright (C) 2019 Free Software Foundation, Inc.
1933
1934 Copying and distribution of this file, with or without modification,
1935 are permitted in any medium without royalty provided the copyright
1936 notice and this notice are preserved.
1937
1938 Local Variables:
1939 mode: change-log
1940 left-margin: 8
1941 fill-column: 74
1942 version-control: never
1943 End:
This page took 0.074211 seconds and 5 git commands to generate.