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