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