Ajdust lto-3r and lto-5r tests for powerpc64
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
c7c860d2
YS
12019-07-25 YunQiang Su <syq@debian.org>
2
3 PR 24832
4 * elfxx-mips.c (mips_set_isa_flags): Default to MIPS 3 for 64-bit
5 mips inputs.
6
95967518
CZ
72019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
8
9 * elf32-arc.c (bfd_get_32_me): Add a small description, fix
10 formating.
11 (reloc_type_to_name): Fix formating.
12 (arc_elf_object_p): Likewise.
13 (debug_arc_reloc): Likewise.
14 (arc_do_relocation): Likewise.
15
ef551643
CZ
162019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
17
18 * elf32-arc.c (bfd_get_32_me): New function.
19 (bfd_put_32_me): Likewise.
20 (arc_elf_relax_section): Likewise.
21 (bfd_elf32_bfd_relax_section): Define.
22
cc364be6
AM
232019-07-24 Alan Modra <amodra@gmail.com>
24
25 * elf-bfd.h (struct elf_backend_data): Return bfd_boolean from
26 elf_backend_final_write_processing, don't pass linker arg.
27 (_bfd_elf_final_write_processing): Update prototype.
28 * elf.c (_bfd_elf_write_object_contents): Adjust call.
29 (_bfd_elf_final_write_processing): Return error on incompatible
30 OSABI and has_gnu_osabi. Remove linker arg.
31 * elf-nacl.h (nacl_final_write_processing): Update prototype.
32 * elf-vxworks.h (elf_vxworks_final_write_processing): Likewise.
33 * elfxx-mips.h (_bfd_mips_final_write_processing): Likewise.
34 (_bfd_mips_elf_final_write_processing): Likewise.
35 * elf-hppa.h (elf_hppa_final_write_processing): Return status
36 and remove linker arg.
37 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
38 * elf-nacl.c (nacl_final_write_processing): Likewise.
39 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
40 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
41 * elf32-arm.c (arm_final_write_processing): Likewise.
42 (elf32_arm_final_write_processing): Likewise.
43 (elf32_arm_nacl_final_write_processing): Likewise.
44 (elf32_arm_vxworks_final_write_processing): Likewise.
45 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
46 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
47 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
48 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
49 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
50 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
51 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
52 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
53 * elf32-mips.c (mips_vxworks_final_write_processing): Likewise.
54 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
55 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
56 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
57 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
58 * elf32-ppc.c (ppc_final_write_processing): Likewise.
59 (ppc_elf_final_write_processing): Likewise.
60 (ppc_elf_vxworks_final_write_processing): Likewise.
61 * elf32-sparc.c (sparc_final_write_processing): Likewise.
62 (elf32_sparc_final_write_processing): Likewise.
63 (elf32_sparc_vxworks_final_write_processing): Likewise.
64 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
65 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
66 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
67 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
68 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
69 * elfxx-mips.c (_bfd_mips_final_write_processing): Likewise.
70 (_bfd_mips_elf_final_write_processing): Likewise.
71
c5e20471
AM
722019-07-24 Alan Modra <amodra@gmail.com>
73
74 * elf-vxworks.c (elf_vxworks_final_write_processing): Don't return
75 early.
76 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
77 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
78
7613ca5e
AM
792019-07-24 Alan Modra <amodra@gmail.com>
80
81 * elf32-visium.c (visium_elf_post_process_headers): Don't set
82 EI_OSABI header byte here.
83 (ELF_OSABI): Define.
84
df3a023b
AM
852019-07-23 Alan Modra <amodra@gmail.com>
86
87 * elf-bfd.h (enum elf_gnu_osabi): Add elf_gnu_osabi_mbind.
88 * elf.c (_bfd_elf_make_section_from_shdr): Set elf_gnu_osabi_mbind.
89 (get_program_header_size): Formatting. Only test SH_GNU_MBIND
90 when elf_gnu_osabi_mbind is set.
91 (_bfd_elf_map_sections_to_segments): Likewise.
92 (_bfd_elf_init_private_section_data): Likewise.
93 (_bfd_elf_final_write_processing): Update comment.
94 * elf64-hppa.c (elf64_hppa_special_sections): Move .tbss entry.
95 (elf_backend_special_sections): Define without .tbss for linux.
96
06f44071
AM
972019-07-23 Alan Modra <amodra@gmail.com>
98
99 * elf-bfd.h (enum elf_gnu_osabi): Rename from elf_gnu_symbols.
100 Remove none, any, all enums.
101 (struct elf_obj_tdata): Rename has_gnu_symbols field to has_gnu_osabi.
102 (_bfd_elf_final_write_processing): Declare.
103 * elf.c (_bfd_elf_write_object_contents): Unconditionally call
104 elf_backend_final_write_processing.
105 (_bfd_elf_post_process_headers): Move body of function to..
106 (_bfd_elf_final_write_processing): ..here, but set EI_OSABI byte
107 only when not already set. Adjust for rename.
108 * elfxx-target.h (elf_backend_final_write_processing): Default to
109 _bfd_elf_final_write_processing.
110 * elf-hppa.h (elf_hppa_final_write_processing): Call
111 _bfd_elf_final_write_processing.
112 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
113 * elf-nacl.c (nacl_final_write_processing): Likewise.
114 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
115 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
116 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
117 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
118 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
119 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
120 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
121 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
122 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
123 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
124 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
125 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
126 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
127 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
128 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
129 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
130 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
131 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
132 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
133 * elf32-arm.c (arm_final_write_processing): Split out from..
134 (elf32_arm_final_write_processing): ..here. Call
135 _bfd_elf_final_write_processing.
136 (elf32_arm_nacl_final_write_processing): Adjust.
137 * elfxx-mips.c (_bfd_mips_final_write_processing): Split out from..
138 (_bfd_mips_elf_final_write_processing): ..here. Call
139 _bfd_elf_final_write_processing.
140 * elfxx-mips.h (_bfd_mips_final_write_processing): Declare.
141 * elf32-mips.c (mips_vxworks_final_write_processing): Adjust.
142 * elf32-ppc.c (ppc_final_write_processing): Split out from..
143 (ppc_elf_final_write_processing): ..here. Call
144 _bfd_elf_final_write_processing.
145 (ppc_elf_vxworks_final_write_processing): Adjust.
146 * elf32-sparc.c (sparc_final_write_processing): Split out from..
147 (elf32_sparc_final_write_processing): ..here. Call
148 _bfd_elf_final_write_processing.
149 (elf32_sparc_vxworks_final_write_processing): Adjust.
150 * elf32-d10v.c (elf_backend_final_write_processing): Don't define.
151 * elf32-d30v.c (elf_backend_final_write_processing): Don't define.
152 * elf32-m68hc11.c (elf_backend_final_write_processing): Don't define.
153 * elf32-m68hc12.c (elf_backend_final_write_processing): Don't define.
154 * elf32-s12z.c (elf_backend_final_write_processing): Don't define.
155 * elf32-i386.c (elf_i386_check_relocs): Don't set has_gnu_symbols.
156 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
157 * elflink.c (elf_link_add_object_symbols): Likewise.
158 (elf_link_output_symstrtab): Set has_gnu_osabi for symbols here
159 instead.
160
1dd1bc4d
OM
1612019-07-23 Omar Majid <omajid@redhat.com>
162
163 * coffcode.h (coff_set_arch_mach_hook): Handle I386_APPLE_MAGIC,
164 I386_FREEBSD_MAGIC, I386_LINUX_MAGIC, I386_NETBSD_MAGIC,
165 AMD64_APPLE_MAGIC, AMD64_FREEBSD_MAGIC, AMD64_LINUX_MAGIC,
166 AMD64_NETBSD_MAGIC.
167 * peXXigen.c: Add comment about source of .NET magic numbers.
168
c213164a
AM
1692019-07-19 Alan Modra <amodra@gmail.com>
170
171 * reloc.c (BFD_RELOC_PPC64_TPREL34, BFD_RELOC_PPC64_DTPREL34),
172 (BFD_RELOC_PPC64_GOT_TLSGD34, BFD_RELOC_PPC64_GOT_TLSLD34),
173 (BFD_RELOC_PPC64_GOT_TPREL34, BFD_RELOC_PPC64_GOT_DTPREL34),
174 (BFD_RELOC_PPC64_TLS_PCREL): New pcrel tls relocs.
175 * elf64-ppc.c (ppc64_elf_howto_raw): Add howtos for pcrel tls relocs.
176 (ppc64_elf_reloc_type_lookup): Translate pcrel tls relocs.
177 (must_be_dyn_reloc, dec_dynrel_count): Add R_PPC64_TPREL64.
178 (ppc64_elf_check_relocs): Support pcrel tls relocs.
179 (ppc64_elf_tls_optimize, ppc64_elf_relocate_section): Likewise.
180 * bfd-in2.h: Regenerate.
181 * libbfd.h: Regenerate.
182
71c4e95a
AM
1832019-07-18 Alan Modra <amodra@gmail.com>
184
185 * elf64-ppc.c (ppc64_elf_relocate_section): Don't bother selecting
186 a TLS section symbol for edited relocs. Tighten TLS symbol/reloc
187 match test.
188
46e9995a
AM
1892019-07-18 Alan Modra <amodra@gmail.com>
190
191 * elf64-ppc.c (TLS_EXPLICIT): Define as 256.
192 (ppc64_elf_check_relocs): Don't store TLS_EXPLICIT even if char
193 is more than 8 bits.
194 (ppc64_elf_tls_optimize): Likewise. Make tls_set, tls_clear, and
195 tls_type vars unsigned int.
196 (ppc64_elf_relocate_section): Use r_type rather than TLS_EXPLICIT
197 to select r_type edit.
198
b00a0a86
AM
1992019-07-18 Alan Modra <amodra@gmail.com>
200
201 * elf32-ppc.c (TLS_GDIE): Rename from TLS_TPRELGD throughout file.
202 Correct comment.
203 * elf64-ppc.c (TLS_GDIE): Likewise.
204
0b147428
AM
2052019-07-18 Alan Modra <amodra@gmail.com>
206
207 * elf64-ppc.c (ppc64_elf_tls_optimize): Correct test for allowed
208 range of tp-relative offsets.
209
5b9d7a9a
AM
2102019-07-15 Alan Modra <amodra@gmail.com>
211
212 * elflink.c (_bfd_elf_fix_symbol_flags): If the def for an
213 alias is no longer bfd_link_hash_defined, clear the alias.
214
f26a3287
AM
2152019-07-13 Alan Modra <amodra@gmail.com>
216
217 * elflink.c (_bfd_elf_omit_section_dynsym_default): Don't keep
218 tls_sec.
219 (_bfd_elf_init_1_index_section): Prefer not using TLS sections.
220 (_bfd_elf_init_2_index_sections): Likewise.
221 * elf64-ppc.c (ppc64_elf_relocate_section): When emitting dynamic
222 relocations for local TLS symbols, use STN_UNDEF as the relocation
223 symbol.
224 * elf32-ppc.c (ppc_elf_relocate_section): Likewise, and don't
225 leave TLS symbol value in the addend.
226
62a47958
AM
2272019-07-08 Alan Modra <amodra@gmail.com>
228
229 PR 24785
230 * elf32-ppc.c (_bfd_elf_ppc_set_arch): Sanity check .PPC.EMB.apuinfo
231 size before reading first word.
232
1faa385f
NC
2332019-07-02 Nick Clifton <nickc@redhat.com>
234
235 PR 24717
236 * elf.c (is_debuginfo_file): New function.
237 (assign_file_positions_for_non_load_sections): Do not warn about
238 allocated sections outside of loadable segments if they are found
239 in a debuginfo file.
240 * elf-bfd.h (is_debuginfo_file): Prototype.
241
125f83f6
NC
2422019-07-02 Nick Clifton <nickc@redhat.com>
243
244 PR 24753
245 * compress.c (bfd_get_full_section_contents): Do not complain
246 about linker created sections that are larger than the file size.
247
4d83e8d9
CL
2482019-07-02 Christophe Lyon <christophe.lyon@linaro.org>
249
250 * bfd/elf32-arm.c (CMSE_STUB_NAME): New define.
251 (elf32_arm_get_stub_entry): Do not try to emit long-branch stubs
252 for CMSE stubs.
253 (arm_dedicated_stub_output_section_name): Use CMSE_STUB_NAME.
254
bb32413f
SP
2552019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
256
257 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Mark debug
258 sections when .text section contain secure entry functions
259 is marked.
260
539300fb
NC
2612019-07-01 Nick Clifton <nickc@redhat.com>
262
263 PR 23839
264 * elf32-arm.c (elf32_arm_update_relocs): Do not include the
265 section VMA in the offset used to update exidx relocs.
266
7e56c51c
NC
2672019-06-28 Nick Clifton <nickc@redhat.com>
268
269 PR 24708
270 * elf.c (_bfd_elf_slurp_version_tables): Check for an excessively
271 large version reference section.
272 * compress.c (bfd_get_full_section_contents): Check for an
273 uncompressed section whose size is larger than the file size.
274
999d6dff
AM
2752019-06-28 Alan Modra <amodra@gmail.com>
276
277 * format.c (bfd_check_format_matches): Don't match plugin target
278 if another target matches. Expand comment.
279 * targets.c (_bfd_target_vector): Move plugin_vec after all other
280 non-corefile targets, outside !SELECT_VECS.
281 * config.bfd: Don't handle targ=plugin here.
282 * configure.ac: Don't add plugin to enable_targets or handle in
283 target loop setting selvecs and other target vars.
284 * configure: Regenerate.
285
a68aa5d3
NC
2862019-06-26 Nick Clifton <nickc@redhat.com>
287
288 PR 24703
289 * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add error
290 messages for failures.
291 * mach-o.c (bfd_mach_o_canonicalize_relocs): Set an bfd error code
292 if returning an error value.
293
ab9f654c
JB
2942019-06-25 Jan Beulich <jbeulich@suse.com>
295
296 * elf-properties.c (elf_find_and_remove_property): Rename last
297 parameter. Mention it in comment.
298
04b865dc
JW
2992019-06-24 Ilia Diachkov <ilia.diachkov@optimitech.com>
300
301 * elfnn-riscv.c (_bfd_riscv_relax_lui): Delete early exit when
302 SEC_MERGE or SEC_CODE flags are set.
303 (_bfd_riscv_relax_section): New local symtype. Set sym_sec and
304 symtype consistently. Don't include sec_addr (sym_sec) in symval.
305 Add check for SEC_INFO_TYPE_MERGE and call _bfd_merged_section_offset.
306 Add sec_addr (sym_sec) after handling merge sections.
307
f93ab3a0
L
3082019-06-24 H.J. Lu <hongjiu.lu@intel.com>
309
310 PR ld/24721
311 * elf-properties.c (elf_merge_gnu_property_list): Remove the
312 property after reporting property removal.
313
bb22a418
AM
3142019-06-23 Alan Modra <amodra@gmail.com>
315
316 PR 24704
317 * elf64-ppc.c (R_PPC64_GOT16_DS): Don't set has_gotrel.
318 (ppc64_elf_edit_toc): Don't remove R_PPC64_GOT16_DS got entries.
319 Reduce range of offsets allowed for other GOT relocs.
320
14b2a8e4
AM
3212019-06-23 Alan Modra <amodra@gmail.com>
322
323 PR 24689
324 * elfcode.h (elf_object_p): Warning fix.
325
890f750a
AM
3262019-06-21 Alan Modra <amodra@gmail.com>
327
328 PR 24689
329 * elfcode.h (elf_object_p): Check type of e_shstrndx section.
330
6f5601c4
AM
3312019-06-19 Alan Modra <amodra@gmail.com>
332
333 PR 24697
334 * elf32-ppc.c (ppc_elf_relocate_section): Don't read insn for
335 R_PPC_EMB_RELSDA. Mask low bit of R_PPC_EMB_SDA21 r_offset.
336
4a4e7361
AM
3372019-06-19 Alan Modra <amodra@gmail.com>
338
339 * elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for
340 functions that require r2 valid to use local entry.
341 (ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise.
342
39c05d94
SN
3432019-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
344
345 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_dynrelocs): Remove.
346 (elfNN_aarch64_size_dynamic_sections): Remove loc_hash_table traversal
347 with elfNN_aarch64_allocate_local_dynrelocs.
348
e30d1fa1
SN
3492019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
350
351 * elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32.
352
3a3a077c
AM
3532019-06-14 Alan Modra <amodra@gmail.com>
354
355 * Makefile.in: Regenerate.
356 * configure: Regenerate.
357
d4b87b1e
AM
3582019-06-14 Alan Modra <amodra@gmail.com>
359
360 * elf64-ppc.c: Fix comments involving paddi.
361
62e0492f
AL
3622019-06-12 Adam Lackorzymski <adam@os.inf.tu-dresden.de>
363
364 PR 24643
365 * elf32-arm.c (arm_elf_find_function): Fail if the symol table is
366 absent, or the bfd is not in the ELF formart.
367 * elfnn-aarch64.c (aarch64_elf_find_function): Likewise.
368
58e07198
CZ
3692019-06-10 Christos Zoulas <christos@zoulas.com>
370
371 PR 24650
372 * elf.c (elfcore_make_auxv_note_section): New function.
373 (elfcore_grok_note): Use it.
374 (elfcore_grok_freebsd_note): Likewise.
375 (elfcore_grok_openbsd_note): Likewise.
376 (elfcore_grok_netbsd_note): Likewise. Plus add support for
377 NT_NETBSDCORE_AUXV notes.
378
237df8fe
SD
3792019-06-06 Sudakshina Das <sudi.das@arm.com>
380
381 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Set
382 alignment of the new gnu property section.
383
8bf6d176
SD
3842019-06-06 Sudakshina Das <sudi.das@arm.com>
385
386 * bfd-in.h: Change comment.
387 * bfd-in2.h: Regenerate.
388 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update warning.
389 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties):
390 Likwise.
391
1e129bbe
FS
3922019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
393
394 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>:
395 Remove overflow check.
396
0f4a61b4
AM
3972019-05-28 Alan Modra <amodra@gmail.com>
398
399 PR 24596
400 * cofflink.c (coff_link_check_archive_element): Don't assume
401 element is a coff object file after calling add_archive_element.
402
94667ab1
AM
4032019-05-28 Alan Modra <amodra@gmail.com>
404
405 PR 24596
406 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't
407 attempt to set sh_entsize for excluded PLT section.
408
28fbeab8
AM
4092019-05-28 Alan Modra <amodra@gmail.com>
410
411 PR 24596
412 * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt
413 to emit R_ALPHA_GOTTPREL in PIEs, for which no space is
414 allocated in alpha_dynamic_entries_for_reloc.
415
a0f6fd21
AM
4162019-05-28 Alan Modra <amodra@gmail.com>
417
418 PR 24596
419 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault
420 on NULL output_section.
421 * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf.
422
c83004d5
AM
4232019-05-28 Alan Modra <amodra@gmail.com>
424
425 PR 24596
426 * elf32-m68k.c (elf_m68k_get_got_entry): Don't create a new
427 entry when MUST_FIND. Abort when MUST_FIND not found.
428 (elf_m68k_get_bfd2got_entry): Likewise.
429 (elf_m68k_relocate_section): Remove now useless assert.
430
586338b8
AM
4312019-05-28 Alan Modra <amodra@gmail.com>
432
433 PR 24596
434 * elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd
435 from bfd_link_info, not an output section owner.
436 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise.
437 (elf_hppa_final_link_relocate): Likewise.
438
a7b34aba
AM
4392019-05-28 Alan Modra <amodra@gmail.com>
440
441 PR 24596
442 * aout-tic30.c (MY_bfd_final_link): Don't segfault on missing
443 create_object_symbols_section, obj_textsec, obj_datasec or
444 obj_bsssec. Fix other errors in placement.
445 * config.bfd: Obsolete tic30-aout.
446
0eb32b6e
AM
4472019-05-28 Alan Modra <amodra@gmail.com>
448
449 PR 24596
450 * dwarf2.c (save_section_vma, section_vma_same): Check for NULL
451 end of section list as well as section_count.
452 * xcofflink.c (xcoff_link_add_symbols): Fix temporarily changed
453 section list before returning error.
454
ce5aecf8
AM
4552019-05-27 Alan Modra <amodra@gmail.com>
456
457 * elf.c (bfd_elf_set_group_contents): Exit on zero size section.
458
3d7d6a6f
AM
4592019-05-27 Alan Modra <amodra@gmail.com>
460
461 PR 24596
462 * linker.c (_bfd_generic_link_output_symbols): Heed BSF_KEEP.
463
823710d5
SN
4642019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
465
466 * elfnn-aarch64.c (elfNN_aarch64_merge_symbol_attribute): New function.
467 (struct elf_aarch64_link_hash_table): Add variant_pcs member.
468 (elfNN_aarch64_allocate_dynrelocs): Update variant_pcs.
469 (elfNN_aarch64_size_dynamic_sections): Add DT_AARCH64_VARIANT_PCS.
470 (elf_backend_merge_symbol_attribute): Define.
471
405b5bd8
AM
4722019-05-24 Alan Modra <amodra@gmail.com>
473
474 * po/SRC-POTFILES.in: Regenerate.
475
04bdff6a
AM
4762019-05-24 Alan Modra <amodra@gmail.com>
477
478 * elf64-ppc.c: Comment on powerxx _notoc stub variants.
479 (LI_R11_0, LIS_R11, ORI_R11_R11_0, SLDI_R11_R11_34): Define.
480 (PADDI_R12_PC, PLD_R12_PC, D34, HA34): Define.
481 (struct ppc_link_hash_table): Add powerxx_stubs.
482 (ppc64_elf_check_relocs): Set powerxx_stubs.
483 (build_powerxx_offset, size_powerxx_offset),
484 (num_relocs_for_powerxx_offset),
485 (emit_relocs_for_powerxx_offset): New functions.
486 (plt_stub_size): Size powerxx stubs.
487 (ppc_build_one_stub): Emit powerxx stubs.
488 (ppc_size_one_stub): Size powerxx stubs. Omit .eh_frame for
489 powerxx stubs.
490
4a421c53
AM
4912019-05-24 Alan Modra <amodra@gmail.com>
492
493 * elf64-ppc.c (ppc64_elf_check_relocs): Set has_gotrel for
494 R_PPC64_GOT_PCREL34.
495 (xlate_pcrel_opt): New function.
496 (ppc64_elf_edit_toc): Handle R_PPC64_GOT_PCREL34.
497 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
498 for R_PPC64_GOT_PCREL34. Implement R_PPC64_PCREL_OPT optimisation.
499
5663e321
AM
5002019-05-24 Alan Modra <amodra@gmail.com>
501
502 * reloc.c (BFD_RELOC_PPC64_D34, BFD_RELOC_PPC64_D34_LO),
503 (BFD_RELOC_PPC64_D34_HI30, BFD_RELOC_PPC64_D34_HA30),
504 (BFD_RELOC_PPC64_PCREL34, BFD_RELOC_PPC64_GOT_PCREL34),
505 (BFD_RELOC_PPC64_PLT_PCREL34),
506 (BFD_RELOC_PPC64_ADDR16_HIGHER34, BFD_RELOC_PPC64_ADDR16_HIGHERA34),
507 (BFD_RELOC_PPC64_ADDR16_HIGHEST34, BFD_RELOC_PPC64_ADDR16_HIGHESTA34),
508 (BFD_RELOC_PPC64_REL16_HIGHER34, BFD_RELOC_PPC64_REL16_HIGHERA34),
509 (BFD_RELOC_PPC64_REL16_HIGHEST34, BFD_RELOC_PPC64_REL16_HIGHESTA34),
510 (BFD_RELOC_PPC64_D28, BFD_RELOC_PPC64_PCREL28): New reloc enums.
511 * elf64-ppc.c (PNOP): Define.
512 (ppc64_elf_howto_raw): Add reloc howtos for new relocations.
513 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc numbers.
514 (ppc64_elf_ha_reloc): Adjust addend for highera34 and highesta34
515 relocs.
516 (ppc64_elf_prefix_reloc): New function.
517 (struct ppc_link_hash_table): Add notoc_plt.
518 (is_branch_reloc): Add R_PPC64_PLTCALL_NOTOC.
519 (is_plt_seq_reloc): Add R_PPC64_PLT_PCREL34,
520 R_PPC64_PLT_PCREL34_NOTOC, and R_PPC64_PLTSEQ_NOTOC.
521 (ppc64_elf_check_relocs): Handle pcrel got and plt relocs. Set
522 has_pltcall for section on seeing R_PPC64_PLTCALL_NOTOC. Handle
523 possible need for dynamic relocs on non-pcrel powerxx relocs.
524 (dec_dynrel_count): Handle non-pcrel powerxx relocs.
525 (ppc64_elf_inline_plt): Handle R_PPC64_PLTCALL_NOTOC.
526 (toc_adjusting_stub_needed): Likewise.
527 (ppc64_elf_tls_optimize): Handle R_PPC64_PLTSEQ_NOTOC.
528 (ppc64_elf_relocate_section): Handle new powerxx relocs.
529 * bfd-in2.h: Regenerate.
530 * libbfd.h: Regenerate.
531
fd0de36e
JM
5322019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
533
45d5293f
JM
534 * config.bfd (targ_cpu): Process bpf-*-none only if BFD64.
535 * configure.ac: Set target_size=64 for bpf_elf64_le_vec and
536 bpf_elf64_be_vec.
537 * configure: Regenerate.
538
5392019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
540
fd0de36e
JM
541 * configure: Regenerated.
542 * Makefile.am (ALL_MACHINES): Add cpu-bpf.lo.
543 (ALL_MACHINES_CFILES): Add cpu-bpf.c.
544 (BFD64_BACKENDS): Add elf64-bpf.lo.
545 (BFD64_BACKENDS_CFILES): Add elf64-bpf.c.
546 * Makefile.in (SOURCE_HFILES): Regenerate.
547 * config.bfd (targ_cpu): Handle bpf-*-* targets.
548 * cpu-bpf.c: New file.
549 * elf64-bpf.c: Likewise.
550 * targets.c (_bfd_target_vector): Add bpf_elf64_be_vec and
551 bpf_elf64_le_vec.
552 * archures.c: Define architecture bfd_arch_bpf and machine
553 bfd_arch_bpf.
554 * reloc.c: Define BFD relocations used by the BPF target.
555 * bfd-in2.h: Regenerated.
556 * libbfd.h: Likewise.
557
b0f4fbf8
AM
5582019-05-22 Alan Modra <amodra@gmail.com>
559
560 * elf32-arm.c (arm_allocate_glue_section_space): Clear section
561 contents.
562
9ec2f606
AM
5632019-05-22 Alan Modra <amodra@gmail.com>
564
565 * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
566 processing on "size error in section".
567
4decd602
AM
5682019-05-22 Alan Modra <amodra@gmail.com>
569
570 * som.c (som_bfd_free_cached_info): Call
571 _bfd_generic_close_and_cleanup.
572
b474a202
FS
5732019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
574
575 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Generate error
576 for TLS_TPREL_HI16(/LO16) relocations in shared library.
577
304f09d0
FS
5782019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
579
580 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Add NULL pointer
581 checks. Search the RELA table for n64 relocations.
582
3734320d
MF
5832019-05-21 Matthew Fortune <matthew.fortune@mips.com>
584 Faraz Shahbazker <fshahbazker@wavecomp.com>
585
586 * elfxx-mips.c (LA25_BC): New macro.
587 (mips_elf_link_hash_table)<compact_branches>: New field.
588 (STUB_JALRC): New macro.
589 (mipsr6_o32_exec_plt0_entry_compact): New array.
590 (mipsr6_n32_exec_plt0_entry_compact): Likewise.
591 (mipsr6_n64_exec_plt0_entry_compact): Likewise.
592 (mipsr6_exec_plt_entry_compact): Likewise.
593 (mips_elf_create_la25_stub): Use BC instead of J for stubs
594 when compact_branches is true.
595 (_bfd_mips_elf_finish_dynamic_symbol): Choose the compact
596 PLT for MIPSR6 with compact_branches. Do not reorder the
597 compact branches PLT. Switch the lazy stub for MIPSR6
598 with compact_branches to use JALRC.
599 (mips_finish_exec_plt): Choose the compact PLT0 for MIPSR6
600 when compact_branches is true.
601 (_bfd_mips_elf_compact_branches): New function.
602 * elfxx-mips.h (_bfd_mips_elf_compact_branches): New prototype.
603
64672071
TC
6042019-05-21 Tamar Christina <tamar.christina@arm.com>
605
606 PR ld/24373
607 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
608 Fix print formatter.
609
e6f65e75
AV
6102019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
611
612 PR 24460
613 * elf32-arm.c (get_value_helper): Remove.
614 (elf32_arm_final_link_relocate): Fix branch future relocations.
615
739b5c9c
TC
6162019-05-21 Tamar Christina <tamar.christina@arm.com>
617
618 PR ld/24373
619 * bfd-in.h (enum erratum_84319_opts): New
620 (bfd_elf64_aarch64_set_options, bfd_elf32_aarch64_set_options): Change
621 int to enum erratum_84319_opts.
622 * bfd-in2.h: Regenerate.
623 * elfnn-aarch64.c (struct elf_aarch64_link_hash_table): Change
624 fix_erratum_843419 to use new enum, remove fix_erratum_843419_adr.
625 (_bfd_aarch64_add_stub_entry_after): Conditionally create erratum stub.
626 (aarch64_size_one_stub): Conditionally size erratum 843419 stubs.
627 (_bfd_aarch64_resize_stubs): Amend comment.
628 (elfNN_aarch64_size_stubs): Don't generate stubs when no workaround
629 requested.
630 (bfd_elfNN_aarch64_set_options): Use new fix_erratum_843419 enum.
631 (_bfd_aarch64_erratum_843419_branch_to_stub): Implement selection of
632 erratum workaround.
633 (clear_erratum_843419_entry): Update erratum conditional.
634
7622049e
SKS
6352019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
636
637 PR ld/24571
638 * bfd/elf32-avr.c (elf32_avr_relax_section): Adjust range check
639 when computing distance_short_enough.
640
338ba755
SKS
6412019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
642
643 PR ld/24564
644 * bfd/elf32-avr.c (avr_relative_distance_considering_wrap_around):
645 Wrap around even if distance equals avr_pc_wrap_around.
646
999b073b
NC
6472019-05-20 Nick Clifton <nickc@redhat.com>
648
649 * po/fr.po: Updated French translation.
650
a7ad558c
AV
6512019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
652
653 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add case for Tag_MVE_arch.
654
a2699ef2
AM
6552019-05-16 Alan Modra <amodra@gmail.com>
656
657 * elf32-arm.c (elf32_arm_write_section): Revert last change.
658
3a1bb98c
AM
6592019-05-15 Alan Modra <amodra@gmail.com>
660
661 * elf32-arm.c (elf32_arm_write_section): Don't leave
662 error case of STM32L4XX_ERRATUM_BRANCH_TO_VENEER with
663 unitialised section contents.
664
37d0d091
JH
6652019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
666
667 PR 19921
668 * verilog.c: (VerilogDataWidth): New variable.
669 (verilog_write_record): Emit bytes in VerilogDataWidth bundles.
670
79299211
NC
6712019-05-08 Nick Clifton <nickc@redhat.com>
672
673 PR 24523
674 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Return TRUE
675 rather than FALSE if encountering a non-ELF file.
676
e1cbf07a
AM
6772019-05-06 Alan Modra <amodra@gmail.com>
678
679 * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error.
680
334d91b9
AM
6812019-05-06 Alan Modra <amodra@gmail.com>
682
683 * reloc.c (BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA),
684 (BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA):
685 Sort before BFD_RELOC_PPC64_DTPREL16_HIGHESTA entry.
686 * libbfd.h: Regenerate.
687 * bfd-in2.h: Regenerate.
688
a288c270
AM
6892019-05-04 Alan Modra <amodra@gmail.com>
690
691 PR 24511
692 * syms.c (coff_section_type): Only allow '.', '$' and numeric
693 following the standard section names.
694 (bfd_decode_symclass): Prioritize section flag tests in
695 decode_section_type before name tests in coff_section_type.
696 * plugin.c (bfd_plugin_canonicalize_symtab): Init fake_section
697 and fake_common_section using BFD_FAKE_SECTION. Use "fake" as
698 their names and choose standard .text section flags for
699 fake_section.
700
2cdc1a97
NC
7012019-05-02 Nick Clifton <nickc@redhat.com>
702
703 PR 24493
704 * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
705 .gnu.debugaltlink sections as debugging sections.
706
066f4018
AM
7072019-04-30 Alan Modra <amodra@gmail.com>
708
709 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel.
710 (struct _ppc64_elf_section_data): Likewise.
711 (ppc64_elf_check_relocs): Set above fields.
712 (ppc64_elf_edit_toc): Add a pass over GOT relocs.
713 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
714 when possible.
715
c54f1524
L
7162019-04-26 H.J. Lu <hongjiu.lu@intel.com>
717
718 PR ld/24486
719 * elflink.c (elf_link_output_extsym): Don't complain undefined
720 weak dynamic reference.
721
68bb0359
SD
7222019-04-25 Sudakshina Das <sudi.das@arm.com>
723
724 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): Remove.
725 (PLT_BTI_TLSDESC_ENTRY_SIZE): Remove.
726 (PLT_PAC_ENTRY_SIZE, PLT_BTI_PAC_ENTRY_SIZE): Remove.
727 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): Update.
728 (elfNN_aarch64_small_plt0_pac_entry): Remove.
729 (elfNN_aarch64_small_plt0_bti_pac_entry): Remove.
730 (elfNN_aarch64_small_plt0_bti_entry): Update.
731 (elfNN_aarch64_small_plt_bti_entry): Update.
732 (elfNN_aarch64_small_plt_pac_entry): Update.
733 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): Update.
734 (setup_plt_values): Setup new entries.
735 (elfNN_aarch64_finish_dynamic_sections): Remove size change.
736 (elfNN_aarch64_plt_sym_val): Likewise.
737
79b8e8ab
JW
7382019-04-22 Jim Wilson <jimw@sifive.com>
739
740 * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
741
fce97736
AM
7422019-04-19 Alan Modra <amodra@gmail.com>
743
744 * elf32-s12z.c (elf_backend_can_gc_sections): Don't define
745
9a7f0679
L
7462019-04-17 H.J. Lu <hongjiu.lu@intel.com>
747
748 * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not
749 building shared object.
750 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Likewise.
751
4e84a8f8
L
7522019-04-17 H.J. Lu <hongjiu.lu@intel.com>
753
754 PR ld/24458
755 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86
756 linker_def.
757
32c36c3c
AV
7582019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
759
760 * reloc.c (BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM): New internal
761 relocation.
762 * bfd-in2.h: Regenerate.
763 * libbfd.h: Likewise.
764
60f993ce
AV
7652019-04-15 Sudakshina Das <sudi.das@arm.com>
766
767 * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New.
768 * bfd-in2.h: Regenerated.
769 * libbfd.h: Regenerated.
770
f6b2b12d
AV
7712019-04-15 Sudakshina Das <sudi.das@arm.com>
772
773 * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation.
774 * bfd-in2.h: Regenerated.
775 * libbfd.h: Likewise.
776
1889da70
AV
7772019-04-15 Sudakshina Das <sudi.das@arm.com>
778
779 * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New.
780 * bfd-in2.h: Regenerated.
781 * libbfd.h: Regenerated.
782 * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13.
783 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13
784 and R_ARM_THM_BF12 together.
785 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13.
786
1caf72a5
AV
7872019-04-15 Sudakshina Das <sudi.das@arm.com>
788
789 * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New
790 * libbfd.h: Regenerated.
791 * bfd-in2.h: Regenerated.
792 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18.
793 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19
794 and R_ARM_THM_BF18 together.
795 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19.
796
e5d6e09e
AV
7972019-04-15 Sudakshina Das <sudi.das@arm.com>
798
799 * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum.
800 * bfd-in2.h: Regenerated.
801 * libbfd.h: Regenerated.
802 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16.
803 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17
804 and R_ARM_THM_BF16 together.
805 (get_value_helper): New reloc helper.
806 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16.
807
e12437dc
AV
8082019-04-15 Sudakshina Das <sudi.das@arm.com>
809
810 * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
811 * bfd-in2.h: Regenerate.
812 * libbfd.h: Regenerate.
813
031254f2
AV
8142019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
815
816 * archures.c (bfd_mach_arm_8_1M_MAIN): Define.
817 * bfd-in2.h: Regenerate.
818 * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline.
819 * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline
820 and update assert.
821 (using_thumb2): Likewise.
822 (using_thumb2_bl): Update assert.
823 (arch_has_arm_nop): Likewise.
824 (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline.
825 (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging.
826
233a0083
L
8272019-04-11 H.J. Lu <hongjiu.lu@intel.com>
828
829 * elf-linker-x86.h (elf_x86_cet_report): New.
830 (elf_linker_x86_params): Add cet_report.
831 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
832 missing IBT and SHSTK properties if needed.
833
a0ea3a14
L
8342019-04-11 H.J. Lu <hongjiu.lu@intel.com>
835
ca4e6331 836 PR ld/24436
a0ea3a14
L
837 * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of
838 "h != NULL". Don't check "h != NULL" before calling.
839 bfd_elf_gc_record_vtentry.
840 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
841 * elf32-bfin.c (bfin_check_relocs): Likewise.
842 * elf32-cris.c (cris_elf_check_relocs): Likewise.
843 * elf32-csky.c (csky_elf_check_relocs): Likewise.
844 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
845 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
846 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
847 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
848 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
849 * elf32-i386.c (elf_i386_check_relocs): Likewise.
850 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
851 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
852 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
853 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
854 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
855 * elf32-metag.c (elf_metag_check_relocs): Likewise.
856 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
857 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
858 * elf32-s390.c (elf_s390_check_relocs): Likewise.
859 * elf32-sh.c (sh_elf_check_relocs): Likewise.
860 * elf32-v850.c (v850_elf_check_relocs): Likewise.
861 * elf32-vax.c (elf_vax_check_relocs): Likewise.
862 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
863 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
864 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
865 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
866 * elf64-s390.c (elf_s390_check_relocs): Likewise.
867 * elf64-x86-64.c (elf_s390_check_relocs): Likewise.
868 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
869 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
870 * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt
871 VTENTRY entry.
872
9bff840e
AM
8732019-04-11 Alan Modra <amodra@gmail.com>
874
875 PR 24435
876 * elflink.c (elf_link_add_object_symbols): Don't read partial
877 dynamic entries from fuzzed objects.
878
ce12121b
TC
8792019-04-11 Tamar Christina <tamar.christina@arm.com>
880
881 PR ld/24302
882 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit
883 DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW.
884 (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW.
885
b05971a6
MF
8862019-04-10 Michael Forney <mforney@mforney.org>
887
888 PR 24427
889 * doc/chew.c (free_words): Correctly free "push_text" strings.
890
3ae61bb6
L
8912019-04-08 H.J. Lu <hongjiu.lu@intel.com>
892
893 * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets.
894
5f2a6b85
AM
8952019-04-08 Alan Modra <amodra@gmail.com>
896
897 * configure.ac (elfxx_x86): Define and use.
898 * configure: Regenerate.
899
5b9c07b2
L
9002019-04-06 H.J. Lu <hongjiu.lu@intel.com>
901
902 * elf-linker-x86.h: New file.
903 * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params
904 to get x86-specific linker options.
905 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
906 (elf_x86_64_check_relocs): Likewise.
907 (elf_x86_64_relocate_section): Likewise.
908 (elf_x86_64_link_setup_gnu_properties): Likewise.
909 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise.
910 (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
911 (_bfd_elf_linker_x86_set_options): New function.
912 * elfxx-x86.h: Include "elf-linker-x86.h".
913 (elf_x86_link_hash_table): Add params.
914
4b24dd1a
AM
9152019-04-03 Alan Modra <amodra@gmail.com>
916
917 * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c,
918 * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c,
919 * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c,
920 * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c,
921 * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c,
922 * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes.
923
87f98bac
JW
9242019-04-02 Jim Wilson <jimw@sifive.com>
925
926 PR 24389
927 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
928 ELF header flags to after check for ELF object file. Loop through
929 sections looking for code sections, if none, then skip ABI checks.
930
ae2b14c7
JW
9312019-03-30 Andrew Waterman <andrew@sifive.com>
932
933 * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for
934 rd == X_RA case.
935
2487ef07
MF
9362019-03-29 Max Filippov <jcmvbkbc@gmail.com>
937
938 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
939 info->export_dynamic to the conditional.
940
242a1159
AM
9412019-03-28 Alan Modra <amodra@gmail.com>
942
943 PR 24392
944 * configure.ac: Invoke AC_CHECK_SIZEOF(int).
945 * configure: Regenerate.
946 * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
947 workaround with SIZEOF_LONG vs. SIZEOF_INT check.
948 * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
949 * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
950 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
951
a9f5a551
JW
9522019-03-21 Jim Wilson <jimw@sifive.com>
953
954 PR 24365
955 * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check,
956 verify sym non-NULL before using. Add identical check using h.
957
4e539114
SD
9582019-03-21 Sudakshina Das <sudi.das@arm.com>
959
960 * elf-bfd.h (struct elf_backend_data): Add argument to
961 merge_gnu_properties.
962 * elf-properties.c (elf_merge_gnu_properties): Add argument to
963 itself and while calling bed->merge_gnu_properties.
964 (elf_merge_gnu_property_list): Update the calls for
965 elf_merge_gnu_properties.
966 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
967 of --force-bti warning and add argument.
968 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
969 warning.
970 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
971 * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
972 declaration.
973
acde6c6b
SD
9742019-03-20 Sudakshina Das <sudi.das@arm.com>
975
976 * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define.
977 * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare.
978 (elf_backend_fixup_gnu_properties): Define for AArch64.
979
8cd1fe1b
AM
9802019-03-18 Alan Modra <amodra@gmail.com>
981
982 PR 24355
983 * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
984 for local iplt syms with ent->plt.offset == -1. Remove ineffective
985 attempt at writing glink stubs only once.
986
6835821b
AM
9872019-03-16 Alan Modra <amodra@gmail.com>
988
989 PR 24337
990 * elf.c (_bfd_elf_rela_local_sym): Revert last change.
991 (_bfd_elf_rel_local_sym): Likewise.
992 * elflink.c (elf_link_input_bfd): Use bfd_und_section for
993 section of symbols with unrecognized shndx.
994
2219ae0b
L
9952019-03-15 H.J. Lu <hongjiu.lu@intel.com>
996
997 PR ld/24267
998 * coffgen.c (_bfd_coff_section_already_linked): Skip discarded
999 section.
1000 * cofflink.c (coff_link_add_symbols): Check for symbols defined
1001 in discarded section.
1002
fe3fef62
AM
10032019-03-15 Alan Modra <amodra@gmail.com>
1004
1005 PR 24339
1006 * elflink.c (elf_link_add_object_symbols): Bail out on a local
1007 symbol after globals if elf_bad_symtab is not set.
1008
1ff31e13
AM
10092019-03-15 Alan Modra <amodra@gmail.com>
1010
1011 PR 24337
1012 * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec.
1013 (_bfd_elf_rel_local_sym): Likewise.
1014
f55b1e32
AM
10152019-03-15 Alan Modra <amodra@gmail.com>
1016
1017 PR 24336
1018 * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed
1019 object files with sh_size not a multiple of sh_entsize.
1020
da0d12d2
L
10212019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1022
418d4036
L
1023 PR ld/24338
1024 * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt
1025 input with bad relocation.
1026
102722019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1028
da0d12d2
L
1029 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
1030
d7f848c3
NC
10312019-03-14 Nick Clifton <nickc@redhat.com>
1032
1033 PR 24334
1034 * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field.
1035 (save_section_vma): Initialise field to the number of entries in
1036 the sec_vma table.
1037 (section_vma_same): Check that the number of entries in the
1038 sec_vma table matches the number of sections in the bfd.
1039
6cc71b82
NC
10402019-03-14 Nick Clifton <nickc@redhat.com>
1041
1042 PR 24333
1043 * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL
1044 section owner pointer when adding the default symbol.
1045
be22c732
NC
10462019-03-14 Nick Clifton <nickc@redhat.com>
1047
1048 PR 24332
1049 * elflink.c (elf_link_add_object_symbols): Add new local variable
1050 extversym_end. Initialise it to point to the end of the version
1051 symbol table, if present. Check it when initialising and updating
1052 the ever pointer.
1053
1dbade74
SD
10542019-03-13 Sudakshina Das <sudi.das@arm.com>
1055
1056 * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New.
1057 (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New.
1058 (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs.
1059 (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC
1060 and PLT_PAC_PLT.
1061 (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC.
1062 (get_plt_type): Add case for DT_AARCH64_PAC_PLT.
1063 (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC.
1064
37c18eed
SD
10652019-03-13 Sudakshina Das <sudi.das@arm.com>
1066 Szabolcs Nagy <szabolcs.nagy@arm.com>
1067
1068 * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New.
1069 (aarch64_bti_pac_info): New.
1070 (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument.
1071 (bfd_elf32_aarch64_set_options): Likewise.
1072 * bfd-in2.h: Regenerate
1073 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New.
1074 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New.
1075 (elfNN_aarch64_small_plt0_bti_entry): New.
1076 (elfNN_aarch64_small_plt_bti_entry): New.
1077 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New.
1078 (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields.
1079 (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and
1080 tlsdesc_plt_entry_size fields.
1081 (elfNN_aarch64_link_hash_table_create): Initialise the new fields.
1082 (setup_plt_values): New helper function.
1083 (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and
1084 bti enable type.
1085 (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of
1086 fixed macros.
1087 (elfNN_aarch64_size_dynamic_sections): Likewise and add checks.
1088 (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers
1089 to plt stubs instead of fixed ones and update filling them according
1090 to the need for bti.
1091 (elfNN_aarch64_init_small_plt0_entry): Likewise.
1092 (elfNN_aarch64_finish_dynamic_sections): Likewise.
1093 (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New.
1094 (elfNN_aarch64_plt_sym_val): Update size accordingly.
1095 (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE
1096 is set.
1097 (bfd_elfNN_get_synthetic_symtab): Define.
1098 (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti
1099 and mising BTI NOTE SECTION.
1100
1101
cd702818
SD
11022019-03-13 Sudakshina Das <sudi.das@arm.com>
1103
1104 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude
1105 linker created inputs from merge.
1106 * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for
1107 GNU_PROPERTY_AARCH64_FEATURE_1_AND properties.
1108 (elfNN_aarch64_link_setup_gnu_properties): New.
1109 (elfNN_aarch64_merge_gnu_properties): New.
1110 (elf_backend_setup_gnu_properties): Define for AArch64.
1111 (elf_backend_merge_gnu_properties): Likewise.
1112 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define.
1113 (_bfd_aarch64_elf_parse_gnu_properties): Define.
1114 (_bfd_aarch64_elf_merge_gnu_properties): Define.
1115 * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare.
1116 (_bfd_aarch64_elf_parse_gnu_properties): Declare.
1117 (_bfd_aarch64_elf_merge_gnu_properties): Declare.
1118 (elf_backend_parse_gnu_properties): Define for AArch64.
1119
44b27f95
L
11202019-03-13 H.J. Lu <hongjiu.lu@intel.com>
1121
1122 PR ld/24322
1123 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly
1124 merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK].
1125
7a6e0d89
AM
11262019-03-12 Alan Modra <amodra@gmail.com>
1127
1128 * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add
1129 nmemb parameter. Use bfd_alloc2.
1130 (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls.
1131 Delete assertion.
1132 (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2.
1133 (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls.
1134 * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation
1135 doesn't overflow.
1136 * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix.
1137 (assign_section_numbers): Style fix.
1138 (swap_out_syms): Use bfd_malloc2.
1139 (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't
1140 overflow.
1141 (_bfd_elf_make_empty_symbol): Style fix.
1142 (elfobj_grok_stapsdt_note_1): Formatting.
1143 * elfcode.h (elf_object_p): Use bfd_alloc2.
1144 (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise.
1145 (elf_slurp_symbol_table): Use bfd_zalloc2.
1146 (elf_slurp_reloc_table): Use bfd_alloc2.
1147 (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2.
1148 * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure
1149 size calculation doesn't overflow.
1150 (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise.
1151 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
1152 * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version.
1153
ebd2263b
AM
11542019-03-08 Alan Modra <amodra@gmail.com>
1155
1156 PR 24311
1157 * merge.c (merge_strings): Return secinfo. Don't pad section
1158 to alignment here.
1159 (_bfd_merge_sections): Pad section to alignment here, if input
1160 sections contributing to merged output all pad to alignment.
1161 Formatting.
1162
219d6836
NC
11632019-03-06 Nick Clifton <nickc@redhat.com>
1164
1165 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
1166 table pointer.
1167 * coffgen.c (coff_find_nearest_line_with_names): Do not call
1168 _bfd_dwarf2_find_symbol_bias if there is no symbol table available.
1169
24801b15
AK
11702019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
1171
1172 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
1173 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1174
1175 PR 20113
1176 * elf32-s390.c (allocate_dynrelocs): Update comment.
1177
4ffd2909
TC
11782019-02-28 Tamar Christina <tamar.christina@arm.com>
1179
1180 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
1181
eed5def8
NC
11822019-02-28 Nick Clifton <nickc@redhat.com>
1183
1184 PR 24273
1185 * elf.c (bfd_elf_string_from_elf_section): Check for a string
1186 section that is not NUL terminated.
1187
5cfe428c
L
11882019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1189
1190 PR ld/24276
1191 * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
1192 by linker when checking copy reloc on protected symbol.
1193
f616c36b
AM
11942019-02-24 Alan Modra <amodra@gmail.com>
1195
1196 PR 24144
1197 * pdp11.c (set_section_contents): Revert 2015-02-24 change.
1198
eed62915
MF
11992019-02-20 Eric Tsai <erictsai@cadence.com>
1200
1201 * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
1202 sections between the call site and call destination and adjust
1203 call distance by the largest alignment.
1204
e6c3b5bf
AH
12052019-02-20 Alan Hayward <alan.hayward@arm.com>
1206
1207 * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
1208 * elf.c (elfcore_grok_aarch_pauth): New function.
1209 (elfcore_grok_note): Check for NT_ARM_PAC_MASK.
1210 (elfcore_write_aarch_pauth): New function.
1211 (elfcore_write_register_note): Check for AArch64 pauth section.
1212
34d75fb5
AM
12132019-02-20 Alan Modra <amodra@gmail.com>
1214
1215 PR 24225
1216 * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
1217 return value.
1218
edd01d07
MR
12192019-02-20 Michael Roitzsch <reactorcontrol@icloud.com>
1220
1221 * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
1222 Darwin hosts, not just or1k.
1223 * configure: Regenerate.
1224
8abac803
AM
12252019-02-20 Alan Modra <amodra@gmail.com>
1226
1227 PR 24236
1228 * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
1229 sentinel NUL to string buffer nearer to loop where it is used.
1230 Don't go past sentinel when scanning strings, and don't write
1231 NUL again.
1232 * archive.c (do_slurp_coff_armap): Simplify string handling to
1233 archive64.c style.
1234
179f2db0
AM
12352019-02-19 Alan Modra <amodra@gmail.com>
1236
1237 PR 24235
1238 * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
1239 attempting to prevent read past end of section.
1240
a31b8bd9
AM
12412019-02-18 Alan Modra <amodra@gmail.com>
1242
1243 PR 24225
1244 * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
1245 PRIx64 to generate warning messages. Print local sym names too.
1246
a0e90a73
CZ
12472019-02-09 Vineet Gupta <vgupta@synopsys.com>
1248
1249 * elf32-arc (INIT_SYM_STRING): Delete.
1250 (FINI_SYM_STRING): Likewise.
1251 (init_str): Likewise.
1252 (fini_str): Likewise.
1253
482f3505
AM
12542019-02-08 Alan Modra <amodra@gmail.com>
1255
1256 * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
1257 for bss-plt" warning to make it an error.
1258
b2abe1bd
EB
12592019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1260
1261 PR ld/18841
1262 * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
1263 reloc_class_ifunc for ifunc symbols.
1264 * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
1265
68a09132
EB
12662019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1267
1268 * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
1269 <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
1270
2012bf01
NC
12712019-02-07 Nick Clifton <nickc@redhat.com>
1272
1273 * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
1274 into the definitely obsolete list.
1275
83924b38
L
12762019-02-05 H.J. Lu <hongjiu.lu@intel.com>
1277
1278 PR ld/24151
1279 * elf64-x86-64.c (elf_x86_64_need_pic): Check
1280 SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
1281 (elf_x86_64_relocate_section): Move PIC check for PC-relative
1282 relocations to ...
1283 (elf_x86_64_check_relocs): Here.
1284 (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
1285 to check if a symbol is defined in a non-shared object.
1286 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
1287
453f8e1e
SDJ
12882019-01-21 Sergio Durigan Junior <sergiodj@redhat.com>
1289
1290 * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
1291 of 'labs' (and fix GCC warning).
1292
9ed1348c
NC
12932019-01-25 Nick Clifton <nickc@redhat.com>
1294
1295 * po/ru.po: Updated Russian translation.
1296
d9938630
NC
12972019-01-23 Nick Clifton <nickc@redhat.com>
1298
1299 * po/fr.po: Updated French translation.
1300
375cd423
NC
13012019-01-21 Nick Clifton <nickc@redhat.com>
1302
1303 * po/pt.po: Updated Portuguese translation.
1304 * po/uk.po: Updated Ukranian translation.
1305
acef8081
YC
13062019-01-21 Yuri Chornoivan <yurchor@ukr.net>
1307
1308 PR 24108
1309 * elf32-nds32.c (nds32_relocate_section): Add space between words
1310 in error message.
1311 * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
1312 error message.
1313 (riscv_i_or_e_p): Likewise.
1314 (riscv_merge_arch_attr_info): Likewise.
1315
f48dfe41
NC
13162019-01-19 Nick Clifton <nickc@redhat.com>
1317
1318 * version.m4: Reset to 2.32.51
1319 * configure: Regenerate.
1320 * po/bfd.pot: Regenerate.
1321
f974f26c
NC
13222018-06-24 Nick Clifton <nickc@redhat.com>
1323
1324 2.32 branch created.
1325
a4bf3d07
JW
13262019-01-16 Kito Cheng <kito@andestech.com>
1327
1328 * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
1329 for OBJ_ATTR_PROC.
1330
2dc8dd17
JW
13312019-01-16 Kito Cheng <kito@andestech.com>
1332 Nelson Chu <nelson@andestech.com>
1333
7d7a7d7c
JW
1334 * elfnn-riscv.c (in_subsets): New.
1335 (out_subsets): Likewise.
1336 (merged_subsets): Likewise.
1337 (riscv_std_ext_p): Likewise.
1338 (riscv_non_std_ext_p): Likewise.
1339 (riscv_std_sv_ext_p): Likewise.
1340 (riscv_non_std_sv_ext_p): Likewise.
1341 (riscv_version_mismatch): Likewise.
1342 (riscv_i_or_e_p): Likewise.
1343 (riscv_merge_std_ext): Likewise.
1344 (riscv_merge_non_std_and_sv_ext): Likewise.
1345 (riscv_merge_arch_attr_info): Likewise.
1346 (riscv_merge_attributes): Likewise.
1347 (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
1348
2dc8dd17
JW
1349 * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
1350 (elf_backend_obj_attrs_vendor): Define.
1351 (elf_backend_obj_attrs_section_type): Likewise.
1352 (elf_backend_obj_attrs_section): Likewise.
1353 (elf_backend_obj_attrs_arg_type): Define as
1354 riscv_elf_obj_attrs_arg_type.
1355 * elfxx-riscv.c (riscv_estimate_digit): New.
1356 (riscv_estimate_arch_strlen1): Likewise.
1357 (riscv_estimate_arch_strlen): Likewise.
1358 (riscv_arch_str1): Likewise.
1359 (riscv_arch_str): Likewise.
1360 * elfxx-riscv.h (riscv_arch_str): Declare.
1361
d5dcaf1b
JD
13622019-01-14 John Darrington <john@darrington.wattle.id.au>
1363
1364 * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
1365 * libbfd.h: regen.
1366 * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
1367 source field. (md_apply_fix): Apply final fix
1368 to BFD_RELOC_S12Z_OPR.
1369 * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
1370
5a12586d
MT
13712019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1372
f466c305 1373 PR 20113
5a12586d
MT
1374 * elf32-s390.c (allocate_dynrelocs): Update comment.
1375
3107326d
AP
13762019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1377
1378 * warning.m4: Adjust egrep pattern for non-GNU compilers.
1379 * configure: Regenerate.
1380
a9859e01
AM
13812019-01-08 Alan Modra <amodra@gmail.com>
1382
1383 PR 23699
1384 PR 24065
1385 * ihex.c (ihex_write_object_contents): Properly check 32-bit
1386 address range.
1387
c8c89dac
YS
13882019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1389
1390 * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
1391 * bfd/bfd-in2.h: Regenerate.
1392 * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
1393 * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
1394
d9858c37
LX
13952019-01-04 Lifang Xia <lifang_xia@c-sky.com>
1396
1397 * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
1398 default target, little endian target is more suitable.
1399
677bd4c6
AM
14002019-01-04 Alan Modra <amodra@gmail.com>
1401
1402 PR 24061
1403 PR 21786
1404 * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
1405 adjust all callers.
1406 (EQ_VALUE_IN_FIELD): Likewise.
1407 * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
1408
82704155
AM
14092019-01-01 Alan Modra <amodra@gmail.com>
1410
1411 Update year range in copyright notice of all files.
1412
d5c04e1b 1413For older changes see ChangeLog-2018
3499769a 1414\f
d5c04e1b 1415Copyright (C) 2019 Free Software Foundation, Inc.
3499769a
AM
1416
1417Copying and distribution of this file, with or without modification,
1418are permitted in any medium without royalty provided the copyright
1419notice and this notice are preserved.
1420
1421Local Variables:
1422mode: change-log
1423left-margin: 8
1424fill-column: 74
1425version-control: never
1426End:
This page took 0.317851 seconds and 4 git commands to generate.