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