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