]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
Aligned vs. unaligned ppc32 relocs
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
63f6e94f
AM
12019-08-16 Alan Modra <amodra@gmail.com>
2
3 * elf32-ppc.c (ppc_elf_relocate_section): Optimize unaligned relocs.
4
080a4883
JW
52019-08-15 Jim Wilson <jimw@sifive.com>
6
7 * elfnn-riscv.c (perform_relocation) <R_RISCV_RVC_LUI>: If
8 RISCV_CONST_HIGH_PART (value) is zero, then convert c.lui instruction
9 to c.li instruction, and use ENCODE_RVC_IMM to set value.
10
05192282
TT
112019-08-15 Tom Tromey <tromey@adacore.com>
12
13 * dwarf2.c (scan_unit_for_symbols): Check for end of CU, not end
14 of section.
15
dfc19da6
AM
162019-08-14 Alan Modra <amodra@gmail.com>
17
18 PR 24623
19 * dwarf2.c (stash_comp_unit): New function, extracted from..
20 (_bfd_dwarf2_find_nearest_line): ..here.
21 (find_abstract_instance): Parse comp units and decode line info
22 as needed.
23
c327a44f
AM
242019-08-14 Alan Modra <amodra@gmail.com>
25
26 * dwarf2.c (comp_unit_maybe_decode_line_info): Declare.
27 (comp_unit_find_nearest_line): Use it here..
28 (_bfd_dwarf2_find_symbol_bias): ..and here.
29
9defd221
AM
302019-08-14 Alan Modra <amodra@gmail.com>
31
32 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove addr_size parameter.
33 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
34 * coffgen.c (coff_find_nearest_line_with_names): Adjust
35 _bfd_dwarf2_find_nearest_line calls.
36 * elf.c (_bfd_elf_find_nearest_line, _bfd_elf_find_line): Likewise.
37 * elf32-arm.c (elf32_arm_find_nearest_line): Likewise.
38 * elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise.
39 * elfnn-aarch64.c (elfNN_aarch64_find_nearest_line): Likewise.
40 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise.
41 * mach-o.c (bfd_mach_o_find_nearest_line): Likewise.
42 * libbfd.h: Regenerate.
43
f16a9783
MS
442019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
45
46 * elf-bfd.h (struct elf_backend_data): New members.
47 * elflink.c (_bfd_elf_link_create_dynamic_sections): Create
48 .gnu.hash section if necessary.
49 (struct collect_gnu_hash_codes): New member.
50 (elf_gnu_hash_process_symidx): New function name.
51 (elf_renumber_gnu_hash_syms): Ignore local and undefined
52 symbols. Record xlat location for every symbol which should have
53 a .MIPS.xhash entry.
54 (bfd_elf_size_dynamic_sections): Add DT_GNU_HASH dynamic tag to
55 dynamic section if necessary.
56 (GNU_HASH_SECTION_NAME): New define.
57 (bfd_elf_size_dynsym_hash_dynstr): Get .MIPS.xhash section.
58 Update the section size info.
59 * elfxx-mips.c (struct mips_elf_hash_sort_data): New members.
60 (struct mips_elf_link_hash_entry): New member.
61 (mips_elf_link_hash_newfunc): Initialize .MIPS.xhash translation
62 table location.
63 (mips_elf_sort_hash_table): Initialize the pointer to the
64 .MIPS.xhash section.
65 (mips_elf_sort_hash_table_f): Populate the .MIPS.xhash
66 translation table entry with the symbol dynindx.
67 (_bfd_mips_elf_section_from_shdr): Add SHT_MIPS_XHASH.
68 (_bfd_mips_elf_fake_sections): Initialize .MIPS.xhash section
69 info.
70 (_bfd_mips_elf_create_dynamic_sections): Create .MIPS.xhash
71 section.
72 (_bfd_mips_elf_size_dynamic_sections): Add DT_MIPS_XHASH tag to
73 dynamic section.
74 (_bfd_mips_elf_finish_synamic_sections): Add DT_MIPS_XHASH.
75 (_bfd_mips_elf_final_write_processing): Set .MIPS.xhash section
76 sh_link info.
77 (_bfd_mips_elf_get_target_dtag): Get DT_MIPS_XHASH tag.
78 (MIPS_LIBC_ABI_XHASH): New ABI version enum value.
79 (_bfd_mips_post_process_headers): Mark the ABI version as
80 MIPS_LIBC_ABI_XHASH if there exists a .MIPS.xhash section,
81 but not a .hash section.
82 (_bfd_mips_elf_record_xhash_symbol): New function. Record a
83 position in the translation table, associated with the hash
84 entry.
85 * elfxx-mips.h (literal_reloc_p): Define
86 elf_backend_record_xhash_symbol backend hook.
87 * elfxx-target.h: Initialize elf_backend_record_xhash_symbol
88 backend hook.
89
fc8de8e2
JM
902019-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
91
92 * elf64-bpf.c (bpf_elf_relocate_section): New function.
93 (bpf_elf_insn_disp_reloc): Delete function.
94 (elf_backend_relocate_section): Define.
95
97b031c5
AM
962019-08-07 Alan Modra <amodra@gmail.com>
97
98 PR 24644
99 * archive64.c (_bfd_archive_64_bit_slurp_armap): Properly check
100 for overflow in expressions involving nsymz.
101
0f52d45a
JW
1022019-08-01 Ilia Diachkov <ilia.diachkov@optimitech.com>
103
104 * elfnn-riscv.c (_bfd_riscv_relax_lui): Set lui relax safety area to
105 two pages in relro presence.
106
e0d0c518
MF
1072019-08-01 Max Filippov <jcmvbkbc@gmail.com>
108
109 * elf32-xtensa.c (insn_num_slots, get_rsr_lend_opcode)
110 (get_wsr_lbeg_opcode): New functions.
111 (check_loop_aligned): Detect relaxed loops and adjust loop_len
112 and insn_len for the first actual instruction of the loop.
113
34d5c40a
AM
1142019-07-30 Alan Modra <amodra@gmail.com>
115
116 PR 24768
117 * bfd.c (struct bfd): Add lto_slim_object flag.
118 * bfd-in2.h: Regenerate.
119
cc5277b1
ML
1202019-07-29 Martin Liska <mliska@suse.cz>
121
122 PR 24768
123 * archive.c (_bfd_compute_and_write_armap): Come up with
124 report_plugin_err variable.
125 * bfd-in2.h (struct bfd): Add lto_slim_object flag.
126 * elf.c (struct lto_section): New.
127 (_bfd_elf_make_section_from_shdr): Parse content of
128 .gnu_lto_.lto section.
129 * elflink.c: Report error for a missing LTO plugin.
130 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
131
4538d1c7
AM
1322019-07-28 Alan Modra <amodra@gmail.com>
133
134 PR 24857
135 PR 24339
136 * elflink.c (elf_link_add_object_symbols): Report an informative
137 error on finding local symbols with index equal or greater than
138 symbol table sh_info. Correct comment. Allow such symbols in
139 dynamic objects. Abort on NULL section for symbol.
140
6dd17ae0
AM
1412019-07-26 Alan Modra <amodra@gmail.com>
142
143 * elf-bfd.h (struct output_elf_obj_tdata): Delete "linker" field.
144 (elf_linker): Don't define.
145 * elflink.c (bfd_elf_final_link): Don't set elf_linker.
146
c7c860d2
YS
1472019-07-25 YunQiang Su <syq@debian.org>
148
149 PR 24832
150 * elfxx-mips.c (mips_set_isa_flags): Default to MIPS 3 for 64-bit
151 mips inputs.
152
95967518
CZ
1532019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
154
155 * elf32-arc.c (bfd_get_32_me): Add a small description, fix
156 formating.
157 (reloc_type_to_name): Fix formating.
158 (arc_elf_object_p): Likewise.
159 (debug_arc_reloc): Likewise.
160 (arc_do_relocation): Likewise.
161
ef551643
CZ
1622019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
163
164 * elf32-arc.c (bfd_get_32_me): New function.
165 (bfd_put_32_me): Likewise.
166 (arc_elf_relax_section): Likewise.
167 (bfd_elf32_bfd_relax_section): Define.
168
cc364be6
AM
1692019-07-24 Alan Modra <amodra@gmail.com>
170
171 * elf-bfd.h (struct elf_backend_data): Return bfd_boolean from
172 elf_backend_final_write_processing, don't pass linker arg.
173 (_bfd_elf_final_write_processing): Update prototype.
174 * elf.c (_bfd_elf_write_object_contents): Adjust call.
175 (_bfd_elf_final_write_processing): Return error on incompatible
176 OSABI and has_gnu_osabi. Remove linker arg.
177 * elf-nacl.h (nacl_final_write_processing): Update prototype.
178 * elf-vxworks.h (elf_vxworks_final_write_processing): Likewise.
179 * elfxx-mips.h (_bfd_mips_final_write_processing): Likewise.
180 (_bfd_mips_elf_final_write_processing): Likewise.
181 * elf-hppa.h (elf_hppa_final_write_processing): Return status
182 and remove linker arg.
183 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
184 * elf-nacl.c (nacl_final_write_processing): Likewise.
185 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
186 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
187 * elf32-arm.c (arm_final_write_processing): Likewise.
188 (elf32_arm_final_write_processing): Likewise.
189 (elf32_arm_nacl_final_write_processing): Likewise.
190 (elf32_arm_vxworks_final_write_processing): Likewise.
191 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
192 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
193 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
194 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
195 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
196 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
197 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
198 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
199 * elf32-mips.c (mips_vxworks_final_write_processing): Likewise.
200 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
201 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
202 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
203 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
204 * elf32-ppc.c (ppc_final_write_processing): Likewise.
205 (ppc_elf_final_write_processing): Likewise.
206 (ppc_elf_vxworks_final_write_processing): Likewise.
207 * elf32-sparc.c (sparc_final_write_processing): Likewise.
208 (elf32_sparc_final_write_processing): Likewise.
209 (elf32_sparc_vxworks_final_write_processing): Likewise.
210 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
211 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
212 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
213 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
214 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
215 * elfxx-mips.c (_bfd_mips_final_write_processing): Likewise.
216 (_bfd_mips_elf_final_write_processing): Likewise.
217
c5e20471
AM
2182019-07-24 Alan Modra <amodra@gmail.com>
219
220 * elf-vxworks.c (elf_vxworks_final_write_processing): Don't return
221 early.
222 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
223 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
224
7613ca5e
AM
2252019-07-24 Alan Modra <amodra@gmail.com>
226
227 * elf32-visium.c (visium_elf_post_process_headers): Don't set
228 EI_OSABI header byte here.
229 (ELF_OSABI): Define.
230
df3a023b
AM
2312019-07-23 Alan Modra <amodra@gmail.com>
232
233 * elf-bfd.h (enum elf_gnu_osabi): Add elf_gnu_osabi_mbind.
234 * elf.c (_bfd_elf_make_section_from_shdr): Set elf_gnu_osabi_mbind.
235 (get_program_header_size): Formatting. Only test SH_GNU_MBIND
236 when elf_gnu_osabi_mbind is set.
237 (_bfd_elf_map_sections_to_segments): Likewise.
238 (_bfd_elf_init_private_section_data): Likewise.
239 (_bfd_elf_final_write_processing): Update comment.
240 * elf64-hppa.c (elf64_hppa_special_sections): Move .tbss entry.
241 (elf_backend_special_sections): Define without .tbss for linux.
242
06f44071
AM
2432019-07-23 Alan Modra <amodra@gmail.com>
244
245 * elf-bfd.h (enum elf_gnu_osabi): Rename from elf_gnu_symbols.
246 Remove none, any, all enums.
247 (struct elf_obj_tdata): Rename has_gnu_symbols field to has_gnu_osabi.
248 (_bfd_elf_final_write_processing): Declare.
249 * elf.c (_bfd_elf_write_object_contents): Unconditionally call
250 elf_backend_final_write_processing.
251 (_bfd_elf_post_process_headers): Move body of function to..
252 (_bfd_elf_final_write_processing): ..here, but set EI_OSABI byte
253 only when not already set. Adjust for rename.
254 * elfxx-target.h (elf_backend_final_write_processing): Default to
255 _bfd_elf_final_write_processing.
256 * elf-hppa.h (elf_hppa_final_write_processing): Call
257 _bfd_elf_final_write_processing.
258 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
259 * elf-nacl.c (nacl_final_write_processing): Likewise.
260 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
261 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
262 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
263 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
264 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
265 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
266 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
267 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
268 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
269 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
270 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
271 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
272 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
273 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
274 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
275 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
276 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
277 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
278 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
279 * elf32-arm.c (arm_final_write_processing): Split out from..
280 (elf32_arm_final_write_processing): ..here. Call
281 _bfd_elf_final_write_processing.
282 (elf32_arm_nacl_final_write_processing): Adjust.
283 * elfxx-mips.c (_bfd_mips_final_write_processing): Split out from..
284 (_bfd_mips_elf_final_write_processing): ..here. Call
285 _bfd_elf_final_write_processing.
286 * elfxx-mips.h (_bfd_mips_final_write_processing): Declare.
287 * elf32-mips.c (mips_vxworks_final_write_processing): Adjust.
288 * elf32-ppc.c (ppc_final_write_processing): Split out from..
289 (ppc_elf_final_write_processing): ..here. Call
290 _bfd_elf_final_write_processing.
291 (ppc_elf_vxworks_final_write_processing): Adjust.
292 * elf32-sparc.c (sparc_final_write_processing): Split out from..
293 (elf32_sparc_final_write_processing): ..here. Call
294 _bfd_elf_final_write_processing.
295 (elf32_sparc_vxworks_final_write_processing): Adjust.
296 * elf32-d10v.c (elf_backend_final_write_processing): Don't define.
297 * elf32-d30v.c (elf_backend_final_write_processing): Don't define.
298 * elf32-m68hc11.c (elf_backend_final_write_processing): Don't define.
299 * elf32-m68hc12.c (elf_backend_final_write_processing): Don't define.
300 * elf32-s12z.c (elf_backend_final_write_processing): Don't define.
301 * elf32-i386.c (elf_i386_check_relocs): Don't set has_gnu_symbols.
302 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
303 * elflink.c (elf_link_add_object_symbols): Likewise.
304 (elf_link_output_symstrtab): Set has_gnu_osabi for symbols here
305 instead.
306
1dd1bc4d
OM
3072019-07-23 Omar Majid <omajid@redhat.com>
308
309 * coffcode.h (coff_set_arch_mach_hook): Handle I386_APPLE_MAGIC,
310 I386_FREEBSD_MAGIC, I386_LINUX_MAGIC, I386_NETBSD_MAGIC,
311 AMD64_APPLE_MAGIC, AMD64_FREEBSD_MAGIC, AMD64_LINUX_MAGIC,
312 AMD64_NETBSD_MAGIC.
313 * peXXigen.c: Add comment about source of .NET magic numbers.
314
c213164a
AM
3152019-07-19 Alan Modra <amodra@gmail.com>
316
317 * reloc.c (BFD_RELOC_PPC64_TPREL34, BFD_RELOC_PPC64_DTPREL34),
318 (BFD_RELOC_PPC64_GOT_TLSGD34, BFD_RELOC_PPC64_GOT_TLSLD34),
319 (BFD_RELOC_PPC64_GOT_TPREL34, BFD_RELOC_PPC64_GOT_DTPREL34),
320 (BFD_RELOC_PPC64_TLS_PCREL): New pcrel tls relocs.
321 * elf64-ppc.c (ppc64_elf_howto_raw): Add howtos for pcrel tls relocs.
322 (ppc64_elf_reloc_type_lookup): Translate pcrel tls relocs.
323 (must_be_dyn_reloc, dec_dynrel_count): Add R_PPC64_TPREL64.
324 (ppc64_elf_check_relocs): Support pcrel tls relocs.
325 (ppc64_elf_tls_optimize, ppc64_elf_relocate_section): Likewise.
326 * bfd-in2.h: Regenerate.
327 * libbfd.h: Regenerate.
328
71c4e95a
AM
3292019-07-18 Alan Modra <amodra@gmail.com>
330
331 * elf64-ppc.c (ppc64_elf_relocate_section): Don't bother selecting
332 a TLS section symbol for edited relocs. Tighten TLS symbol/reloc
333 match test.
334
46e9995a
AM
3352019-07-18 Alan Modra <amodra@gmail.com>
336
337 * elf64-ppc.c (TLS_EXPLICIT): Define as 256.
338 (ppc64_elf_check_relocs): Don't store TLS_EXPLICIT even if char
339 is more than 8 bits.
340 (ppc64_elf_tls_optimize): Likewise. Make tls_set, tls_clear, and
341 tls_type vars unsigned int.
342 (ppc64_elf_relocate_section): Use r_type rather than TLS_EXPLICIT
343 to select r_type edit.
344
b00a0a86
AM
3452019-07-18 Alan Modra <amodra@gmail.com>
346
347 * elf32-ppc.c (TLS_GDIE): Rename from TLS_TPRELGD throughout file.
348 Correct comment.
349 * elf64-ppc.c (TLS_GDIE): Likewise.
350
0b147428
AM
3512019-07-18 Alan Modra <amodra@gmail.com>
352
353 * elf64-ppc.c (ppc64_elf_tls_optimize): Correct test for allowed
354 range of tp-relative offsets.
355
5b9d7a9a
AM
3562019-07-15 Alan Modra <amodra@gmail.com>
357
358 * elflink.c (_bfd_elf_fix_symbol_flags): If the def for an
359 alias is no longer bfd_link_hash_defined, clear the alias.
360
f26a3287
AM
3612019-07-13 Alan Modra <amodra@gmail.com>
362
363 * elflink.c (_bfd_elf_omit_section_dynsym_default): Don't keep
364 tls_sec.
365 (_bfd_elf_init_1_index_section): Prefer not using TLS sections.
366 (_bfd_elf_init_2_index_sections): Likewise.
367 * elf64-ppc.c (ppc64_elf_relocate_section): When emitting dynamic
368 relocations for local TLS symbols, use STN_UNDEF as the relocation
369 symbol.
370 * elf32-ppc.c (ppc_elf_relocate_section): Likewise, and don't
371 leave TLS symbol value in the addend.
372
62a47958
AM
3732019-07-08 Alan Modra <amodra@gmail.com>
374
375 PR 24785
376 * elf32-ppc.c (_bfd_elf_ppc_set_arch): Sanity check .PPC.EMB.apuinfo
377 size before reading first word.
378
1faa385f
NC
3792019-07-02 Nick Clifton <nickc@redhat.com>
380
381 PR 24717
382 * elf.c (is_debuginfo_file): New function.
383 (assign_file_positions_for_non_load_sections): Do not warn about
384 allocated sections outside of loadable segments if they are found
385 in a debuginfo file.
386 * elf-bfd.h (is_debuginfo_file): Prototype.
387
125f83f6
NC
3882019-07-02 Nick Clifton <nickc@redhat.com>
389
390 PR 24753
391 * compress.c (bfd_get_full_section_contents): Do not complain
392 about linker created sections that are larger than the file size.
393
4d83e8d9
CL
3942019-07-02 Christophe Lyon <christophe.lyon@linaro.org>
395
396 * bfd/elf32-arm.c (CMSE_STUB_NAME): New define.
397 (elf32_arm_get_stub_entry): Do not try to emit long-branch stubs
398 for CMSE stubs.
399 (arm_dedicated_stub_output_section_name): Use CMSE_STUB_NAME.
400
bb32413f
SP
4012019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
402
403 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Mark debug
404 sections when .text section contain secure entry functions
405 is marked.
406
539300fb
NC
4072019-07-01 Nick Clifton <nickc@redhat.com>
408
409 PR 23839
410 * elf32-arm.c (elf32_arm_update_relocs): Do not include the
411 section VMA in the offset used to update exidx relocs.
412
7e56c51c
NC
4132019-06-28 Nick Clifton <nickc@redhat.com>
414
415 PR 24708
416 * elf.c (_bfd_elf_slurp_version_tables): Check for an excessively
417 large version reference section.
418 * compress.c (bfd_get_full_section_contents): Check for an
419 uncompressed section whose size is larger than the file size.
420
999d6dff
AM
4212019-06-28 Alan Modra <amodra@gmail.com>
422
423 * format.c (bfd_check_format_matches): Don't match plugin target
424 if another target matches. Expand comment.
425 * targets.c (_bfd_target_vector): Move plugin_vec after all other
426 non-corefile targets, outside !SELECT_VECS.
427 * config.bfd: Don't handle targ=plugin here.
428 * configure.ac: Don't add plugin to enable_targets or handle in
429 target loop setting selvecs and other target vars.
430 * configure: Regenerate.
431
a68aa5d3
NC
4322019-06-26 Nick Clifton <nickc@redhat.com>
433
434 PR 24703
435 * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add error
436 messages for failures.
437 * mach-o.c (bfd_mach_o_canonicalize_relocs): Set an bfd error code
438 if returning an error value.
439
ab9f654c
JB
4402019-06-25 Jan Beulich <jbeulich@suse.com>
441
442 * elf-properties.c (elf_find_and_remove_property): Rename last
443 parameter. Mention it in comment.
444
04b865dc
JW
4452019-06-24 Ilia Diachkov <ilia.diachkov@optimitech.com>
446
447 * elfnn-riscv.c (_bfd_riscv_relax_lui): Delete early exit when
448 SEC_MERGE or SEC_CODE flags are set.
449 (_bfd_riscv_relax_section): New local symtype. Set sym_sec and
450 symtype consistently. Don't include sec_addr (sym_sec) in symval.
451 Add check for SEC_INFO_TYPE_MERGE and call _bfd_merged_section_offset.
452 Add sec_addr (sym_sec) after handling merge sections.
453
f93ab3a0
L
4542019-06-24 H.J. Lu <hongjiu.lu@intel.com>
455
456 PR ld/24721
457 * elf-properties.c (elf_merge_gnu_property_list): Remove the
458 property after reporting property removal.
459
bb22a418
AM
4602019-06-23 Alan Modra <amodra@gmail.com>
461
462 PR 24704
463 * elf64-ppc.c (R_PPC64_GOT16_DS): Don't set has_gotrel.
464 (ppc64_elf_edit_toc): Don't remove R_PPC64_GOT16_DS got entries.
465 Reduce range of offsets allowed for other GOT relocs.
466
14b2a8e4
AM
4672019-06-23 Alan Modra <amodra@gmail.com>
468
469 PR 24689
470 * elfcode.h (elf_object_p): Warning fix.
471
890f750a
AM
4722019-06-21 Alan Modra <amodra@gmail.com>
473
474 PR 24689
475 * elfcode.h (elf_object_p): Check type of e_shstrndx section.
476
6f5601c4
AM
4772019-06-19 Alan Modra <amodra@gmail.com>
478
479 PR 24697
480 * elf32-ppc.c (ppc_elf_relocate_section): Don't read insn for
481 R_PPC_EMB_RELSDA. Mask low bit of R_PPC_EMB_SDA21 r_offset.
482
4a4e7361
AM
4832019-06-19 Alan Modra <amodra@gmail.com>
484
485 * elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for
486 functions that require r2 valid to use local entry.
487 (ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise.
488
39c05d94
SN
4892019-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
490
491 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_dynrelocs): Remove.
492 (elfNN_aarch64_size_dynamic_sections): Remove loc_hash_table traversal
493 with elfNN_aarch64_allocate_local_dynrelocs.
494
e30d1fa1
SN
4952019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
496
497 * elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32.
498
3a3a077c
AM
4992019-06-14 Alan Modra <amodra@gmail.com>
500
501 * Makefile.in: Regenerate.
502 * configure: Regenerate.
503
d4b87b1e
AM
5042019-06-14 Alan Modra <amodra@gmail.com>
505
506 * elf64-ppc.c: Fix comments involving paddi.
507
62e0492f
AL
5082019-06-12 Adam Lackorzymski <adam@os.inf.tu-dresden.de>
509
510 PR 24643
511 * elf32-arm.c (arm_elf_find_function): Fail if the symol table is
512 absent, or the bfd is not in the ELF formart.
513 * elfnn-aarch64.c (aarch64_elf_find_function): Likewise.
514
58e07198
CZ
5152019-06-10 Christos Zoulas <christos@zoulas.com>
516
517 PR 24650
518 * elf.c (elfcore_make_auxv_note_section): New function.
519 (elfcore_grok_note): Use it.
520 (elfcore_grok_freebsd_note): Likewise.
521 (elfcore_grok_openbsd_note): Likewise.
522 (elfcore_grok_netbsd_note): Likewise. Plus add support for
523 NT_NETBSDCORE_AUXV notes.
524
237df8fe
SD
5252019-06-06 Sudakshina Das <sudi.das@arm.com>
526
527 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Set
528 alignment of the new gnu property section.
529
8bf6d176
SD
5302019-06-06 Sudakshina Das <sudi.das@arm.com>
531
532 * bfd-in.h: Change comment.
533 * bfd-in2.h: Regenerate.
534 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update warning.
535 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties):
536 Likwise.
537
1e129bbe
FS
5382019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
539
540 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>:
541 Remove overflow check.
542
0f4a61b4
AM
5432019-05-28 Alan Modra <amodra@gmail.com>
544
545 PR 24596
546 * cofflink.c (coff_link_check_archive_element): Don't assume
547 element is a coff object file after calling add_archive_element.
548
94667ab1
AM
5492019-05-28 Alan Modra <amodra@gmail.com>
550
551 PR 24596
552 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't
553 attempt to set sh_entsize for excluded PLT section.
554
28fbeab8
AM
5552019-05-28 Alan Modra <amodra@gmail.com>
556
557 PR 24596
558 * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt
559 to emit R_ALPHA_GOTTPREL in PIEs, for which no space is
560 allocated in alpha_dynamic_entries_for_reloc.
561
a0f6fd21
AM
5622019-05-28 Alan Modra <amodra@gmail.com>
563
564 PR 24596
565 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault
566 on NULL output_section.
567 * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf.
568
c83004d5
AM
5692019-05-28 Alan Modra <amodra@gmail.com>
570
571 PR 24596
572 * elf32-m68k.c (elf_m68k_get_got_entry): Don't create a new
573 entry when MUST_FIND. Abort when MUST_FIND not found.
574 (elf_m68k_get_bfd2got_entry): Likewise.
575 (elf_m68k_relocate_section): Remove now useless assert.
576
586338b8
AM
5772019-05-28 Alan Modra <amodra@gmail.com>
578
579 PR 24596
580 * elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd
581 from bfd_link_info, not an output section owner.
582 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise.
583 (elf_hppa_final_link_relocate): Likewise.
584
a7b34aba
AM
5852019-05-28 Alan Modra <amodra@gmail.com>
586
587 PR 24596
588 * aout-tic30.c (MY_bfd_final_link): Don't segfault on missing
589 create_object_symbols_section, obj_textsec, obj_datasec or
590 obj_bsssec. Fix other errors in placement.
591 * config.bfd: Obsolete tic30-aout.
592
0eb32b6e
AM
5932019-05-28 Alan Modra <amodra@gmail.com>
594
595 PR 24596
596 * dwarf2.c (save_section_vma, section_vma_same): Check for NULL
597 end of section list as well as section_count.
598 * xcofflink.c (xcoff_link_add_symbols): Fix temporarily changed
599 section list before returning error.
600
ce5aecf8
AM
6012019-05-27 Alan Modra <amodra@gmail.com>
602
603 * elf.c (bfd_elf_set_group_contents): Exit on zero size section.
604
3d7d6a6f
AM
6052019-05-27 Alan Modra <amodra@gmail.com>
606
607 PR 24596
608 * linker.c (_bfd_generic_link_output_symbols): Heed BSF_KEEP.
609
823710d5
SN
6102019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
611
612 * elfnn-aarch64.c (elfNN_aarch64_merge_symbol_attribute): New function.
613 (struct elf_aarch64_link_hash_table): Add variant_pcs member.
614 (elfNN_aarch64_allocate_dynrelocs): Update variant_pcs.
615 (elfNN_aarch64_size_dynamic_sections): Add DT_AARCH64_VARIANT_PCS.
616 (elf_backend_merge_symbol_attribute): Define.
617
405b5bd8
AM
6182019-05-24 Alan Modra <amodra@gmail.com>
619
620 * po/SRC-POTFILES.in: Regenerate.
621
04bdff6a
AM
6222019-05-24 Alan Modra <amodra@gmail.com>
623
624 * elf64-ppc.c: Comment on powerxx _notoc stub variants.
625 (LI_R11_0, LIS_R11, ORI_R11_R11_0, SLDI_R11_R11_34): Define.
626 (PADDI_R12_PC, PLD_R12_PC, D34, HA34): Define.
627 (struct ppc_link_hash_table): Add powerxx_stubs.
628 (ppc64_elf_check_relocs): Set powerxx_stubs.
629 (build_powerxx_offset, size_powerxx_offset),
630 (num_relocs_for_powerxx_offset),
631 (emit_relocs_for_powerxx_offset): New functions.
632 (plt_stub_size): Size powerxx stubs.
633 (ppc_build_one_stub): Emit powerxx stubs.
634 (ppc_size_one_stub): Size powerxx stubs. Omit .eh_frame for
635 powerxx stubs.
636
4a421c53
AM
6372019-05-24 Alan Modra <amodra@gmail.com>
638
639 * elf64-ppc.c (ppc64_elf_check_relocs): Set has_gotrel for
640 R_PPC64_GOT_PCREL34.
641 (xlate_pcrel_opt): New function.
642 (ppc64_elf_edit_toc): Handle R_PPC64_GOT_PCREL34.
643 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
644 for R_PPC64_GOT_PCREL34. Implement R_PPC64_PCREL_OPT optimisation.
645
5663e321
AM
6462019-05-24 Alan Modra <amodra@gmail.com>
647
648 * reloc.c (BFD_RELOC_PPC64_D34, BFD_RELOC_PPC64_D34_LO),
649 (BFD_RELOC_PPC64_D34_HI30, BFD_RELOC_PPC64_D34_HA30),
650 (BFD_RELOC_PPC64_PCREL34, BFD_RELOC_PPC64_GOT_PCREL34),
651 (BFD_RELOC_PPC64_PLT_PCREL34),
652 (BFD_RELOC_PPC64_ADDR16_HIGHER34, BFD_RELOC_PPC64_ADDR16_HIGHERA34),
653 (BFD_RELOC_PPC64_ADDR16_HIGHEST34, BFD_RELOC_PPC64_ADDR16_HIGHESTA34),
654 (BFD_RELOC_PPC64_REL16_HIGHER34, BFD_RELOC_PPC64_REL16_HIGHERA34),
655 (BFD_RELOC_PPC64_REL16_HIGHEST34, BFD_RELOC_PPC64_REL16_HIGHESTA34),
656 (BFD_RELOC_PPC64_D28, BFD_RELOC_PPC64_PCREL28): New reloc enums.
657 * elf64-ppc.c (PNOP): Define.
658 (ppc64_elf_howto_raw): Add reloc howtos for new relocations.
659 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc numbers.
660 (ppc64_elf_ha_reloc): Adjust addend for highera34 and highesta34
661 relocs.
662 (ppc64_elf_prefix_reloc): New function.
663 (struct ppc_link_hash_table): Add notoc_plt.
664 (is_branch_reloc): Add R_PPC64_PLTCALL_NOTOC.
665 (is_plt_seq_reloc): Add R_PPC64_PLT_PCREL34,
666 R_PPC64_PLT_PCREL34_NOTOC, and R_PPC64_PLTSEQ_NOTOC.
667 (ppc64_elf_check_relocs): Handle pcrel got and plt relocs. Set
668 has_pltcall for section on seeing R_PPC64_PLTCALL_NOTOC. Handle
669 possible need for dynamic relocs on non-pcrel powerxx relocs.
670 (dec_dynrel_count): Handle non-pcrel powerxx relocs.
671 (ppc64_elf_inline_plt): Handle R_PPC64_PLTCALL_NOTOC.
672 (toc_adjusting_stub_needed): Likewise.
673 (ppc64_elf_tls_optimize): Handle R_PPC64_PLTSEQ_NOTOC.
674 (ppc64_elf_relocate_section): Handle new powerxx relocs.
675 * bfd-in2.h: Regenerate.
676 * libbfd.h: Regenerate.
677
fd0de36e
JM
6782019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
679
45d5293f
JM
680 * config.bfd (targ_cpu): Process bpf-*-none only if BFD64.
681 * configure.ac: Set target_size=64 for bpf_elf64_le_vec and
682 bpf_elf64_be_vec.
683 * configure: Regenerate.
684
6852019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
686
fd0de36e
JM
687 * configure: Regenerated.
688 * Makefile.am (ALL_MACHINES): Add cpu-bpf.lo.
689 (ALL_MACHINES_CFILES): Add cpu-bpf.c.
690 (BFD64_BACKENDS): Add elf64-bpf.lo.
691 (BFD64_BACKENDS_CFILES): Add elf64-bpf.c.
692 * Makefile.in (SOURCE_HFILES): Regenerate.
693 * config.bfd (targ_cpu): Handle bpf-*-* targets.
694 * cpu-bpf.c: New file.
695 * elf64-bpf.c: Likewise.
696 * targets.c (_bfd_target_vector): Add bpf_elf64_be_vec and
697 bpf_elf64_le_vec.
698 * archures.c: Define architecture bfd_arch_bpf and machine
699 bfd_arch_bpf.
700 * reloc.c: Define BFD relocations used by the BPF target.
701 * bfd-in2.h: Regenerated.
702 * libbfd.h: Likewise.
703
b0f4fbf8
AM
7042019-05-22 Alan Modra <amodra@gmail.com>
705
706 * elf32-arm.c (arm_allocate_glue_section_space): Clear section
707 contents.
708
9ec2f606
AM
7092019-05-22 Alan Modra <amodra@gmail.com>
710
711 * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
712 processing on "size error in section".
713
4decd602
AM
7142019-05-22 Alan Modra <amodra@gmail.com>
715
716 * som.c (som_bfd_free_cached_info): Call
717 _bfd_generic_close_and_cleanup.
718
b474a202
FS
7192019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
720
721 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Generate error
722 for TLS_TPREL_HI16(/LO16) relocations in shared library.
723
304f09d0
FS
7242019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
725
726 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Add NULL pointer
727 checks. Search the RELA table for n64 relocations.
728
3734320d
MF
7292019-05-21 Matthew Fortune <matthew.fortune@mips.com>
730 Faraz Shahbazker <fshahbazker@wavecomp.com>
731
732 * elfxx-mips.c (LA25_BC): New macro.
733 (mips_elf_link_hash_table)<compact_branches>: New field.
734 (STUB_JALRC): New macro.
735 (mipsr6_o32_exec_plt0_entry_compact): New array.
736 (mipsr6_n32_exec_plt0_entry_compact): Likewise.
737 (mipsr6_n64_exec_plt0_entry_compact): Likewise.
738 (mipsr6_exec_plt_entry_compact): Likewise.
739 (mips_elf_create_la25_stub): Use BC instead of J for stubs
740 when compact_branches is true.
741 (_bfd_mips_elf_finish_dynamic_symbol): Choose the compact
742 PLT for MIPSR6 with compact_branches. Do not reorder the
743 compact branches PLT. Switch the lazy stub for MIPSR6
744 with compact_branches to use JALRC.
745 (mips_finish_exec_plt): Choose the compact PLT0 for MIPSR6
746 when compact_branches is true.
747 (_bfd_mips_elf_compact_branches): New function.
748 * elfxx-mips.h (_bfd_mips_elf_compact_branches): New prototype.
749
64672071
TC
7502019-05-21 Tamar Christina <tamar.christina@arm.com>
751
752 PR ld/24373
753 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
754 Fix print formatter.
755
e6f65e75
AV
7562019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
757
758 PR 24460
759 * elf32-arm.c (get_value_helper): Remove.
760 (elf32_arm_final_link_relocate): Fix branch future relocations.
761
739b5c9c
TC
7622019-05-21 Tamar Christina <tamar.christina@arm.com>
763
764 PR ld/24373
765 * bfd-in.h (enum erratum_84319_opts): New
766 (bfd_elf64_aarch64_set_options, bfd_elf32_aarch64_set_options): Change
767 int to enum erratum_84319_opts.
768 * bfd-in2.h: Regenerate.
769 * elfnn-aarch64.c (struct elf_aarch64_link_hash_table): Change
770 fix_erratum_843419 to use new enum, remove fix_erratum_843419_adr.
771 (_bfd_aarch64_add_stub_entry_after): Conditionally create erratum stub.
772 (aarch64_size_one_stub): Conditionally size erratum 843419 stubs.
773 (_bfd_aarch64_resize_stubs): Amend comment.
774 (elfNN_aarch64_size_stubs): Don't generate stubs when no workaround
775 requested.
776 (bfd_elfNN_aarch64_set_options): Use new fix_erratum_843419 enum.
777 (_bfd_aarch64_erratum_843419_branch_to_stub): Implement selection of
778 erratum workaround.
779 (clear_erratum_843419_entry): Update erratum conditional.
780
7622049e
SKS
7812019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
782
783 PR ld/24571
784 * bfd/elf32-avr.c (elf32_avr_relax_section): Adjust range check
785 when computing distance_short_enough.
786
338ba755
SKS
7872019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
788
789 PR ld/24564
790 * bfd/elf32-avr.c (avr_relative_distance_considering_wrap_around):
791 Wrap around even if distance equals avr_pc_wrap_around.
792
999b073b
NC
7932019-05-20 Nick Clifton <nickc@redhat.com>
794
795 * po/fr.po: Updated French translation.
796
a7ad558c
AV
7972019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
798
799 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add case for Tag_MVE_arch.
800
a2699ef2
AM
8012019-05-16 Alan Modra <amodra@gmail.com>
802
803 * elf32-arm.c (elf32_arm_write_section): Revert last change.
804
3a1bb98c
AM
8052019-05-15 Alan Modra <amodra@gmail.com>
806
807 * elf32-arm.c (elf32_arm_write_section): Don't leave
808 error case of STM32L4XX_ERRATUM_BRANCH_TO_VENEER with
809 unitialised section contents.
810
37d0d091
JH
8112019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
812
813 PR 19921
814 * verilog.c: (VerilogDataWidth): New variable.
815 (verilog_write_record): Emit bytes in VerilogDataWidth bundles.
816
79299211
NC
8172019-05-08 Nick Clifton <nickc@redhat.com>
818
819 PR 24523
820 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Return TRUE
821 rather than FALSE if encountering a non-ELF file.
822
e1cbf07a
AM
8232019-05-06 Alan Modra <amodra@gmail.com>
824
825 * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error.
826
334d91b9
AM
8272019-05-06 Alan Modra <amodra@gmail.com>
828
829 * reloc.c (BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA),
830 (BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA):
831 Sort before BFD_RELOC_PPC64_DTPREL16_HIGHESTA entry.
832 * libbfd.h: Regenerate.
833 * bfd-in2.h: Regenerate.
834
a288c270
AM
8352019-05-04 Alan Modra <amodra@gmail.com>
836
837 PR 24511
838 * syms.c (coff_section_type): Only allow '.', '$' and numeric
839 following the standard section names.
840 (bfd_decode_symclass): Prioritize section flag tests in
841 decode_section_type before name tests in coff_section_type.
842 * plugin.c (bfd_plugin_canonicalize_symtab): Init fake_section
843 and fake_common_section using BFD_FAKE_SECTION. Use "fake" as
844 their names and choose standard .text section flags for
845 fake_section.
846
2cdc1a97
NC
8472019-05-02 Nick Clifton <nickc@redhat.com>
848
849 PR 24493
850 * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
851 .gnu.debugaltlink sections as debugging sections.
852
066f4018
AM
8532019-04-30 Alan Modra <amodra@gmail.com>
854
855 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel.
856 (struct _ppc64_elf_section_data): Likewise.
857 (ppc64_elf_check_relocs): Set above fields.
858 (ppc64_elf_edit_toc): Add a pass over GOT relocs.
859 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
860 when possible.
861
c54f1524
L
8622019-04-26 H.J. Lu <hongjiu.lu@intel.com>
863
864 PR ld/24486
865 * elflink.c (elf_link_output_extsym): Don't complain undefined
866 weak dynamic reference.
867
68bb0359
SD
8682019-04-25 Sudakshina Das <sudi.das@arm.com>
869
870 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): Remove.
871 (PLT_BTI_TLSDESC_ENTRY_SIZE): Remove.
872 (PLT_PAC_ENTRY_SIZE, PLT_BTI_PAC_ENTRY_SIZE): Remove.
873 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): Update.
874 (elfNN_aarch64_small_plt0_pac_entry): Remove.
875 (elfNN_aarch64_small_plt0_bti_pac_entry): Remove.
876 (elfNN_aarch64_small_plt0_bti_entry): Update.
877 (elfNN_aarch64_small_plt_bti_entry): Update.
878 (elfNN_aarch64_small_plt_pac_entry): Update.
879 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): Update.
880 (setup_plt_values): Setup new entries.
881 (elfNN_aarch64_finish_dynamic_sections): Remove size change.
882 (elfNN_aarch64_plt_sym_val): Likewise.
883
79b8e8ab
JW
8842019-04-22 Jim Wilson <jimw@sifive.com>
885
886 * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
887
fce97736
AM
8882019-04-19 Alan Modra <amodra@gmail.com>
889
890 * elf32-s12z.c (elf_backend_can_gc_sections): Don't define
891
9a7f0679
L
8922019-04-17 H.J. Lu <hongjiu.lu@intel.com>
893
894 * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not
895 building shared object.
896 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Likewise.
897
4e84a8f8
L
8982019-04-17 H.J. Lu <hongjiu.lu@intel.com>
899
900 PR ld/24458
901 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86
902 linker_def.
903
32c36c3c
AV
9042019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
905
906 * reloc.c (BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM): New internal
907 relocation.
908 * bfd-in2.h: Regenerate.
909 * libbfd.h: Likewise.
910
60f993ce
AV
9112019-04-15 Sudakshina Das <sudi.das@arm.com>
912
913 * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New.
914 * bfd-in2.h: Regenerated.
915 * libbfd.h: Regenerated.
916
f6b2b12d
AV
9172019-04-15 Sudakshina Das <sudi.das@arm.com>
918
919 * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation.
920 * bfd-in2.h: Regenerated.
921 * libbfd.h: Likewise.
922
1889da70
AV
9232019-04-15 Sudakshina Das <sudi.das@arm.com>
924
925 * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New.
926 * bfd-in2.h: Regenerated.
927 * libbfd.h: Regenerated.
928 * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13.
929 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13
930 and R_ARM_THM_BF12 together.
931 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13.
932
1caf72a5
AV
9332019-04-15 Sudakshina Das <sudi.das@arm.com>
934
935 * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New
936 * libbfd.h: Regenerated.
937 * bfd-in2.h: Regenerated.
938 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18.
939 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19
940 and R_ARM_THM_BF18 together.
941 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19.
942
e5d6e09e
AV
9432019-04-15 Sudakshina Das <sudi.das@arm.com>
944
945 * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum.
946 * bfd-in2.h: Regenerated.
947 * libbfd.h: Regenerated.
948 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16.
949 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17
950 and R_ARM_THM_BF16 together.
951 (get_value_helper): New reloc helper.
952 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16.
953
e12437dc
AV
9542019-04-15 Sudakshina Das <sudi.das@arm.com>
955
956 * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
957 * bfd-in2.h: Regenerate.
958 * libbfd.h: Regenerate.
959
031254f2
AV
9602019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
961
962 * archures.c (bfd_mach_arm_8_1M_MAIN): Define.
963 * bfd-in2.h: Regenerate.
964 * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline.
965 * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline
966 and update assert.
967 (using_thumb2): Likewise.
968 (using_thumb2_bl): Update assert.
969 (arch_has_arm_nop): Likewise.
970 (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline.
971 (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging.
972
233a0083
L
9732019-04-11 H.J. Lu <hongjiu.lu@intel.com>
974
975 * elf-linker-x86.h (elf_x86_cet_report): New.
976 (elf_linker_x86_params): Add cet_report.
977 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
978 missing IBT and SHSTK properties if needed.
979
a0ea3a14
L
9802019-04-11 H.J. Lu <hongjiu.lu@intel.com>
981
ca4e6331 982 PR ld/24436
a0ea3a14
L
983 * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of
984 "h != NULL". Don't check "h != NULL" before calling.
985 bfd_elf_gc_record_vtentry.
986 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
987 * elf32-bfin.c (bfin_check_relocs): Likewise.
988 * elf32-cris.c (cris_elf_check_relocs): Likewise.
989 * elf32-csky.c (csky_elf_check_relocs): Likewise.
990 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
991 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
992 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
993 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
994 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
995 * elf32-i386.c (elf_i386_check_relocs): Likewise.
996 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
997 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
998 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
999 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
1000 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
1001 * elf32-metag.c (elf_metag_check_relocs): Likewise.
1002 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
1003 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
1004 * elf32-s390.c (elf_s390_check_relocs): Likewise.
1005 * elf32-sh.c (sh_elf_check_relocs): Likewise.
1006 * elf32-v850.c (v850_elf_check_relocs): Likewise.
1007 * elf32-vax.c (elf_vax_check_relocs): Likewise.
1008 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
1009 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
1010 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
1011 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1012 * elf64-s390.c (elf_s390_check_relocs): Likewise.
1013 * elf64-x86-64.c (elf_s390_check_relocs): Likewise.
1014 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
1015 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
1016 * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt
1017 VTENTRY entry.
1018
9bff840e
AM
10192019-04-11 Alan Modra <amodra@gmail.com>
1020
1021 PR 24435
1022 * elflink.c (elf_link_add_object_symbols): Don't read partial
1023 dynamic entries from fuzzed objects.
1024
ce12121b
TC
10252019-04-11 Tamar Christina <tamar.christina@arm.com>
1026
1027 PR ld/24302
1028 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit
1029 DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW.
1030 (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW.
1031
b05971a6
MF
10322019-04-10 Michael Forney <mforney@mforney.org>
1033
1034 PR 24427
1035 * doc/chew.c (free_words): Correctly free "push_text" strings.
1036
3ae61bb6
L
10372019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1038
1039 * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets.
1040
5f2a6b85
AM
10412019-04-08 Alan Modra <amodra@gmail.com>
1042
1043 * configure.ac (elfxx_x86): Define and use.
1044 * configure: Regenerate.
1045
5b9c07b2
L
10462019-04-06 H.J. Lu <hongjiu.lu@intel.com>
1047
1048 * elf-linker-x86.h: New file.
1049 * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params
1050 to get x86-specific linker options.
1051 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
1052 (elf_x86_64_check_relocs): Likewise.
1053 (elf_x86_64_relocate_section): Likewise.
1054 (elf_x86_64_link_setup_gnu_properties): Likewise.
1055 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise.
1056 (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
1057 (_bfd_elf_linker_x86_set_options): New function.
1058 * elfxx-x86.h: Include "elf-linker-x86.h".
1059 (elf_x86_link_hash_table): Add params.
1060
4b24dd1a
AM
10612019-04-03 Alan Modra <amodra@gmail.com>
1062
1063 * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c,
1064 * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c,
1065 * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c,
1066 * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c,
1067 * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c,
1068 * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes.
1069
87f98bac
JW
10702019-04-02 Jim Wilson <jimw@sifive.com>
1071
1072 PR 24389
1073 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
1074 ELF header flags to after check for ELF object file. Loop through
1075 sections looking for code sections, if none, then skip ABI checks.
1076
ae2b14c7
JW
10772019-03-30 Andrew Waterman <andrew@sifive.com>
1078
1079 * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for
1080 rd == X_RA case.
1081
2487ef07
MF
10822019-03-29 Max Filippov <jcmvbkbc@gmail.com>
1083
1084 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
1085 info->export_dynamic to the conditional.
1086
242a1159
AM
10872019-03-28 Alan Modra <amodra@gmail.com>
1088
1089 PR 24392
1090 * configure.ac: Invoke AC_CHECK_SIZEOF(int).
1091 * configure: Regenerate.
1092 * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
1093 workaround with SIZEOF_LONG vs. SIZEOF_INT check.
1094 * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
1095 * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
1096 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
1097
a9f5a551
JW
10982019-03-21 Jim Wilson <jimw@sifive.com>
1099
1100 PR 24365
1101 * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check,
1102 verify sym non-NULL before using. Add identical check using h.
1103
4e539114
SD
11042019-03-21 Sudakshina Das <sudi.das@arm.com>
1105
1106 * elf-bfd.h (struct elf_backend_data): Add argument to
1107 merge_gnu_properties.
1108 * elf-properties.c (elf_merge_gnu_properties): Add argument to
1109 itself and while calling bed->merge_gnu_properties.
1110 (elf_merge_gnu_property_list): Update the calls for
1111 elf_merge_gnu_properties.
1112 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
1113 of --force-bti warning and add argument.
1114 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
1115 warning.
1116 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
1117 * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
1118 declaration.
1119
acde6c6b
SD
11202019-03-20 Sudakshina Das <sudi.das@arm.com>
1121
1122 * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define.
1123 * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare.
1124 (elf_backend_fixup_gnu_properties): Define for AArch64.
1125
8cd1fe1b
AM
11262019-03-18 Alan Modra <amodra@gmail.com>
1127
1128 PR 24355
1129 * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
1130 for local iplt syms with ent->plt.offset == -1. Remove ineffective
1131 attempt at writing glink stubs only once.
1132
6835821b
AM
11332019-03-16 Alan Modra <amodra@gmail.com>
1134
1135 PR 24337
1136 * elf.c (_bfd_elf_rela_local_sym): Revert last change.
1137 (_bfd_elf_rel_local_sym): Likewise.
1138 * elflink.c (elf_link_input_bfd): Use bfd_und_section for
1139 section of symbols with unrecognized shndx.
1140
2219ae0b
L
11412019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1142
1143 PR ld/24267
1144 * coffgen.c (_bfd_coff_section_already_linked): Skip discarded
1145 section.
1146 * cofflink.c (coff_link_add_symbols): Check for symbols defined
1147 in discarded section.
1148
fe3fef62
AM
11492019-03-15 Alan Modra <amodra@gmail.com>
1150
1151 PR 24339
1152 * elflink.c (elf_link_add_object_symbols): Bail out on a local
1153 symbol after globals if elf_bad_symtab is not set.
1154
1ff31e13
AM
11552019-03-15 Alan Modra <amodra@gmail.com>
1156
1157 PR 24337
1158 * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec.
1159 (_bfd_elf_rel_local_sym): Likewise.
1160
f55b1e32
AM
11612019-03-15 Alan Modra <amodra@gmail.com>
1162
1163 PR 24336
1164 * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed
1165 object files with sh_size not a multiple of sh_entsize.
1166
da0d12d2
L
11672019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1168
418d4036
L
1169 PR ld/24338
1170 * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt
1171 input with bad relocation.
1172
117322019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1174
da0d12d2
L
1175 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
1176
d7f848c3
NC
11772019-03-14 Nick Clifton <nickc@redhat.com>
1178
1179 PR 24334
1180 * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field.
1181 (save_section_vma): Initialise field to the number of entries in
1182 the sec_vma table.
1183 (section_vma_same): Check that the number of entries in the
1184 sec_vma table matches the number of sections in the bfd.
1185
6cc71b82
NC
11862019-03-14 Nick Clifton <nickc@redhat.com>
1187
1188 PR 24333
1189 * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL
1190 section owner pointer when adding the default symbol.
1191
be22c732
NC
11922019-03-14 Nick Clifton <nickc@redhat.com>
1193
1194 PR 24332
1195 * elflink.c (elf_link_add_object_symbols): Add new local variable
1196 extversym_end. Initialise it to point to the end of the version
1197 symbol table, if present. Check it when initialising and updating
1198 the ever pointer.
1199
1dbade74
SD
12002019-03-13 Sudakshina Das <sudi.das@arm.com>
1201
1202 * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New.
1203 (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New.
1204 (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs.
1205 (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC
1206 and PLT_PAC_PLT.
1207 (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC.
1208 (get_plt_type): Add case for DT_AARCH64_PAC_PLT.
1209 (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC.
1210
37c18eed
SD
12112019-03-13 Sudakshina Das <sudi.das@arm.com>
1212 Szabolcs Nagy <szabolcs.nagy@arm.com>
1213
1214 * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New.
1215 (aarch64_bti_pac_info): New.
1216 (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument.
1217 (bfd_elf32_aarch64_set_options): Likewise.
1218 * bfd-in2.h: Regenerate
1219 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New.
1220 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New.
1221 (elfNN_aarch64_small_plt0_bti_entry): New.
1222 (elfNN_aarch64_small_plt_bti_entry): New.
1223 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New.
1224 (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields.
1225 (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and
1226 tlsdesc_plt_entry_size fields.
1227 (elfNN_aarch64_link_hash_table_create): Initialise the new fields.
1228 (setup_plt_values): New helper function.
1229 (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and
1230 bti enable type.
1231 (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of
1232 fixed macros.
1233 (elfNN_aarch64_size_dynamic_sections): Likewise and add checks.
1234 (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers
1235 to plt stubs instead of fixed ones and update filling them according
1236 to the need for bti.
1237 (elfNN_aarch64_init_small_plt0_entry): Likewise.
1238 (elfNN_aarch64_finish_dynamic_sections): Likewise.
1239 (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New.
1240 (elfNN_aarch64_plt_sym_val): Update size accordingly.
1241 (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE
1242 is set.
1243 (bfd_elfNN_get_synthetic_symtab): Define.
1244 (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti
1245 and mising BTI NOTE SECTION.
1246
1247
cd702818
SD
12482019-03-13 Sudakshina Das <sudi.das@arm.com>
1249
1250 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude
1251 linker created inputs from merge.
1252 * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for
1253 GNU_PROPERTY_AARCH64_FEATURE_1_AND properties.
1254 (elfNN_aarch64_link_setup_gnu_properties): New.
1255 (elfNN_aarch64_merge_gnu_properties): New.
1256 (elf_backend_setup_gnu_properties): Define for AArch64.
1257 (elf_backend_merge_gnu_properties): Likewise.
1258 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define.
1259 (_bfd_aarch64_elf_parse_gnu_properties): Define.
1260 (_bfd_aarch64_elf_merge_gnu_properties): Define.
1261 * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare.
1262 (_bfd_aarch64_elf_parse_gnu_properties): Declare.
1263 (_bfd_aarch64_elf_merge_gnu_properties): Declare.
1264 (elf_backend_parse_gnu_properties): Define for AArch64.
1265
44b27f95
L
12662019-03-13 H.J. Lu <hongjiu.lu@intel.com>
1267
1268 PR ld/24322
1269 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly
1270 merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK].
1271
7a6e0d89
AM
12722019-03-12 Alan Modra <amodra@gmail.com>
1273
1274 * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add
1275 nmemb parameter. Use bfd_alloc2.
1276 (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls.
1277 Delete assertion.
1278 (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2.
1279 (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls.
1280 * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation
1281 doesn't overflow.
1282 * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix.
1283 (assign_section_numbers): Style fix.
1284 (swap_out_syms): Use bfd_malloc2.
1285 (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't
1286 overflow.
1287 (_bfd_elf_make_empty_symbol): Style fix.
1288 (elfobj_grok_stapsdt_note_1): Formatting.
1289 * elfcode.h (elf_object_p): Use bfd_alloc2.
1290 (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise.
1291 (elf_slurp_symbol_table): Use bfd_zalloc2.
1292 (elf_slurp_reloc_table): Use bfd_alloc2.
1293 (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2.
1294 * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure
1295 size calculation doesn't overflow.
1296 (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise.
1297 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
1298 * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version.
1299
ebd2263b
AM
13002019-03-08 Alan Modra <amodra@gmail.com>
1301
1302 PR 24311
1303 * merge.c (merge_strings): Return secinfo. Don't pad section
1304 to alignment here.
1305 (_bfd_merge_sections): Pad section to alignment here, if input
1306 sections contributing to merged output all pad to alignment.
1307 Formatting.
1308
219d6836
NC
13092019-03-06 Nick Clifton <nickc@redhat.com>
1310
1311 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
1312 table pointer.
1313 * coffgen.c (coff_find_nearest_line_with_names): Do not call
1314 _bfd_dwarf2_find_symbol_bias if there is no symbol table available.
1315
24801b15
AK
13162019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
1317
1318 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
1319 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1320
1321 PR 20113
1322 * elf32-s390.c (allocate_dynrelocs): Update comment.
1323
4ffd2909
TC
13242019-02-28 Tamar Christina <tamar.christina@arm.com>
1325
1326 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
1327
eed5def8
NC
13282019-02-28 Nick Clifton <nickc@redhat.com>
1329
1330 PR 24273
1331 * elf.c (bfd_elf_string_from_elf_section): Check for a string
1332 section that is not NUL terminated.
1333
5cfe428c
L
13342019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1335
1336 PR ld/24276
1337 * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
1338 by linker when checking copy reloc on protected symbol.
1339
f616c36b
AM
13402019-02-24 Alan Modra <amodra@gmail.com>
1341
1342 PR 24144
1343 * pdp11.c (set_section_contents): Revert 2015-02-24 change.
1344
eed62915
MF
13452019-02-20 Eric Tsai <erictsai@cadence.com>
1346
1347 * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
1348 sections between the call site and call destination and adjust
1349 call distance by the largest alignment.
1350
e6c3b5bf
AH
13512019-02-20 Alan Hayward <alan.hayward@arm.com>
1352
1353 * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
1354 * elf.c (elfcore_grok_aarch_pauth): New function.
1355 (elfcore_grok_note): Check for NT_ARM_PAC_MASK.
1356 (elfcore_write_aarch_pauth): New function.
1357 (elfcore_write_register_note): Check for AArch64 pauth section.
1358
34d75fb5
AM
13592019-02-20 Alan Modra <amodra@gmail.com>
1360
1361 PR 24225
1362 * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
1363 return value.
1364
edd01d07
MR
13652019-02-20 Michael Roitzsch <reactorcontrol@icloud.com>
1366
1367 * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
1368 Darwin hosts, not just or1k.
1369 * configure: Regenerate.
1370
8abac803
AM
13712019-02-20 Alan Modra <amodra@gmail.com>
1372
1373 PR 24236
1374 * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
1375 sentinel NUL to string buffer nearer to loop where it is used.
1376 Don't go past sentinel when scanning strings, and don't write
1377 NUL again.
1378 * archive.c (do_slurp_coff_armap): Simplify string handling to
1379 archive64.c style.
1380
179f2db0
AM
13812019-02-19 Alan Modra <amodra@gmail.com>
1382
1383 PR 24235
1384 * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
1385 attempting to prevent read past end of section.
1386
a31b8bd9
AM
13872019-02-18 Alan Modra <amodra@gmail.com>
1388
1389 PR 24225
1390 * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
1391 PRIx64 to generate warning messages. Print local sym names too.
1392
a0e90a73
CZ
13932019-02-09 Vineet Gupta <vgupta@synopsys.com>
1394
1395 * elf32-arc (INIT_SYM_STRING): Delete.
1396 (FINI_SYM_STRING): Likewise.
1397 (init_str): Likewise.
1398 (fini_str): Likewise.
1399
482f3505
AM
14002019-02-08 Alan Modra <amodra@gmail.com>
1401
1402 * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
1403 for bss-plt" warning to make it an error.
1404
b2abe1bd
EB
14052019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1406
1407 PR ld/18841
1408 * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
1409 reloc_class_ifunc for ifunc symbols.
1410 * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
1411
68a09132
EB
14122019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1413
1414 * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
1415 <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
1416
2012bf01
NC
14172019-02-07 Nick Clifton <nickc@redhat.com>
1418
1419 * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
1420 into the definitely obsolete list.
1421
83924b38
L
14222019-02-05 H.J. Lu <hongjiu.lu@intel.com>
1423
1424 PR ld/24151
1425 * elf64-x86-64.c (elf_x86_64_need_pic): Check
1426 SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
1427 (elf_x86_64_relocate_section): Move PIC check for PC-relative
1428 relocations to ...
1429 (elf_x86_64_check_relocs): Here.
1430 (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
1431 to check if a symbol is defined in a non-shared object.
1432 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
1433
453f8e1e
SDJ
14342019-01-21 Sergio Durigan Junior <sergiodj@redhat.com>
1435
1436 * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
1437 of 'labs' (and fix GCC warning).
1438
9ed1348c
NC
14392019-01-25 Nick Clifton <nickc@redhat.com>
1440
1441 * po/ru.po: Updated Russian translation.
1442
d9938630
NC
14432019-01-23 Nick Clifton <nickc@redhat.com>
1444
1445 * po/fr.po: Updated French translation.
1446
375cd423
NC
14472019-01-21 Nick Clifton <nickc@redhat.com>
1448
1449 * po/pt.po: Updated Portuguese translation.
1450 * po/uk.po: Updated Ukranian translation.
1451
acef8081
YC
14522019-01-21 Yuri Chornoivan <yurchor@ukr.net>
1453
1454 PR 24108
1455 * elf32-nds32.c (nds32_relocate_section): Add space between words
1456 in error message.
1457 * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
1458 error message.
1459 (riscv_i_or_e_p): Likewise.
1460 (riscv_merge_arch_attr_info): Likewise.
1461
f48dfe41
NC
14622019-01-19 Nick Clifton <nickc@redhat.com>
1463
1464 * version.m4: Reset to 2.32.51
1465 * configure: Regenerate.
1466 * po/bfd.pot: Regenerate.
1467
f974f26c
NC
14682018-06-24 Nick Clifton <nickc@redhat.com>
1469
1470 2.32 branch created.
1471
a4bf3d07
JW
14722019-01-16 Kito Cheng <kito@andestech.com>
1473
1474 * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
1475 for OBJ_ATTR_PROC.
1476
2dc8dd17
JW
14772019-01-16 Kito Cheng <kito@andestech.com>
1478 Nelson Chu <nelson@andestech.com>
1479
7d7a7d7c
JW
1480 * elfnn-riscv.c (in_subsets): New.
1481 (out_subsets): Likewise.
1482 (merged_subsets): Likewise.
1483 (riscv_std_ext_p): Likewise.
1484 (riscv_non_std_ext_p): Likewise.
1485 (riscv_std_sv_ext_p): Likewise.
1486 (riscv_non_std_sv_ext_p): Likewise.
1487 (riscv_version_mismatch): Likewise.
1488 (riscv_i_or_e_p): Likewise.
1489 (riscv_merge_std_ext): Likewise.
1490 (riscv_merge_non_std_and_sv_ext): Likewise.
1491 (riscv_merge_arch_attr_info): Likewise.
1492 (riscv_merge_attributes): Likewise.
1493 (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
1494
2dc8dd17
JW
1495 * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
1496 (elf_backend_obj_attrs_vendor): Define.
1497 (elf_backend_obj_attrs_section_type): Likewise.
1498 (elf_backend_obj_attrs_section): Likewise.
1499 (elf_backend_obj_attrs_arg_type): Define as
1500 riscv_elf_obj_attrs_arg_type.
1501 * elfxx-riscv.c (riscv_estimate_digit): New.
1502 (riscv_estimate_arch_strlen1): Likewise.
1503 (riscv_estimate_arch_strlen): Likewise.
1504 (riscv_arch_str1): Likewise.
1505 (riscv_arch_str): Likewise.
1506 * elfxx-riscv.h (riscv_arch_str): Declare.
1507
d5dcaf1b
JD
15082019-01-14 John Darrington <john@darrington.wattle.id.au>
1509
1510 * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
1511 * libbfd.h: regen.
1512 * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
1513 source field. (md_apply_fix): Apply final fix
1514 to BFD_RELOC_S12Z_OPR.
1515 * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
1516
5a12586d
MT
15172019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1518
f466c305 1519 PR 20113
5a12586d
MT
1520 * elf32-s390.c (allocate_dynrelocs): Update comment.
1521
3107326d
AP
15222019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1523
1524 * warning.m4: Adjust egrep pattern for non-GNU compilers.
1525 * configure: Regenerate.
1526
a9859e01
AM
15272019-01-08 Alan Modra <amodra@gmail.com>
1528
1529 PR 23699
1530 PR 24065
1531 * ihex.c (ihex_write_object_contents): Properly check 32-bit
1532 address range.
1533
c8c89dac
YS
15342019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1535
1536 * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
1537 * bfd/bfd-in2.h: Regenerate.
1538 * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
1539 * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
1540
d9858c37
LX
15412019-01-04 Lifang Xia <lifang_xia@c-sky.com>
1542
1543 * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
1544 default target, little endian target is more suitable.
1545
677bd4c6
AM
15462019-01-04 Alan Modra <amodra@gmail.com>
1547
1548 PR 24061
1549 PR 21786
1550 * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
1551 adjust all callers.
1552 (EQ_VALUE_IN_FIELD): Likewise.
1553 * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
1554
82704155
AM
15552019-01-01 Alan Modra <amodra@gmail.com>
1556
1557 Update year range in copyright notice of all files.
1558
d5c04e1b 1559For older changes see ChangeLog-2018
3499769a 1560\f
d5c04e1b 1561Copyright (C) 2019 Free Software Foundation, Inc.
3499769a
AM
1562
1563Copying and distribution of this file, with or without modification,
1564are permitted in any medium without royalty provided the copyright
1565notice and this notice are preserved.
1566
1567Local Variables:
1568mode: change-log
1569left-margin: 8
1570fill-column: 74
1571version-control: never
1572End: