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