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