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