[PR ld/22263][PR ld/25056] arm: Avoid dynamic TLS relocs in PIE
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2019-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2
3 PR ld/22263
4 PR ld/25056
5 * elf32-arm.c (elf32_arm_tls_transition): Use bfd_link_dll instead of
6 bfd_link_pic for TLS checks.
7 (elf32_arm_final_link_relocate): Likewise.
8 (allocate_dynrelocs_for_symbol): Likewise.
9
10 2019-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
11
12 PR ld/25062
13 * elf32-arm.c (elf32_arm_final_link_relocate): Sign extend data.
14
15 2019-09-30 Nick Alcock <nick.alcock@oracle.com>
16
17 * elf-bfd.h (bfd_section_is_ctf): New inline function.
18 * elf.c (special_sections_c): Add ".ctf".
19 (assign_file_positions_for_non_load_sections): Note that
20 compressed debugging sections etc are not assigned here. Treat
21 CTF sections like SEC_ELF_COMPRESS sections when is_linker_output:
22 sh_offset -1.
23 (assign_file_positions_except_relocs): Likewise.
24 (find_section_in_list): Note that debugging and CTF sections, as
25 well as reloc sections, are assigned later.
26 (_bfd_elf_assign_file_positions_for_non_load): CTF sections get
27 their size and contents updated.
28 (_bfd_elf_set_section_contents): Skip CTF sections: unlike
29 compressed sections, they have no uncompressed content to copy at
30 this stage.
31 * elflink.c (elf_link_swap_symbols_out): Call the examine_strtab
32 callback right before the strtab is written out.
33 (bfd_elf_final_link): Don't cache the section contents of CTF
34 sections: they are not populated yet. Call the emit_ctf callback
35 right at the end, after all the symbols and strings are flushed
36 out.
37
38 2019-07-13 Nick Alcock <nick.alcock@oracle.com>
39
40 * elf-strtab.c (_bfd_elf_strtab_len): New.
41 (_bfd_elf_strtab_str): Likewise.
42 * bfd-elf.h: Declare them.
43
44 2019-07-13 Nick Alcock <nick.alcock@oracle.com>
45
46 * elf-bfd.h (bfd_elf_get_str_section): Add.
47 * elf.c (bfd_elf_get_str_section): No longer static.
48
49 2019-09-26 Alan Modra <amodra@gmail.com>
50
51 PR 24262
52 * Makefile.am (AM_CPPFLAGS): Add -DLIBDIR.
53 * plugin.c (load_plugin): Search both ${libdir}/bfd-plugins and
54 ${bindir}/../lib/bfd-plugins if different.
55 * Makefile.in: Regenerate.
56
57 2019-09-23 Alan Modra <amodra@gmail.com>
58
59 * elf64-ppc.c (ppc64_elf_check_relocs): Use bfd_link_executable
60 in choosing between different actions for shared library and
61 non-shared library cases. Delete ELIMINATE_COPY_RELOCS test.
62 (dec_dynrel_count): Likewise. Account for ifunc special case.
63 (ppc64_elf_adjust_dynamic_symbol): Copy relocs are for executables,
64 not non-pic.
65 (allocate_dynrelocs): Comment fixes. Delete ELIMINATE_COPY_RELOCS
66 test.
67
68 2019-09-23 Alan Modra <amodra@gmail.com>
69
70 * Makefile.am (SOURCE_HFILES): Add many missing .h files.
71 * Makefile.in: Regenerate.
72 * po/SRC-POTFILES.in: Regenerate.
73
74 2019-09-23 Alan Modra <amodra@gmail.com>
75
76 * bfd-in.h (bfd_symbol, bfd_section_already_linked),
77 (bfd_elf_version_tree): Delete forward declarations.
78 Move other forward decls and remaining elf function decl later.
79 (bfd_section_already_linked_table_init),
80 (bfd_section_already_linked_table_free),
81 (_bfd_handle_already_linked, _bfd_nearby_section),
82 (_bfd_fix_excluded_sec_syms): Move to bfdlink.h.
83
84 2019-09-23 Alan Modra <amodra@gmail.com>
85
86 * bfd-in.h: Move ecoff function declarations..
87 * ecoff-bfd.h: ..to here, new file.
88 * ecoff.c: Include ecoff-bfd.h.
89 * ecofflink.c: Likewise.
90 * elf64-alpha.c: Likewise.
91 * elfxx-mips.c: Likewise.
92 * bfd-in2.h: Regenerate.
93
94 2019-09-23 Alan Modra <amodra@gmail.com>
95
96 * bfd-in.h (enum notice_asneeded_action): Move to bfdlink.h.
97 Move most other elf declarations..
98 * elf-bfd.h: ..to here.
99 * bfd-in2.h: Regenerate.
100
101 2019-09-23 Alan Modra <amodra@gmail.com>
102
103 * bfd-in.h: Move m68k function declaration..
104 * cpu-m68k.h: ..to here, new file..
105 * elf32-m68k.h: ..and here, new file.
106 * elf32-m68k.c: Include cpu-m68k.h and elf32-m68k.h.
107 * bfd-in2.h: Regenerate.
108
109 2019-09-23 Alan Modra <amodra@gmail.com>
110
111 * bfd-in.h: Move bfin function declaration..
112 * elf32-bfin.h: ..to here, new file.
113 * elf32-bfin.c: Include elf32-bfin.h.
114 * bfd-in2.h: Regenerate.
115
116 2019-09-23 Alan Modra <amodra@gmail.com>
117
118 * bfd-in.h: Move cr16 function declaration..
119 * elf32-cr16.h: ..to here, new file.
120 * elf32-cr16.c: Include elf32-cr16.h.
121 * bfd-in2.h: Regenerate.
122
123 2019-09-23 Alan Modra <amodra@gmail.com>
124
125 * bfd-in.h (bfd_sunos_get_needed_list),
126 (bfd_sunos_record_link_assignment),
127 (bfd_sunos_size_dynamic_sections),
128 (bfd_i386linux_size_dynamic_sections),
129 (bfd_sparclinux_size_dynamic_sections): Delete obsolete decls.
130 * bfd-in2.h: Regenerate.
131
132 2019-09-23 Alan Modra <amodra@gmail.com>
133
134 * bfd-in.h: Move xcoff function declarations..
135 * xcofflink.h: ..to here, new file.
136 * xcofflink.c: Include xcofflink.h.
137 * coff-rs6000.c (bfd_xcoff_ar_archive_set_magic): Delete unused func.
138 * bfd-in2.h: Regenerate.
139
140 2019-09-23 Alan Modra <amodra@gmail.com>
141
142 * bfd-in.h: Delete coff forward refs and move coff declaration..
143 * coff-bfd.h: ..to here.
144 * bfd-in2.h: Regenerate.
145
146 2019-09-23 Alan Modra <amodra@gmail.com>
147
148 * bfd-in.h: Move arm declaraions..
149 * cpu-arm.h: ..to here, new file..
150 * coff-arm.h: ..and here, new file..
151 * elf32-arm.h: ..and here, new file.
152 * cpu-arm.c: Include cpu-arm.h.
153 * coff-arm.c: Include cpu-arm.h and coff-arm.h.
154 * elf32-arm.c: Include cpu-arm.h and elf32-arm.h.
155 * pe-arm.c: Move function rename defines later.
156 * pe-arm-wince.c: Likewise and include sysdep.h and bfd.h early.
157 * bfd-in2.h: Regenerate.
158
159 2019-09-23 Alan Modra <amodra@gmail.com>
160
161 * bfd-in.h: Move tic6x function declaration..
162 * elf32-tic6x.h: ..to here.
163 * bfd-in2.h: Regenerate.
164
165 2019-09-23 Alan Modra <amodra@gmail.com>
166
167 * bfd-in.h: Move aarch64 declarations and defines..
168 * cpu-aarch64.h: ..to here, new file..
169 * elfxx-aarch64.h: ..and here.
170 * cpu-aarch64.c: Include cpu-aarch64.h.
171 * elfnn-aarch64.c: Likewise.
172 * bfd-in2.h: Regenerate.
173
174 2019-09-23 Alan Modra <amodra@gmail.com>
175
176 * bfd-in.h: Delete ticoff function declarations.
177 * coff-tic54x.c (bfd_ticoff_set_section_load_page),
178 (bfd_ticoff_get_section_load_page): Make static.
179 * bfd-in2.h: Regenerate.
180
181 2019-09-23 Alan Modra <amodra@gmail.com>
182
183 * bfd-in.h: Move h8300 function declaration to..
184 * cpu-h8300.h: ..here, new file.
185 * cpu-h8300.c: Include cpu-h8300.h.
186 * elf32-h8300.c: Likewise.
187 * bfd-in2.h: Regenerate.
188
189 2019-09-23 Alan Modra <amodra@gmail.com>
190
191 * bfd-in.h: Move ia64 function declarations..
192 * elfxx-ia64.h: ..to here.
193 * bfd-in2.h: Regenerate.
194
195 2019-09-23 Alan Modra <amodra@gmail.com>
196
197 * bfd-in.h: Move v850 function declarations..
198 * elf32-v850.h: ..to here, new file.
199 * elf32-v850.c: Include elf32-v850.h.
200 * bfd-in2.h: Regenerate.
201
202 2019-09-23 Alan Modra <amodra@gmail.com>
203
204 * bfd-in.h: Move mips function declaration to..
205 * elfxx-mips.h: ..here.
206 * bfd-in2.h: Regenerate.
207
208 2019-09-23 Alan Modra <amodra@gmail.com>
209
210 * bfd-in.h: Move csky function declarations to..
211 * elf32-csky.h: ..here, new file.
212 * elf32-csky.c: Include elf32-csky.h.
213 * bfd-in2.h: Regenerate.
214
215 2019-09-20 Nelson Chu <nelson.chu@sifive.com>
216
217 * elfnn-riscv.c (riscv_pcgp_hi_reloc): Add new field undefined_weak.
218 (riscv_record_pcgp_hi_reloc): New parameter undefined_weak.
219 Set undefined_weak field from it.
220 (relax_func_t): New parameter undefined_weak.
221 (_bfd_riscv_relax_call): New ignored parameter undefined_weak.
222 (_bfd_riscv_relax_tls_le): Likewise.
223 (_bfd_riscv_relax_align): Likewise.
224 (_bfd_riscv_relax_delete): Likewise.
225 (_bfd_riscv_relax_lui): New parameter undefined_weak. If true,
226 allow relaxing. For LO12* relocs, set rs1 to x0 when undefined_weak.
227 (_bfd_riscv_relax_pc): New parameter undefined_weak. For LO12* relocs,
228 set undefined_weak from hi_reloc. If true, allow relaxing. For LO12*
229 relocs, set rs1 to x0 when undefined_weak and change to non-pcrel
230 reloc.
231 (_bfd_riscv_relax_section): New local undefined_weak. Set for
232 undef weak relocs that can be relaxed. Pass to relax_func call.
233
234 2019-09-20 Alan Modra <amodra@gmail.com>
235
236 * bfd-in.h (bfd_section_name, bfd_section_size, bfd_section_vma),
237 (bfd_section_lma, bfd_section_alignment, bfd_section_flags),
238 (bfd_section_userdata, bfd_is_com_section, discarded_section),
239 (bfd_get_section_limit_octets, bfd_get_section_limit): Delete macros.
240 * bfd.c (bfd_get_section_limit_octets, bfd_get_section_limit),
241 (bfd_section_list_remove, bfd_section_list_append),
242 (bfd_section_list_prepend, bfd_section_list_insert_after),
243 (bfd_section_list_insert_before, bfd_section_removed_from_list):
244 New inline functions.
245 * section.c (bfd_is_und_section, bfd_is_abs_section),
246 (bfd_is_ind_section, bfd_is_const_section, bfd_section_list_remove),
247 (bfd_section_list_append, bfd_section_list_prepend),
248 (bfd_section_list_insert_after, bfd_section_list_insert_before),
249 (bfd_section_removed_from_list): Delete macros.
250 (bfd_section_name, bfd_section_size, bfd_section_vma),
251 (bfd_section_lma, bfd_section_alignment, bfd_section_flags),
252 (bfd_section_userdata, bfd_is_com_section, bfd_is_und_section),
253 (bfd_is_abs_section, bfd_is_ind_section, bfd_is_const_section),
254 (discarded_section): New inline functions.
255 * bfd-in2.h: Regenerate.
256
257 2019-09-20 Alan Modra <amodra@gmail.com>
258
259 * bfd-in.h (bfd_asymbol_section, bfd_asymbol_value, bfd_asymbol_name),
260 (bfd_asymbol_bfd, bfd_asymbol_flavour, bfd_set_asymbol_name): Delete.
261 * bfd.c (bfd_asymbol_section, bfd_asymbol_value, bfd_asymbol_name),
262 (bfd_asymbol_bfd, bfd_set_asymbol_name): New inline functions.
263 * targets.c (bfd_asymbol_flavour): Likewise.
264 * bfd-in2.h: Regenerate.
265
266 2019-09-20 Alan Modra <amodra@gmail.com>
267
268 * archive.c (bfd_generic_archive_p): Use bfd_set_thin_archive.
269 * bfd-in.h (bfd_get_filename, bfd_get_cacheable, bfd_get_format),
270 (bfd_get_target, bfd_get_flavour, bfd_family_coff, bfd_big_endian),
271 (bfd_little_endian, bfd_header_big_endian, bfd_header_little_endian),
272 (bfd_get_file_flags, bfd_applicable_file_flags),
273 (bfd_applicable_section_flags, bfd_has_map, bfd_is_thin_archive),
274 (bfd_valid_reloc_types, bfd_usrdata, bfd_get_start_address),
275 (bfd_get_symcount, bfd_get_outsymbols, bfd_count_sections),
276 (bfd_get_dynamic_symcount, bfd_get_symbol_leading_char): Delete.
277 * bfd/bfd.c (bfd_get_filename, bfd_get_cacheable, bfd_get_format),
278 (bfd_get_file_flags, bfd_get_start_address, bfd_get_symcount),
279 (bfd_get_dynamic_symcount, bfd_get_outsymbols, bfd_count_sections),
280 (bfd_has_map, bfd_is_thin_archive, bfd_set_thin_archive),
281 (bfd_usrdata, bfd_set_usrdata): New inline functions.
282 * targets.c (bfd_get_target, bfd_get_flavour),
283 (bfd_applicable_file_flags, bfd_family_coff, bfd_big_endian),
284 (bfd_little_endian, bfd_header_big_endian),
285 (bfd_header_little_endian, bfd_applicable_section_flags),
286 (bfd_get_symbol_leading_char): New inline functions.
287 * bfd-in2.h: Regenerate.
288
289 2019-09-20 Alan Modra <amodra@gmail.com>
290
291 * elf64-ppc.c (ppc64_glibc_dynamic_reloc): New function.
292 (ppc64_elf_relocate_section): Warn if emitting unsupported dynamic
293 relocations.
294
295 2019-09-18 Alan Modra <amodra@gmail.com>
296
297 * bfd-in.h (bfd_get_section_name, bfd_get_section_vma),
298 (bfd_get_section_lma, bfd_get_section_alignment),
299 (bfd_get_section_size, bfd_get_section_flags),
300 (bfd_get_section_userdata): Delete.
301 (bfd_section_name, bfd_section_size, bfd_section_vma),
302 (bfd_section_lma, bfd_section_alignment): Lose bfd parameter.
303 (bfd_section_flags, bfd_section_userdata): New.
304 (bfd_is_com_section): Rename parameter.
305 * section.c (bfd_set_section_userdata, bfd_set_section_vma),
306 (bfd_set_section_alignment, bfd_set_section_flags, bfd_rename_section),
307 (bfd_set_section_size): Delete bfd parameter, rename section parameter.
308 (bfd_set_section_lma): New.
309 * bfd-in2.h: Regenerate.
310 * mach-o.c (bfd_mach_o_init_section_from_mach_o): Delete bfd param,
311 update callers.
312 * aoutx.h, * bfd.c, * coff-alpha.c, * coff-arm.c, * coff-mips.c,
313 * coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c,
314 * compress.c, * ecoff.c, * elf-eh-frame.c, * elf-hppa.h,
315 * elf-ifunc.c, * elf-m10200.c, * elf-m10300.c, * elf-properties.c,
316 * elf-s390-common.c, * elf-vxworks.c, * elf.c, * elf32-arc.c,
317 * elf32-arm.c, * elf32-avr.c, * elf32-bfin.c, * elf32-cr16.c,
318 * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c, * elf32-csky.c,
319 * elf32-d10v.c, * elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c,
320 * elf32-ft32.c, * elf32-h8300.c, * elf32-hppa.c, * elf32-i386.c,
321 * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, * elf32-m32c.c,
322 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c, * elf32-mcore.c,
323 * elf32-mep.c, * elf32-metag.c, * elf32-microblaze.c,
324 * elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
325 * elf32-nios2.c, * elf32-or1k.c, * elf32-ppc.c, * elf32-pru.c,
326 * elf32-rl78.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
327 * elf32-score7.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
328 * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c, * elf32-visium.c,
329 * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
330 * elf64-bpf.c, * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mmix.c,
331 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
332 * elflink.c, * elfnn-aarch64.c, * elfnn-ia64.c, * elfnn-riscv.c,
333 * elfxx-aarch64.c, * elfxx-mips.c, * elfxx-sparc.c,
334 * elfxx-tilegx.c, * elfxx-x86.c, * i386msdos.c, * linker.c,
335 * mach-o.c, * mmo.c, * opncls.c, * pdp11.c, * pei-x86_64.c,
336 * peicode.h, * reloc.c, * section.c, * syms.c, * vms-alpha.c,
337 * xcofflink.c: Update throughout for bfd section macro and function
338 changes.
339
340 2019-09-18 Alan Modra <amodra@gmail.com>
341
342 * bfd-in.h (bfd_asymbol_section): Rename from bfd_get_section.
343 (bfd_get_output_section): Delete.
344 (bfd_asymbol_base): Delete.
345 (bfd_asymbol_section, bfd_asymbol_value, bfd_asymbol_name),
346 (bfd_asymbol_bfd, bfd_asymbol_flavour): Tidy.
347 (bfd_set_asymbol_name): New macro.
348 * bfd-in2.h: Regenerate.
349 * aout-cris.c: Update throughout to use bfd_asymbol_section.
350 * aoutx.h: Likewise.
351 * cofflink.c: Likewise.
352 * dwarf2.c: Likewise.
353 * ecoff.c: Likewise.
354 * elf.c: Likewise.
355 * elf32-arm.c: Likewise.
356 * elf32-mips.c: Likewise.
357 * elf32-score.c: Likewise.
358 * elf32-score7.c: Likewise.
359 * elfn32-mips.c: Likewise.
360 * elfnn-aarch64.c: Likewise.
361 * elfxx-mips.c: Likewise.
362 * linker.c: Likewise.
363 * pdp11.c: Likewise.
364 * elf64-mmix.c (mmix_elf_reloc): Part expand bfd_get_output_section.
365
366 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
367
368 * Makefile.in: Re-generate.
369 * configure: Re-generate.
370 * doc/Makefile.in: Re-generate.
371
372 2019-09-18 Alan Modra <amodra@gmail.com>
373
374 * aoutx.h (slurp_symbol_table): Don't set symcount using bfd_get
375 macros.
376 * pdp11.c (slurp_symbol_table): Likewise.
377 * som.c (som_slurp_symbol_table): Likewise.
378 * coff-ppc.c (ppc_bfd_coff_final_link): Likewise.
379 * coffcode.h (coff_slurp_symbol_table): Likewise.
380 * cofflink.c (_bfd_coff_final_link): Likewise.
381 * ecoff.c (ecoff_slurp_symbolic_header): Likewise.
382 (_bfd_ecoff_slurp_symbolic_info): Likewise.
383 (_bfd_ecoff_slurp_symbol_table): Likewise.
384 (_bfd_ecoff_bfd_final_link): Likewise.
385 * elf.c (_bfd_elf_canonicalize_symtab): Likewise.
386 * elflink.c (elf_link_output_symstrtab): Likewise.
387 (bfd_elf_final_link): Likewise.
388 * peicode.h (pe_ILF_build_a_bfd): Likewise.
389 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
390 * aoutx.h (some_aout_object_p, slurp_symbol_table): Don't set
391 start_address or symcount using bfd_get macros.
392 * coffgen.c (coff_real_object_p): Likewise.
393 * pdp11.c (some_aout_object_p, slurp_symbol_table): Likewise.
394 * som.c (som_object_setup, som_slurp_symbol_table): Likewise.
395 * elfcore.h (elf_core_file_p): Don't set start_address using
396 bfd_get macro.
397 * elf.c (_bfd_elf_canonicalize_dynamic_symtab): Don't set dynsymcount
398 using bfd_get macro.
399 * bfd.c (bfd_set_file_flags): Don't set flags using bfd_get macro.
400 * linker.c (bfd_generic_link_read_symbols): Don't set outsymbols
401 or symcount using bfd_get macros.
402 (_bfd_generic_final_link, generic_add_output_symbol): Likewise.
403 * syms.c (bfd_set_symtab): Likewise.
404 * vms-alpha.c (alpha_vms_bfd_final_link): Likewise.
405 * archive.c (do_slurp_bsd_armap): Don't set has_armap using
406 bfd_has_map macro.
407 (do_slurp_coff_armap, bfd_slurp_armap): Likewise.
408 * archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise.
409 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Likewise.
410 * coff64-rs6000.c (xcoff64_slurp_armap): Likewise.
411 * ecoff.c (_bfd_ecoff_slurp_armap): Likewise.
412 * som.c (som_slurp_armap): Likewise.
413
414 2019-09-18 Alan Modra <amodra@gmail.com>
415
416 * archures.c (bfd_get_arch): Make param const.
417 (bfd_get_mach, bfd_arch_bits_per_byte): Likewise.
418 (bfd_arch_bits_per_address, bfd_octets_per_byte): Likewise.
419 * bfd-in2.h: Regenerate.
420
421 2019-09-18 Alan Modra <amodra@gmail.com>
422
423 * bfd-in.h (carsym.name): Make const.
424 * reloc.c (struct reloc_howto_struct.name): Likewise.
425 * targets.c (bfd_target.name): Likewise.!
426 * bfd.c (bfd_get_sign_extend_vma): Make variable const.
427 * som.c (som_bfd_fill_in_ar_symbols): Use an intermediary variable
428 when setting carsym.name.
429 * bfd-in2.h: Regenerate.
430
431 2019-09-18 Alan Modra <amodra@gmail.com>
432
433 * mach-o.c (bfd_mach_o_fat_member_init): Likewise. Replace
434 xstrdup and xmalloc with bfd_strdup and bfd_malloc. Return an
435 error status. Adjust calls.
436 * vms-lib.c (_bfd_vms_lib_get_module): Test mhd->id earlier.
437 Close bfd on failure. Replace xstrdup/bfd_alloc use with
438 bfd_malloc. Use bfd_set_filename.
439
440 2019-09-18 Alan Modra <amodra@gmail.com>
441
442 * elf64-ppc.c (must_be_dyn_reloc): Return 0 for TOC16 relocs.
443 (ppc64_elf_check_relocs): Support dynamic/copy relocs for TOC16.
444 (ppc64_elf_adjust_dynamic_symbol): Don't keep dynamic reloc when
445 needs_copy even if all relocs are in rw sections.
446 (dec_dynrel_count): Handle TOC16 relocs.
447 (ppc64_elf_relocate_section): Support dynamic relocs for TOC16.
448 (ppc64_elf_finish_dynamic_symbol): Adjust to handle needs_copy
449 semantic change.
450
451 2019-09-16 Phil Blundell <pb@pbcl.net>
452
453 * version.m4: Set version to 2.33.50.
454 * Makefile.in, configure, doc/Makefile.in: Regenerated.
455
456 2019-09-11 Tom Tromey <tom@tromey.com>
457
458 * opncls.c (bfd_set_filename): New function.
459 * bfd-in2.h: Regenerate.
460
461 2019-09-11 Alan Modra <amodra@gmail.com>
462
463 * targets.c (struct bfd_target): Add _bfd_group_name.
464 (BFD_JUMP_TABLE): Likewise.
465 * coffgen.c (bfd_coff_group_name): New function.
466 * elf.c (bfd_elf_group_name): New function.
467 * linker.c (_bfd_nolink_bfd_group_name): New function.
468 * section.c (bfd_generic_group_name): New function.
469 * elf-bfd.h (bfd_elf_group_name): Declare.
470 * libbfd-in.h (_bfd_nolink_bfd_group_name): Declare.
471 * libcoff-in.h (bfd_coff_group_name): Declare.
472 * aout-target.h (MY_bfd_group_name): Define.
473 * aout-tic30.c (MY_bfd_group_name): Define.
474 * bfd.c (bfd_group_name): Define.
475 * binary.c (binary_bfd_group_name): Define.
476 * coff-alpha.c (_bfd_ecoff_bfd_group_name): Define.
477 * coff-mips.c (_bfd_ecoff_bfd_group_name): Define.
478 * coff-rs6000.c (_bfd_xcoff_bfd_group_name): Define.
479 * coffcode.h (coff_bfd_group_name): Define.
480 * elfxx-target.h (bfd_elfNN_bfd_group_name): Define.
481 * i386msdos.c (msdos_bfd_group_name): Define.
482 * ihex.c (ihex_bfd_group_name): Define.
483 * mach-o-target.c (bfd_mach_o_bfd_group_name): Define.
484 * mmo.c (mmo_bfd_group_name): Define.
485 * pef.c (bfd_pef_bfd_group_name): Define.
486 * plugin.c (bfd_plugin_bfd_group_name): Define.
487 * ppcboot.c (ppcboot_bfd_group_name): Define.
488 * som.c (som_bfd_group_name): Define.
489 * srec.c (srec_bfd_group_name): Define.
490 * tekhex.c (tekhex_bfd_group_name): Define.
491 * verilog.c (verilog_bfd_group_name): Define.
492 * vms-alpha.c (vms_bfd_group_name, alpha_vms_bfd_group_name): Define.
493 * xsym.c (bfd_sym_bfd_group_name): Define.
494 * coff64-rs6000.c (rs6000_xcoff64_vec): Init new field.
495 (rs6000_xcoff64_aix_vec): Likewise.
496 * bfd-in2.h: Regenerate.
497 * libbfd.h: Regenerate.
498 * libcoff.h: Regenerate.
499
500 2019-09-10 Nick Clifton <nickc@redhat.com>
501
502 PR 24907
503 * archures.c (bfd_arch_info_type): Add max_reloc_offset_into_insn
504 field.
505 (bfd_default_arch_struct): Initialise the new field.
506 * bfd-in2.h: Regenerate.
507 * cpu-aarch64.c: Initialise the new field.
508 * cpu-alpha.c: Likewise.
509 * cpu-arc.c: Likewise.
510 * cpu-arm.c: Likewise.
511 * cpu-avr.c: Likewise.
512 * cpu-bfin.c: Likewise.
513 * cpu-bpf.c: Likewise.
514 * cpu-cr16.c: Likewise.
515 * cpu-cr16c.c: Likewise.
516 * cpu-cris.c: Likewise.
517 * cpu-crx.c: Likewise.
518 * cpu-csky.c: Likewise.
519 * cpu-d10v.c: Likewise.
520 * cpu-d30v.c: Likewise.
521 * cpu-dlx.c: Likewise.
522 * cpu-epiphany.c: Likewise.
523 * cpu-fr30.c: Likewise.
524 * cpu-frv.c: Likewise.
525 * cpu-ft32.c: Likewise.
526 * cpu-h8300.c: Likewise.
527 * cpu-hppa.c: Likewise.
528 * cpu-i386.c: Likewise.
529 * cpu-ia64.c: Likewise.
530 * cpu-iamcu.c: Likewise.
531 * cpu-ip2k.c: Likewise.
532 * cpu-iq2000.c: Likewise.
533 * cpu-k1om.c: Likewise.
534 * cpu-l1om.c: Likewise.
535 * cpu-lm32.c: Likewise.
536 * cpu-m10200.c: Likewise.
537 * cpu-m10300.c: Likewise.
538 * cpu-m32c.c: Likewise.
539 * cpu-m32r.c: Likewise.
540 * cpu-m68hc11.c: Likewise.
541 * cpu-m68hc12.c: Likewise.
542 * cpu-m68k.c: Likewise.
543 * cpu-m9s12x.c: Likewise.
544 * cpu-m9s12xg.c: Likewise.
545 * cpu-mcore.c: Likewise.
546 * cpu-mep.c: Likewise.
547 * cpu-metag.c: Likewise.
548 * cpu-microblaze.c: Likewise.
549 * cpu-mips.c: Likewise.
550 * cpu-mmix.c: Likewise.
551 * cpu-moxie.c: Likewise.
552 * cpu-msp430.c: Likewise.
553 * cpu-mt.c: Likewise.
554 * cpu-nds32.c: Likewise.
555 * cpu-nfp.c: Likewise.
556 * cpu-nios2.c: Likewise.
557 * cpu-ns32k.c: Likewise.
558 * cpu-or1k.c: Likewise.
559 * cpu-pdp11.c: Likewise.
560 * cpu-pj.c: Likewise.
561 * cpu-plugin.c: Likewise.
562 * cpu-powerpc.c: Likewise.
563 * cpu-pru.c: Likewise.
564 * cpu-riscv.c: Likewise.
565 * cpu-rl78.c: Likewise.
566 * cpu-rs6000.c: Likewise.
567 * cpu-rx.c: Likewise.
568 * cpu-s12z.c: Likewise.
569 * cpu-s390.c: Likewise.
570 * cpu-score.c: Likewise.
571 * cpu-sh.c: Likewise.
572 * cpu-sparc.c: Likewise.
573 * cpu-spu.c: Likewise.
574 * cpu-tic30.c: Likewise.
575 * cpu-tic4x.c: Likewise.
576 * cpu-tic54x.c: Likewise.
577 * cpu-tic6x.c: Likewise.
578 * cpu-tic80.c: Likewise.
579 * cpu-tilegx.c: Likewise.
580 * cpu-tilepro.c: Likewise.
581 * cpu-v850.c: Likewise.
582 * cpu-v850_rh850.c: Likewise.
583 * cpu-vax.c: Likewise.
584 * cpu-visium.c: Likewise.
585 * cpu-wasm32.c: Likewise.
586 * cpu-xc16x.c: Likewise.
587 * cpu-xgate.c: Likewise.
588 * cpu-xstormy16.c: Likewise.
589 * cpu-xtensa.c: Likewise.
590 * cpu-z80.c: Likewise.
591 * cpu-z8k.c: Likewise.
592
593 2019-09-09 Phil Blundell <pb@pbcl.net>
594
595 binutils 2.33 branch created.
596
597 2019-09-06 Alan Modra <amodra@gmail.com>
598
599 * aout-target.h (object_p): Formatting.
600 * bfd-in.h (bfd_get_filename): Don't cast to char*.
601 * corefile.c (generic_core_file_matches_executable_p): Constify
602 variables and remove cast.
603 * bfd-in2.h: Regenerate.
604
605 2019-09-05 Alan Modra <amodra@gmail.com>
606
607 * elf64-ppc.c (ppc64_elf_check_relocs): Interpret an addend in
608 GOT_PCREL and PLT_PCREL relocs as affecting the value stored
609 in the GOT/PLT entry rather than affecting the offset to that
610 GOI/PLT entry.
611 (ppc64_elf_edit_toc, ppc64_elf_relocate_section): Likewise.
612
613 2019-09-05 Alan Modra <amodra@gmail.com>
614
615 * elf64-ppc.c (xlate_pcrel_opt): Handle prefix loads and stores
616 in second instruction.
617 (ppc64_elf_relocate_section): Likewise.
618
619 2019-09-05 Alan Modra <amodra@gmail.com>
620
621 PR 24955
622 * libbfd-in.h (bfd_strdup): New inline function.
623 * archive.c (_bfd_get_elt_at_filepos): Use bfd_strdup. Close
624 bfd on error.
625 * elfcode.h (_bfd_elf_bfd_from_remote_memory): Use bfd_strdup.
626 * opncls.c (bfd_fopen): Use bfd_strdup. Close fd and stream
627 on error.
628 (bfd_openstreamr): Use bfd_strdup.
629 (bfd_openr_iovec, bfd_openw, bfd_create): Likewise.
630 * plugin.c (try_load_plugin): Use bfd_malloc.
631 * libbfd.h: Regenerate.
632
633 2019-09-02 Alan Modra <amodra@gmail.com>
634
635 PR 11983
636 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Free debug_filename
637 on success. Tidy.
638 (read_alt_indirect_string): Likewise.
639 (read_alt_indirect_ref): Likewise.
640
641 2019-08-31 Jim Wilson <jimw@sifive.com>
642
643 PR 23825
644 * elfnn-riscv.c (riscv_elf_create_dynamic_sections): Add SEC_LOAD,
645 SEC_DATA, and SEC_HAS_CONTENTS to .tdata.dyn section.
646
647 2019-08-30 Jim Wilson <jimw@sifive.com>
648
649 * elfnn-riscv.c (riscv_elf_relocate_section): For unresolvable reloc
650 error, call bfd_set_error, set ret to FALSE, and goto out label.
651
652 2019-08-30 H.J. Lu <hongjiu.lu@intel.com>
653
654 PR ld/24951
655 * archive.c (_bfd_get_elt_at_filepos): Copy BFD_COMPRESS,
656 BFD_DECOMPRESS and BFD_COMPRESS_GABI flags for thin archive.
657
658 2019-08-29 Alan Modra <amodra@gmail.com>
659
660 PR 24697
661 * elf32-ppc.c (ppc_elf_check_relocs): Call bad_shared_reloc
662 when !bfd_link_executable for R_PPC_EMB_SDA2I16 and
663 R_PPC_EMB_SDA2REL. Don't call bad_shared_reloc for any other
664 reloc.
665
666 2019-08-29 Alan Modra <amodra@gmail.com>
667
668 * elf64-ppc.c (xlate_pcrel_opt): Add poff parameter. Allow offset
669 on second insn, return it in poff.
670 (ppc64_elf_relocate_section): Add offset to paddi addend for
671 PCREL_OPT.
672
673 2019-08-28 Jim Wilson <jimw@sifive.com>
674
675 * elfnn-riscv.c (_bfd_riscv_relax_lui): Add check to exclude abs
676 section when setting max_alignment. Update comment.
677 (_bfd_riscv_relax_pc): Likewise.
678
679 2019-08-29 Alan Modra <amodra@gmail.com>
680
681 PR 24891
682 * bfd.c (struct bfd): Add no_element_cache.
683 * archive.c (_bfd_get_elt_at_filepos): Don't add element to
684 archive cache when no_element_cache.
685 (bfd_generic_archive_p): Set no_element_cache when opening first
686 element to check format. Close first element too.
687 (do_slurp_bsd_armap): Don't zero ardata->cache here.
688 * bfd-in2.h: Regenerate.
689
690 2019-08-24 Alan Modra <amodra@gmail.com>
691
692 * elf64-ppc.c (ppc64_elf_edit_toc): Exclude undefined weak
693 symbols from GOT optimisation.
694
695 2019-08-23 Stafford Horne <shorne@gmail.com>
696
697 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Use correct value for
698 PLT GOT entries.
699
700 2019-08-23 Nick Clifton <nickc@redhat.com>
701
702 PR 24456
703 * elf.c (bfd_section_from_shdr): Issue an informative warning
704 message and continue processing other sections after encountering
705 a reloc section for a section which already has other relocs
706 associated with it.
707
708 2019-08-23 Alan Modra <amodra@gmail.com>
709
710 PR 24933
711 * elfxx-x86.c (_bfd_x86_elf_get_synthetic_symtab): Don't exit
712 on error without freeing plts[] contents.
713
714 2019-08-22 Dennis Zhang <dennis.zhang@arm.com>
715
716 * cpu-arm.c: New entries for Cortex-M35P, Cortex-A77, Cortex-A76AE.
717
718 2019-08-22 Nick Clifton <nickc@redhat.com>
719
720 PR 24922
721 * pei-x86_64.c (pex64_xdata_print_uwd_codes): Add checks before
722 reading data from extra records.
723
724 2019-08-22 Tamar Christina <tamar.christina@arm.com>
725
726 PR ld/24601
727 * elfnn-aarch64.c (aarch64_relocate): Handle weak TLS and undefined TLS.
728 Also Pass input_bfd to _bfd_aarch64_elf_resolve_relocation.
729 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use it.
730 * elfxx-aarch64.h (_bfd_aarch64_elf_resolve_relocation): Emit warning
731 for weak TLS.
732
733 2019-08-22 Alan Modra <amodra@gmail.com>
734
735 * elf32-arm.c (cmse_scan): Don't use ARM_GET_SYM_CMSE_SPCL,
736 instead recognize CMSE_PREFIX in symbol name.
737 (elf32_arm_gc_mark_extra_sections): Likewise.
738 (elf32_arm_filter_cmse_symbols): Don't test ARM_GET_SYM_CMSE_SPCL.
739 (elf32_arm_swap_symbol_in): Don't invoke ARM_SET_SYM_CMSE_SPCL.
740
741 2019-08-20 Dennis Zhang <dennis.zhang@arm.com>
742
743 * cpu-aarch64.c: New entries for Cortex-A34, Cortex-A65,
744 Cortex-A77, cortex-A65AE, and Cortex-A76AE.
745
746 2019-08-20 Tamar Christina <tamar.christina@arm.com>
747
748 * elf32-arm.c (elf32_thumb2_plt_entry, elf32_arm_plt_thumb_stub,
749 elf32_arm_stub_long_branch_v4t_thumb_thumb,
750 elf32_arm_stub_long_branch_v4t_thumb_arm,
751 elf32_arm_stub_short_branch_v4t_thumb_arm,
752 elf32_arm_stub_long_branch_v4t_thumb_arm_pic,
753 elf32_arm_stub_long_branch_v4t_thumb_thumb_pic,
754 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): Change nop to branch to
755 previous instruction.
756
757 2019-08-19 Tom Tromey <tromey@adacore.com>
758
759 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Create hash table
760 holding symbols.
761
762 2019-08-19 Alan Modra <amodra@gmail.com>
763
764 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename has_gotrel
765 to has_optrel.
766 (struct _ppc64_elf_section_data): Likewise.
767 (ppc64_elf_check_relocs): Set has_optrel for more relocs.
768 (ppc64_elf_edit_toc): Do ha/lo insn checks in GOT loop rather
769 than TOC loop. Check PLT16 insns too.
770
771 2019-08-16 H.J. Lu <hongjiu.lu@intel.com>
772
773 PR ld/24905
774 * elf64-x86-64.c (elf_x86_64_check_relocs): Move PIC check for
775 PC-relative relocations back to ...
776 (elf_x86_64_relocate_section): Here.
777
778 2019-08-16 Martin Liska <mliska@suse.cz>
779
780 PR ld/24912
781 * elflink.c: Report error only for not relocatable.
782 * linker.c (_bfd_generic_link_add_one_symbol): Do not handle
783 here lto_slim_object as it's handled in caller.
784
785 2019-08-16 Alan Modra <amodra@gmail.com>
786
787 * elf32-ppc.c (ppc_elf_relocate_section): Optimize unaligned relocs.
788
789 2019-08-15 Jim Wilson <jimw@sifive.com>
790
791 * elfnn-riscv.c (perform_relocation) <R_RISCV_RVC_LUI>: If
792 RISCV_CONST_HIGH_PART (value) is zero, then convert c.lui instruction
793 to c.li instruction, and use ENCODE_RVC_IMM to set value.
794
795 2019-08-15 Tom Tromey <tromey@adacore.com>
796
797 * dwarf2.c (scan_unit_for_symbols): Check for end of CU, not end
798 of section.
799
800 2019-08-14 Alan Modra <amodra@gmail.com>
801
802 PR 24623
803 * dwarf2.c (stash_comp_unit): New function, extracted from..
804 (_bfd_dwarf2_find_nearest_line): ..here.
805 (find_abstract_instance): Parse comp units and decode line info
806 as needed.
807
808 2019-08-14 Alan Modra <amodra@gmail.com>
809
810 * dwarf2.c (comp_unit_maybe_decode_line_info): Declare.
811 (comp_unit_find_nearest_line): Use it here..
812 (_bfd_dwarf2_find_symbol_bias): ..and here.
813
814 2019-08-14 Alan Modra <amodra@gmail.com>
815
816 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove addr_size parameter.
817 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
818 * coffgen.c (coff_find_nearest_line_with_names): Adjust
819 _bfd_dwarf2_find_nearest_line calls.
820 * elf.c (_bfd_elf_find_nearest_line, _bfd_elf_find_line): Likewise.
821 * elf32-arm.c (elf32_arm_find_nearest_line): Likewise.
822 * elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise.
823 * elfnn-aarch64.c (elfNN_aarch64_find_nearest_line): Likewise.
824 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise.
825 * mach-o.c (bfd_mach_o_find_nearest_line): Likewise.
826 * libbfd.h: Regenerate.
827
828 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
829
830 * elf-bfd.h (struct elf_backend_data): New members.
831 * elflink.c (_bfd_elf_link_create_dynamic_sections): Create
832 .gnu.hash section if necessary.
833 (struct collect_gnu_hash_codes): New member.
834 (elf_gnu_hash_process_symidx): New function name.
835 (elf_renumber_gnu_hash_syms): Ignore local and undefined
836 symbols. Record xlat location for every symbol which should have
837 a .MIPS.xhash entry.
838 (bfd_elf_size_dynamic_sections): Add DT_GNU_HASH dynamic tag to
839 dynamic section if necessary.
840 (GNU_HASH_SECTION_NAME): New define.
841 (bfd_elf_size_dynsym_hash_dynstr): Get .MIPS.xhash section.
842 Update the section size info.
843 * elfxx-mips.c (struct mips_elf_hash_sort_data): New members.
844 (struct mips_elf_link_hash_entry): New member.
845 (mips_elf_link_hash_newfunc): Initialize .MIPS.xhash translation
846 table location.
847 (mips_elf_sort_hash_table): Initialize the pointer to the
848 .MIPS.xhash section.
849 (mips_elf_sort_hash_table_f): Populate the .MIPS.xhash
850 translation table entry with the symbol dynindx.
851 (_bfd_mips_elf_section_from_shdr): Add SHT_MIPS_XHASH.
852 (_bfd_mips_elf_fake_sections): Initialize .MIPS.xhash section
853 info.
854 (_bfd_mips_elf_create_dynamic_sections): Create .MIPS.xhash
855 section.
856 (_bfd_mips_elf_size_dynamic_sections): Add DT_MIPS_XHASH tag to
857 dynamic section.
858 (_bfd_mips_elf_finish_synamic_sections): Add DT_MIPS_XHASH.
859 (_bfd_mips_elf_final_write_processing): Set .MIPS.xhash section
860 sh_link info.
861 (_bfd_mips_elf_get_target_dtag): Get DT_MIPS_XHASH tag.
862 (MIPS_LIBC_ABI_XHASH): New ABI version enum value.
863 (_bfd_mips_post_process_headers): Mark the ABI version as
864 MIPS_LIBC_ABI_XHASH if there exists a .MIPS.xhash section,
865 but not a .hash section.
866 (_bfd_mips_elf_record_xhash_symbol): New function. Record a
867 position in the translation table, associated with the hash
868 entry.
869 * elfxx-mips.h (literal_reloc_p): Define
870 elf_backend_record_xhash_symbol backend hook.
871 * elfxx-target.h: Initialize elf_backend_record_xhash_symbol
872 backend hook.
873
874 2019-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
875
876 * elf64-bpf.c (bpf_elf_relocate_section): New function.
877 (bpf_elf_insn_disp_reloc): Delete function.
878 (elf_backend_relocate_section): Define.
879
880 2019-08-07 Alan Modra <amodra@gmail.com>
881
882 PR 24644
883 * archive64.c (_bfd_archive_64_bit_slurp_armap): Properly check
884 for overflow in expressions involving nsymz.
885
886 2019-08-01 Ilia Diachkov <ilia.diachkov@optimitech.com>
887
888 * elfnn-riscv.c (_bfd_riscv_relax_lui): Set lui relax safety area to
889 two pages in relro presence.
890
891 2019-08-01 Max Filippov <jcmvbkbc@gmail.com>
892
893 * elf32-xtensa.c (insn_num_slots, get_rsr_lend_opcode)
894 (get_wsr_lbeg_opcode): New functions.
895 (check_loop_aligned): Detect relaxed loops and adjust loop_len
896 and insn_len for the first actual instruction of the loop.
897
898 2019-07-30 Alan Modra <amodra@gmail.com>
899
900 PR 24768
901 * bfd.c (struct bfd): Add lto_slim_object flag.
902 * bfd-in2.h: Regenerate.
903
904 2019-07-29 Martin Liska <mliska@suse.cz>
905
906 PR 24768
907 * archive.c (_bfd_compute_and_write_armap): Come up with
908 report_plugin_err variable.
909 * bfd-in2.h (struct bfd): Add lto_slim_object flag.
910 * elf.c (struct lto_section): New.
911 (_bfd_elf_make_section_from_shdr): Parse content of
912 .gnu_lto_.lto section.
913 * elflink.c: Report error for a missing LTO plugin.
914 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
915
916 2019-07-28 Alan Modra <amodra@gmail.com>
917
918 PR 24857
919 PR 24339
920 * elflink.c (elf_link_add_object_symbols): Report an informative
921 error on finding local symbols with index equal or greater than
922 symbol table sh_info. Correct comment. Allow such symbols in
923 dynamic objects. Abort on NULL section for symbol.
924
925 2019-07-26 Alan Modra <amodra@gmail.com>
926
927 * elf-bfd.h (struct output_elf_obj_tdata): Delete "linker" field.
928 (elf_linker): Don't define.
929 * elflink.c (bfd_elf_final_link): Don't set elf_linker.
930
931 2019-07-25 YunQiang Su <syq@debian.org>
932
933 PR 24832
934 * elfxx-mips.c (mips_set_isa_flags): Default to MIPS 3 for 64-bit
935 mips inputs.
936
937 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
938
939 * elf32-arc.c (bfd_get_32_me): Add a small description, fix
940 formating.
941 (reloc_type_to_name): Fix formating.
942 (arc_elf_object_p): Likewise.
943 (debug_arc_reloc): Likewise.
944 (arc_do_relocation): Likewise.
945
946 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
947
948 * elf32-arc.c (bfd_get_32_me): New function.
949 (bfd_put_32_me): Likewise.
950 (arc_elf_relax_section): Likewise.
951 (bfd_elf32_bfd_relax_section): Define.
952
953 2019-07-24 Alan Modra <amodra@gmail.com>
954
955 * elf-bfd.h (struct elf_backend_data): Return bfd_boolean from
956 elf_backend_final_write_processing, don't pass linker arg.
957 (_bfd_elf_final_write_processing): Update prototype.
958 * elf.c (_bfd_elf_write_object_contents): Adjust call.
959 (_bfd_elf_final_write_processing): Return error on incompatible
960 OSABI and has_gnu_osabi. Remove linker arg.
961 * elf-nacl.h (nacl_final_write_processing): Update prototype.
962 * elf-vxworks.h (elf_vxworks_final_write_processing): Likewise.
963 * elfxx-mips.h (_bfd_mips_final_write_processing): Likewise.
964 (_bfd_mips_elf_final_write_processing): Likewise.
965 * elf-hppa.h (elf_hppa_final_write_processing): Return status
966 and remove linker arg.
967 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
968 * elf-nacl.c (nacl_final_write_processing): Likewise.
969 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
970 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
971 * elf32-arm.c (arm_final_write_processing): Likewise.
972 (elf32_arm_final_write_processing): Likewise.
973 (elf32_arm_nacl_final_write_processing): Likewise.
974 (elf32_arm_vxworks_final_write_processing): Likewise.
975 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
976 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
977 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
978 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
979 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
980 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
981 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
982 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
983 * elf32-mips.c (mips_vxworks_final_write_processing): Likewise.
984 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
985 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
986 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
987 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
988 * elf32-ppc.c (ppc_final_write_processing): Likewise.
989 (ppc_elf_final_write_processing): Likewise.
990 (ppc_elf_vxworks_final_write_processing): Likewise.
991 * elf32-sparc.c (sparc_final_write_processing): Likewise.
992 (elf32_sparc_final_write_processing): Likewise.
993 (elf32_sparc_vxworks_final_write_processing): Likewise.
994 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
995 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
996 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
997 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
998 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
999 * elfxx-mips.c (_bfd_mips_final_write_processing): Likewise.
1000 (_bfd_mips_elf_final_write_processing): Likewise.
1001
1002 2019-07-24 Alan Modra <amodra@gmail.com>
1003
1004 * elf-vxworks.c (elf_vxworks_final_write_processing): Don't return
1005 early.
1006 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
1007 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
1008
1009 2019-07-24 Alan Modra <amodra@gmail.com>
1010
1011 * elf32-visium.c (visium_elf_post_process_headers): Don't set
1012 EI_OSABI header byte here.
1013 (ELF_OSABI): Define.
1014
1015 2019-07-23 Alan Modra <amodra@gmail.com>
1016
1017 * elf-bfd.h (enum elf_gnu_osabi): Add elf_gnu_osabi_mbind.
1018 * elf.c (_bfd_elf_make_section_from_shdr): Set elf_gnu_osabi_mbind.
1019 (get_program_header_size): Formatting. Only test SH_GNU_MBIND
1020 when elf_gnu_osabi_mbind is set.
1021 (_bfd_elf_map_sections_to_segments): Likewise.
1022 (_bfd_elf_init_private_section_data): Likewise.
1023 (_bfd_elf_final_write_processing): Update comment.
1024 * elf64-hppa.c (elf64_hppa_special_sections): Move .tbss entry.
1025 (elf_backend_special_sections): Define without .tbss for linux.
1026
1027 2019-07-23 Alan Modra <amodra@gmail.com>
1028
1029 * elf-bfd.h (enum elf_gnu_osabi): Rename from elf_gnu_symbols.
1030 Remove none, any, all enums.
1031 (struct elf_obj_tdata): Rename has_gnu_symbols field to has_gnu_osabi.
1032 (_bfd_elf_final_write_processing): Declare.
1033 * elf.c (_bfd_elf_write_object_contents): Unconditionally call
1034 elf_backend_final_write_processing.
1035 (_bfd_elf_post_process_headers): Move body of function to..
1036 (_bfd_elf_final_write_processing): ..here, but set EI_OSABI byte
1037 only when not already set. Adjust for rename.
1038 * elfxx-target.h (elf_backend_final_write_processing): Default to
1039 _bfd_elf_final_write_processing.
1040 * elf-hppa.h (elf_hppa_final_write_processing): Call
1041 _bfd_elf_final_write_processing.
1042 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
1043 * elf-nacl.c (nacl_final_write_processing): Likewise.
1044 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
1045 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
1046 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
1047 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
1048 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
1049 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
1050 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
1051 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
1052 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
1053 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
1054 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
1055 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
1056 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
1057 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
1058 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
1059 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
1060 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
1061 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
1062 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
1063 * elf32-arm.c (arm_final_write_processing): Split out from..
1064 (elf32_arm_final_write_processing): ..here. Call
1065 _bfd_elf_final_write_processing.
1066 (elf32_arm_nacl_final_write_processing): Adjust.
1067 * elfxx-mips.c (_bfd_mips_final_write_processing): Split out from..
1068 (_bfd_mips_elf_final_write_processing): ..here. Call
1069 _bfd_elf_final_write_processing.
1070 * elfxx-mips.h (_bfd_mips_final_write_processing): Declare.
1071 * elf32-mips.c (mips_vxworks_final_write_processing): Adjust.
1072 * elf32-ppc.c (ppc_final_write_processing): Split out from..
1073 (ppc_elf_final_write_processing): ..here. Call
1074 _bfd_elf_final_write_processing.
1075 (ppc_elf_vxworks_final_write_processing): Adjust.
1076 * elf32-sparc.c (sparc_final_write_processing): Split out from..
1077 (elf32_sparc_final_write_processing): ..here. Call
1078 _bfd_elf_final_write_processing.
1079 (elf32_sparc_vxworks_final_write_processing): Adjust.
1080 * elf32-d10v.c (elf_backend_final_write_processing): Don't define.
1081 * elf32-d30v.c (elf_backend_final_write_processing): Don't define.
1082 * elf32-m68hc11.c (elf_backend_final_write_processing): Don't define.
1083 * elf32-m68hc12.c (elf_backend_final_write_processing): Don't define.
1084 * elf32-s12z.c (elf_backend_final_write_processing): Don't define.
1085 * elf32-i386.c (elf_i386_check_relocs): Don't set has_gnu_symbols.
1086 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1087 * elflink.c (elf_link_add_object_symbols): Likewise.
1088 (elf_link_output_symstrtab): Set has_gnu_osabi for symbols here
1089 instead.
1090
1091 2019-07-23 Omar Majid <omajid@redhat.com>
1092
1093 * coffcode.h (coff_set_arch_mach_hook): Handle I386_APPLE_MAGIC,
1094 I386_FREEBSD_MAGIC, I386_LINUX_MAGIC, I386_NETBSD_MAGIC,
1095 AMD64_APPLE_MAGIC, AMD64_FREEBSD_MAGIC, AMD64_LINUX_MAGIC,
1096 AMD64_NETBSD_MAGIC.
1097 * peXXigen.c: Add comment about source of .NET magic numbers.
1098
1099 2019-07-19 Alan Modra <amodra@gmail.com>
1100
1101 * reloc.c (BFD_RELOC_PPC64_TPREL34, BFD_RELOC_PPC64_DTPREL34),
1102 (BFD_RELOC_PPC64_GOT_TLSGD34, BFD_RELOC_PPC64_GOT_TLSLD34),
1103 (BFD_RELOC_PPC64_GOT_TPREL34, BFD_RELOC_PPC64_GOT_DTPREL34),
1104 (BFD_RELOC_PPC64_TLS_PCREL): New pcrel tls relocs.
1105 * elf64-ppc.c (ppc64_elf_howto_raw): Add howtos for pcrel tls relocs.
1106 (ppc64_elf_reloc_type_lookup): Translate pcrel tls relocs.
1107 (must_be_dyn_reloc, dec_dynrel_count): Add R_PPC64_TPREL64.
1108 (ppc64_elf_check_relocs): Support pcrel tls relocs.
1109 (ppc64_elf_tls_optimize, ppc64_elf_relocate_section): Likewise.
1110 * bfd-in2.h: Regenerate.
1111 * libbfd.h: Regenerate.
1112
1113 2019-07-18 Alan Modra <amodra@gmail.com>
1114
1115 * elf64-ppc.c (ppc64_elf_relocate_section): Don't bother selecting
1116 a TLS section symbol for edited relocs. Tighten TLS symbol/reloc
1117 match test.
1118
1119 2019-07-18 Alan Modra <amodra@gmail.com>
1120
1121 * elf64-ppc.c (TLS_EXPLICIT): Define as 256.
1122 (ppc64_elf_check_relocs): Don't store TLS_EXPLICIT even if char
1123 is more than 8 bits.
1124 (ppc64_elf_tls_optimize): Likewise. Make tls_set, tls_clear, and
1125 tls_type vars unsigned int.
1126 (ppc64_elf_relocate_section): Use r_type rather than TLS_EXPLICIT
1127 to select r_type edit.
1128
1129 2019-07-18 Alan Modra <amodra@gmail.com>
1130
1131 * elf32-ppc.c (TLS_GDIE): Rename from TLS_TPRELGD throughout file.
1132 Correct comment.
1133 * elf64-ppc.c (TLS_GDIE): Likewise.
1134
1135 2019-07-18 Alan Modra <amodra@gmail.com>
1136
1137 * elf64-ppc.c (ppc64_elf_tls_optimize): Correct test for allowed
1138 range of tp-relative offsets.
1139
1140 2019-07-15 Alan Modra <amodra@gmail.com>
1141
1142 * elflink.c (_bfd_elf_fix_symbol_flags): If the def for an
1143 alias is no longer bfd_link_hash_defined, clear the alias.
1144
1145 2019-07-13 Alan Modra <amodra@gmail.com>
1146
1147 * elflink.c (_bfd_elf_omit_section_dynsym_default): Don't keep
1148 tls_sec.
1149 (_bfd_elf_init_1_index_section): Prefer not using TLS sections.
1150 (_bfd_elf_init_2_index_sections): Likewise.
1151 * elf64-ppc.c (ppc64_elf_relocate_section): When emitting dynamic
1152 relocations for local TLS symbols, use STN_UNDEF as the relocation
1153 symbol.
1154 * elf32-ppc.c (ppc_elf_relocate_section): Likewise, and don't
1155 leave TLS symbol value in the addend.
1156
1157 2019-07-08 Alan Modra <amodra@gmail.com>
1158
1159 PR 24785
1160 * elf32-ppc.c (_bfd_elf_ppc_set_arch): Sanity check .PPC.EMB.apuinfo
1161 size before reading first word.
1162
1163 2019-07-02 Nick Clifton <nickc@redhat.com>
1164
1165 PR 24717
1166 * elf.c (is_debuginfo_file): New function.
1167 (assign_file_positions_for_non_load_sections): Do not warn about
1168 allocated sections outside of loadable segments if they are found
1169 in a debuginfo file.
1170 * elf-bfd.h (is_debuginfo_file): Prototype.
1171
1172 2019-07-02 Nick Clifton <nickc@redhat.com>
1173
1174 PR 24753
1175 * compress.c (bfd_get_full_section_contents): Do not complain
1176 about linker created sections that are larger than the file size.
1177
1178 2019-07-02 Christophe Lyon <christophe.lyon@linaro.org>
1179
1180 * bfd/elf32-arm.c (CMSE_STUB_NAME): New define.
1181 (elf32_arm_get_stub_entry): Do not try to emit long-branch stubs
1182 for CMSE stubs.
1183 (arm_dedicated_stub_output_section_name): Use CMSE_STUB_NAME.
1184
1185 2019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1186
1187 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Mark debug
1188 sections when .text section contain secure entry functions
1189 is marked.
1190
1191 2019-07-01 Nick Clifton <nickc@redhat.com>
1192
1193 PR 23839
1194 * elf32-arm.c (elf32_arm_update_relocs): Do not include the
1195 section VMA in the offset used to update exidx relocs.
1196
1197 2019-06-28 Nick Clifton <nickc@redhat.com>
1198
1199 PR 24708
1200 * elf.c (_bfd_elf_slurp_version_tables): Check for an excessively
1201 large version reference section.
1202 * compress.c (bfd_get_full_section_contents): Check for an
1203 uncompressed section whose size is larger than the file size.
1204
1205 2019-06-28 Alan Modra <amodra@gmail.com>
1206
1207 * format.c (bfd_check_format_matches): Don't match plugin target
1208 if another target matches. Expand comment.
1209 * targets.c (_bfd_target_vector): Move plugin_vec after all other
1210 non-corefile targets, outside !SELECT_VECS.
1211 * config.bfd: Don't handle targ=plugin here.
1212 * configure.ac: Don't add plugin to enable_targets or handle in
1213 target loop setting selvecs and other target vars.
1214 * configure: Regenerate.
1215
1216 2019-06-26 Nick Clifton <nickc@redhat.com>
1217
1218 PR 24703
1219 * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add error
1220 messages for failures.
1221 * mach-o.c (bfd_mach_o_canonicalize_relocs): Set an bfd error code
1222 if returning an error value.
1223
1224 2019-06-25 Jan Beulich <jbeulich@suse.com>
1225
1226 * elf-properties.c (elf_find_and_remove_property): Rename last
1227 parameter. Mention it in comment.
1228
1229 2019-06-24 Ilia Diachkov <ilia.diachkov@optimitech.com>
1230
1231 * elfnn-riscv.c (_bfd_riscv_relax_lui): Delete early exit when
1232 SEC_MERGE or SEC_CODE flags are set.
1233 (_bfd_riscv_relax_section): New local symtype. Set sym_sec and
1234 symtype consistently. Don't include sec_addr (sym_sec) in symval.
1235 Add check for SEC_INFO_TYPE_MERGE and call _bfd_merged_section_offset.
1236 Add sec_addr (sym_sec) after handling merge sections.
1237
1238 2019-06-24 H.J. Lu <hongjiu.lu@intel.com>
1239
1240 PR ld/24721
1241 * elf-properties.c (elf_merge_gnu_property_list): Remove the
1242 property after reporting property removal.
1243
1244 2019-06-23 Alan Modra <amodra@gmail.com>
1245
1246 PR 24704
1247 * elf64-ppc.c (R_PPC64_GOT16_DS): Don't set has_gotrel.
1248 (ppc64_elf_edit_toc): Don't remove R_PPC64_GOT16_DS got entries.
1249 Reduce range of offsets allowed for other GOT relocs.
1250
1251 2019-06-23 Alan Modra <amodra@gmail.com>
1252
1253 PR 24689
1254 * elfcode.h (elf_object_p): Warning fix.
1255
1256 2019-06-21 Alan Modra <amodra@gmail.com>
1257
1258 PR 24689
1259 * elfcode.h (elf_object_p): Check type of e_shstrndx section.
1260
1261 2019-06-19 Alan Modra <amodra@gmail.com>
1262
1263 PR 24697
1264 * elf32-ppc.c (ppc_elf_relocate_section): Don't read insn for
1265 R_PPC_EMB_RELSDA. Mask low bit of R_PPC_EMB_SDA21 r_offset.
1266
1267 2019-06-19 Alan Modra <amodra@gmail.com>
1268
1269 * elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for
1270 functions that require r2 valid to use local entry.
1271 (ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise.
1272
1273 2019-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
1274
1275 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_dynrelocs): Remove.
1276 (elfNN_aarch64_size_dynamic_sections): Remove loc_hash_table traversal
1277 with elfNN_aarch64_allocate_local_dynrelocs.
1278
1279 2019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
1280
1281 * elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32.
1282
1283 2019-06-14 Alan Modra <amodra@gmail.com>
1284
1285 * Makefile.in: Regenerate.
1286 * configure: Regenerate.
1287
1288 2019-06-14 Alan Modra <amodra@gmail.com>
1289
1290 * elf64-ppc.c: Fix comments involving paddi.
1291
1292 2019-06-12 Adam Lackorzymski <adam@os.inf.tu-dresden.de>
1293
1294 PR 24643
1295 * elf32-arm.c (arm_elf_find_function): Fail if the symol table is
1296 absent, or the bfd is not in the ELF formart.
1297 * elfnn-aarch64.c (aarch64_elf_find_function): Likewise.
1298
1299 2019-06-10 Christos Zoulas <christos@zoulas.com>
1300
1301 PR 24650
1302 * elf.c (elfcore_make_auxv_note_section): New function.
1303 (elfcore_grok_note): Use it.
1304 (elfcore_grok_freebsd_note): Likewise.
1305 (elfcore_grok_openbsd_note): Likewise.
1306 (elfcore_grok_netbsd_note): Likewise. Plus add support for
1307 NT_NETBSDCORE_AUXV notes.
1308
1309 2019-06-06 Sudakshina Das <sudi.das@arm.com>
1310
1311 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Set
1312 alignment of the new gnu property section.
1313
1314 2019-06-06 Sudakshina Das <sudi.das@arm.com>
1315
1316 * bfd-in.h: Change comment.
1317 * bfd-in2.h: Regenerate.
1318 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update warning.
1319 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties):
1320 Likwise.
1321
1322 2019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
1323
1324 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>:
1325 Remove overflow check.
1326
1327 2019-05-28 Alan Modra <amodra@gmail.com>
1328
1329 PR 24596
1330 * cofflink.c (coff_link_check_archive_element): Don't assume
1331 element is a coff object file after calling add_archive_element.
1332
1333 2019-05-28 Alan Modra <amodra@gmail.com>
1334
1335 PR 24596
1336 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't
1337 attempt to set sh_entsize for excluded PLT section.
1338
1339 2019-05-28 Alan Modra <amodra@gmail.com>
1340
1341 PR 24596
1342 * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt
1343 to emit R_ALPHA_GOTTPREL in PIEs, for which no space is
1344 allocated in alpha_dynamic_entries_for_reloc.
1345
1346 2019-05-28 Alan Modra <amodra@gmail.com>
1347
1348 PR 24596
1349 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault
1350 on NULL output_section.
1351 * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf.
1352
1353 2019-05-28 Alan Modra <amodra@gmail.com>
1354
1355 PR 24596
1356 * elf32-m68k.c (elf_m68k_get_got_entry): Don't create a new
1357 entry when MUST_FIND. Abort when MUST_FIND not found.
1358 (elf_m68k_get_bfd2got_entry): Likewise.
1359 (elf_m68k_relocate_section): Remove now useless assert.
1360
1361 2019-05-28 Alan Modra <amodra@gmail.com>
1362
1363 PR 24596
1364 * elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd
1365 from bfd_link_info, not an output section owner.
1366 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise.
1367 (elf_hppa_final_link_relocate): Likewise.
1368
1369 2019-05-28 Alan Modra <amodra@gmail.com>
1370
1371 PR 24596
1372 * aout-tic30.c (MY_bfd_final_link): Don't segfault on missing
1373 create_object_symbols_section, obj_textsec, obj_datasec or
1374 obj_bsssec. Fix other errors in placement.
1375 * config.bfd: Obsolete tic30-aout.
1376
1377 2019-05-28 Alan Modra <amodra@gmail.com>
1378
1379 PR 24596
1380 * dwarf2.c (save_section_vma, section_vma_same): Check for NULL
1381 end of section list as well as section_count.
1382 * xcofflink.c (xcoff_link_add_symbols): Fix temporarily changed
1383 section list before returning error.
1384
1385 2019-05-27 Alan Modra <amodra@gmail.com>
1386
1387 * elf.c (bfd_elf_set_group_contents): Exit on zero size section.
1388
1389 2019-05-27 Alan Modra <amodra@gmail.com>
1390
1391 PR 24596
1392 * linker.c (_bfd_generic_link_output_symbols): Heed BSF_KEEP.
1393
1394 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1395
1396 * elfnn-aarch64.c (elfNN_aarch64_merge_symbol_attribute): New function.
1397 (struct elf_aarch64_link_hash_table): Add variant_pcs member.
1398 (elfNN_aarch64_allocate_dynrelocs): Update variant_pcs.
1399 (elfNN_aarch64_size_dynamic_sections): Add DT_AARCH64_VARIANT_PCS.
1400 (elf_backend_merge_symbol_attribute): Define.
1401
1402 2019-05-24 Alan Modra <amodra@gmail.com>
1403
1404 * po/SRC-POTFILES.in: Regenerate.
1405
1406 2019-05-24 Alan Modra <amodra@gmail.com>
1407
1408 * elf64-ppc.c: Comment on powerxx _notoc stub variants.
1409 (LI_R11_0, LIS_R11, ORI_R11_R11_0, SLDI_R11_R11_34): Define.
1410 (PADDI_R12_PC, PLD_R12_PC, D34, HA34): Define.
1411 (struct ppc_link_hash_table): Add powerxx_stubs.
1412 (ppc64_elf_check_relocs): Set powerxx_stubs.
1413 (build_powerxx_offset, size_powerxx_offset),
1414 (num_relocs_for_powerxx_offset),
1415 (emit_relocs_for_powerxx_offset): New functions.
1416 (plt_stub_size): Size powerxx stubs.
1417 (ppc_build_one_stub): Emit powerxx stubs.
1418 (ppc_size_one_stub): Size powerxx stubs. Omit .eh_frame for
1419 powerxx stubs.
1420
1421 2019-05-24 Alan Modra <amodra@gmail.com>
1422
1423 * elf64-ppc.c (ppc64_elf_check_relocs): Set has_gotrel for
1424 R_PPC64_GOT_PCREL34.
1425 (xlate_pcrel_opt): New function.
1426 (ppc64_elf_edit_toc): Handle R_PPC64_GOT_PCREL34.
1427 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
1428 for R_PPC64_GOT_PCREL34. Implement R_PPC64_PCREL_OPT optimisation.
1429
1430 2019-05-24 Alan Modra <amodra@gmail.com>
1431
1432 * reloc.c (BFD_RELOC_PPC64_D34, BFD_RELOC_PPC64_D34_LO),
1433 (BFD_RELOC_PPC64_D34_HI30, BFD_RELOC_PPC64_D34_HA30),
1434 (BFD_RELOC_PPC64_PCREL34, BFD_RELOC_PPC64_GOT_PCREL34),
1435 (BFD_RELOC_PPC64_PLT_PCREL34),
1436 (BFD_RELOC_PPC64_ADDR16_HIGHER34, BFD_RELOC_PPC64_ADDR16_HIGHERA34),
1437 (BFD_RELOC_PPC64_ADDR16_HIGHEST34, BFD_RELOC_PPC64_ADDR16_HIGHESTA34),
1438 (BFD_RELOC_PPC64_REL16_HIGHER34, BFD_RELOC_PPC64_REL16_HIGHERA34),
1439 (BFD_RELOC_PPC64_REL16_HIGHEST34, BFD_RELOC_PPC64_REL16_HIGHESTA34),
1440 (BFD_RELOC_PPC64_D28, BFD_RELOC_PPC64_PCREL28): New reloc enums.
1441 * elf64-ppc.c (PNOP): Define.
1442 (ppc64_elf_howto_raw): Add reloc howtos for new relocations.
1443 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc numbers.
1444 (ppc64_elf_ha_reloc): Adjust addend for highera34 and highesta34
1445 relocs.
1446 (ppc64_elf_prefix_reloc): New function.
1447 (struct ppc_link_hash_table): Add notoc_plt.
1448 (is_branch_reloc): Add R_PPC64_PLTCALL_NOTOC.
1449 (is_plt_seq_reloc): Add R_PPC64_PLT_PCREL34,
1450 R_PPC64_PLT_PCREL34_NOTOC, and R_PPC64_PLTSEQ_NOTOC.
1451 (ppc64_elf_check_relocs): Handle pcrel got and plt relocs. Set
1452 has_pltcall for section on seeing R_PPC64_PLTCALL_NOTOC. Handle
1453 possible need for dynamic relocs on non-pcrel powerxx relocs.
1454 (dec_dynrel_count): Handle non-pcrel powerxx relocs.
1455 (ppc64_elf_inline_plt): Handle R_PPC64_PLTCALL_NOTOC.
1456 (toc_adjusting_stub_needed): Likewise.
1457 (ppc64_elf_tls_optimize): Handle R_PPC64_PLTSEQ_NOTOC.
1458 (ppc64_elf_relocate_section): Handle new powerxx relocs.
1459 * bfd-in2.h: Regenerate.
1460 * libbfd.h: Regenerate.
1461
1462 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
1463
1464 * config.bfd (targ_cpu): Process bpf-*-none only if BFD64.
1465 * configure.ac: Set target_size=64 for bpf_elf64_le_vec and
1466 bpf_elf64_be_vec.
1467 * configure: Regenerate.
1468
1469 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
1470
1471 * configure: Regenerated.
1472 * Makefile.am (ALL_MACHINES): Add cpu-bpf.lo.
1473 (ALL_MACHINES_CFILES): Add cpu-bpf.c.
1474 (BFD64_BACKENDS): Add elf64-bpf.lo.
1475 (BFD64_BACKENDS_CFILES): Add elf64-bpf.c.
1476 * Makefile.in (SOURCE_HFILES): Regenerate.
1477 * config.bfd (targ_cpu): Handle bpf-*-* targets.
1478 * cpu-bpf.c: New file.
1479 * elf64-bpf.c: Likewise.
1480 * targets.c (_bfd_target_vector): Add bpf_elf64_be_vec and
1481 bpf_elf64_le_vec.
1482 * archures.c: Define architecture bfd_arch_bpf and machine
1483 bfd_arch_bpf.
1484 * reloc.c: Define BFD relocations used by the BPF target.
1485 * bfd-in2.h: Regenerated.
1486 * libbfd.h: Likewise.
1487
1488 2019-05-22 Alan Modra <amodra@gmail.com>
1489
1490 * elf32-arm.c (arm_allocate_glue_section_space): Clear section
1491 contents.
1492
1493 2019-05-22 Alan Modra <amodra@gmail.com>
1494
1495 * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
1496 processing on "size error in section".
1497
1498 2019-05-22 Alan Modra <amodra@gmail.com>
1499
1500 * som.c (som_bfd_free_cached_info): Call
1501 _bfd_generic_close_and_cleanup.
1502
1503 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
1504
1505 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Generate error
1506 for TLS_TPREL_HI16(/LO16) relocations in shared library.
1507
1508 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
1509
1510 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Add NULL pointer
1511 checks. Search the RELA table for n64 relocations.
1512
1513 2019-05-21 Matthew Fortune <matthew.fortune@mips.com>
1514 Faraz Shahbazker <fshahbazker@wavecomp.com>
1515
1516 * elfxx-mips.c (LA25_BC): New macro.
1517 (mips_elf_link_hash_table)<compact_branches>: New field.
1518 (STUB_JALRC): New macro.
1519 (mipsr6_o32_exec_plt0_entry_compact): New array.
1520 (mipsr6_n32_exec_plt0_entry_compact): Likewise.
1521 (mipsr6_n64_exec_plt0_entry_compact): Likewise.
1522 (mipsr6_exec_plt_entry_compact): Likewise.
1523 (mips_elf_create_la25_stub): Use BC instead of J for stubs
1524 when compact_branches is true.
1525 (_bfd_mips_elf_finish_dynamic_symbol): Choose the compact
1526 PLT for MIPSR6 with compact_branches. Do not reorder the
1527 compact branches PLT. Switch the lazy stub for MIPSR6
1528 with compact_branches to use JALRC.
1529 (mips_finish_exec_plt): Choose the compact PLT0 for MIPSR6
1530 when compact_branches is true.
1531 (_bfd_mips_elf_compact_branches): New function.
1532 * elfxx-mips.h (_bfd_mips_elf_compact_branches): New prototype.
1533
1534 2019-05-21 Tamar Christina <tamar.christina@arm.com>
1535
1536 PR ld/24373
1537 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
1538 Fix print formatter.
1539
1540 2019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
1541
1542 PR 24460
1543 * elf32-arm.c (get_value_helper): Remove.
1544 (elf32_arm_final_link_relocate): Fix branch future relocations.
1545
1546 2019-05-21 Tamar Christina <tamar.christina@arm.com>
1547
1548 PR ld/24373
1549 * bfd-in.h (enum erratum_84319_opts): New
1550 (bfd_elf64_aarch64_set_options, bfd_elf32_aarch64_set_options): Change
1551 int to enum erratum_84319_opts.
1552 * bfd-in2.h: Regenerate.
1553 * elfnn-aarch64.c (struct elf_aarch64_link_hash_table): Change
1554 fix_erratum_843419 to use new enum, remove fix_erratum_843419_adr.
1555 (_bfd_aarch64_add_stub_entry_after): Conditionally create erratum stub.
1556 (aarch64_size_one_stub): Conditionally size erratum 843419 stubs.
1557 (_bfd_aarch64_resize_stubs): Amend comment.
1558 (elfNN_aarch64_size_stubs): Don't generate stubs when no workaround
1559 requested.
1560 (bfd_elfNN_aarch64_set_options): Use new fix_erratum_843419 enum.
1561 (_bfd_aarch64_erratum_843419_branch_to_stub): Implement selection of
1562 erratum workaround.
1563 (clear_erratum_843419_entry): Update erratum conditional.
1564
1565 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1566
1567 PR ld/24571
1568 * bfd/elf32-avr.c (elf32_avr_relax_section): Adjust range check
1569 when computing distance_short_enough.
1570
1571 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1572
1573 PR ld/24564
1574 * bfd/elf32-avr.c (avr_relative_distance_considering_wrap_around):
1575 Wrap around even if distance equals avr_pc_wrap_around.
1576
1577 2019-05-20 Nick Clifton <nickc@redhat.com>
1578
1579 * po/fr.po: Updated French translation.
1580
1581 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
1582
1583 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add case for Tag_MVE_arch.
1584
1585 2019-05-16 Alan Modra <amodra@gmail.com>
1586
1587 * elf32-arm.c (elf32_arm_write_section): Revert last change.
1588
1589 2019-05-15 Alan Modra <amodra@gmail.com>
1590
1591 * elf32-arm.c (elf32_arm_write_section): Don't leave
1592 error case of STM32L4XX_ERRATUM_BRANCH_TO_VENEER with
1593 unitialised section contents.
1594
1595 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
1596
1597 PR 19921
1598 * verilog.c: (VerilogDataWidth): New variable.
1599 (verilog_write_record): Emit bytes in VerilogDataWidth bundles.
1600
1601 2019-05-08 Nick Clifton <nickc@redhat.com>
1602
1603 PR 24523
1604 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Return TRUE
1605 rather than FALSE if encountering a non-ELF file.
1606
1607 2019-05-06 Alan Modra <amodra@gmail.com>
1608
1609 * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error.
1610
1611 2019-05-06 Alan Modra <amodra@gmail.com>
1612
1613 * reloc.c (BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA),
1614 (BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA):
1615 Sort before BFD_RELOC_PPC64_DTPREL16_HIGHESTA entry.
1616 * libbfd.h: Regenerate.
1617 * bfd-in2.h: Regenerate.
1618
1619 2019-05-04 Alan Modra <amodra@gmail.com>
1620
1621 PR 24511
1622 * syms.c (coff_section_type): Only allow '.', '$' and numeric
1623 following the standard section names.
1624 (bfd_decode_symclass): Prioritize section flag tests in
1625 decode_section_type before name tests in coff_section_type.
1626 * plugin.c (bfd_plugin_canonicalize_symtab): Init fake_section
1627 and fake_common_section using BFD_FAKE_SECTION. Use "fake" as
1628 their names and choose standard .text section flags for
1629 fake_section.
1630
1631 2019-05-02 Nick Clifton <nickc@redhat.com>
1632
1633 PR 24493
1634 * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
1635 .gnu.debugaltlink sections as debugging sections.
1636
1637 2019-04-30 Alan Modra <amodra@gmail.com>
1638
1639 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel.
1640 (struct _ppc64_elf_section_data): Likewise.
1641 (ppc64_elf_check_relocs): Set above fields.
1642 (ppc64_elf_edit_toc): Add a pass over GOT relocs.
1643 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
1644 when possible.
1645
1646 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
1647
1648 PR ld/24486
1649 * elflink.c (elf_link_output_extsym): Don't complain undefined
1650 weak dynamic reference.
1651
1652 2019-04-25 Sudakshina Das <sudi.das@arm.com>
1653
1654 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): Remove.
1655 (PLT_BTI_TLSDESC_ENTRY_SIZE): Remove.
1656 (PLT_PAC_ENTRY_SIZE, PLT_BTI_PAC_ENTRY_SIZE): Remove.
1657 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): Update.
1658 (elfNN_aarch64_small_plt0_pac_entry): Remove.
1659 (elfNN_aarch64_small_plt0_bti_pac_entry): Remove.
1660 (elfNN_aarch64_small_plt0_bti_entry): Update.
1661 (elfNN_aarch64_small_plt_bti_entry): Update.
1662 (elfNN_aarch64_small_plt_pac_entry): Update.
1663 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): Update.
1664 (setup_plt_values): Setup new entries.
1665 (elfNN_aarch64_finish_dynamic_sections): Remove size change.
1666 (elfNN_aarch64_plt_sym_val): Likewise.
1667
1668 2019-04-22 Jim Wilson <jimw@sifive.com>
1669
1670 * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
1671
1672 2019-04-19 Alan Modra <amodra@gmail.com>
1673
1674 * elf32-s12z.c (elf_backend_can_gc_sections): Don't define
1675
1676 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1677
1678 * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not
1679 building shared object.
1680 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Likewise.
1681
1682 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1683
1684 PR ld/24458
1685 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86
1686 linker_def.
1687
1688 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1689
1690 * reloc.c (BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM): New internal
1691 relocation.
1692 * bfd-in2.h: Regenerate.
1693 * libbfd.h: Likewise.
1694
1695 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1696
1697 * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New.
1698 * bfd-in2.h: Regenerated.
1699 * libbfd.h: Regenerated.
1700
1701 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1702
1703 * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation.
1704 * bfd-in2.h: Regenerated.
1705 * libbfd.h: Likewise.
1706
1707 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1708
1709 * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New.
1710 * bfd-in2.h: Regenerated.
1711 * libbfd.h: Regenerated.
1712 * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13.
1713 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13
1714 and R_ARM_THM_BF12 together.
1715 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13.
1716
1717 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1718
1719 * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New
1720 * libbfd.h: Regenerated.
1721 * bfd-in2.h: Regenerated.
1722 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18.
1723 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19
1724 and R_ARM_THM_BF18 together.
1725 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19.
1726
1727 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1728
1729 * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum.
1730 * bfd-in2.h: Regenerated.
1731 * libbfd.h: Regenerated.
1732 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16.
1733 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17
1734 and R_ARM_THM_BF16 together.
1735 (get_value_helper): New reloc helper.
1736 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16.
1737
1738 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1739
1740 * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
1741 * bfd-in2.h: Regenerate.
1742 * libbfd.h: Regenerate.
1743
1744 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1745
1746 * archures.c (bfd_mach_arm_8_1M_MAIN): Define.
1747 * bfd-in2.h: Regenerate.
1748 * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline.
1749 * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline
1750 and update assert.
1751 (using_thumb2): Likewise.
1752 (using_thumb2_bl): Update assert.
1753 (arch_has_arm_nop): Likewise.
1754 (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline.
1755 (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging.
1756
1757 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1758
1759 * elf-linker-x86.h (elf_x86_cet_report): New.
1760 (elf_linker_x86_params): Add cet_report.
1761 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
1762 missing IBT and SHSTK properties if needed.
1763
1764 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1765
1766 PR ld/24436
1767 * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of
1768 "h != NULL". Don't check "h != NULL" before calling.
1769 bfd_elf_gc_record_vtentry.
1770 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
1771 * elf32-bfin.c (bfin_check_relocs): Likewise.
1772 * elf32-cris.c (cris_elf_check_relocs): Likewise.
1773 * elf32-csky.c (csky_elf_check_relocs): Likewise.
1774 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
1775 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
1776 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
1777 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
1778 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
1779 * elf32-i386.c (elf_i386_check_relocs): Likewise.
1780 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1781 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
1782 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
1783 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
1784 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
1785 * elf32-metag.c (elf_metag_check_relocs): Likewise.
1786 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
1787 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
1788 * elf32-s390.c (elf_s390_check_relocs): Likewise.
1789 * elf32-sh.c (sh_elf_check_relocs): Likewise.
1790 * elf32-v850.c (v850_elf_check_relocs): Likewise.
1791 * elf32-vax.c (elf_vax_check_relocs): Likewise.
1792 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
1793 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
1794 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
1795 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1796 * elf64-s390.c (elf_s390_check_relocs): Likewise.
1797 * elf64-x86-64.c (elf_s390_check_relocs): Likewise.
1798 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
1799 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
1800 * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt
1801 VTENTRY entry.
1802
1803 2019-04-11 Alan Modra <amodra@gmail.com>
1804
1805 PR 24435
1806 * elflink.c (elf_link_add_object_symbols): Don't read partial
1807 dynamic entries from fuzzed objects.
1808
1809 2019-04-11 Tamar Christina <tamar.christina@arm.com>
1810
1811 PR ld/24302
1812 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit
1813 DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW.
1814 (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW.
1815
1816 2019-04-10 Michael Forney <mforney@mforney.org>
1817
1818 PR 24427
1819 * doc/chew.c (free_words): Correctly free "push_text" strings.
1820
1821 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1822
1823 * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets.
1824
1825 2019-04-08 Alan Modra <amodra@gmail.com>
1826
1827 * configure.ac (elfxx_x86): Define and use.
1828 * configure: Regenerate.
1829
1830 2019-04-06 H.J. Lu <hongjiu.lu@intel.com>
1831
1832 * elf-linker-x86.h: New file.
1833 * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params
1834 to get x86-specific linker options.
1835 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
1836 (elf_x86_64_check_relocs): Likewise.
1837 (elf_x86_64_relocate_section): Likewise.
1838 (elf_x86_64_link_setup_gnu_properties): Likewise.
1839 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise.
1840 (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
1841 (_bfd_elf_linker_x86_set_options): New function.
1842 * elfxx-x86.h: Include "elf-linker-x86.h".
1843 (elf_x86_link_hash_table): Add params.
1844
1845 2019-04-03 Alan Modra <amodra@gmail.com>
1846
1847 * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c,
1848 * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c,
1849 * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c,
1850 * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c,
1851 * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c,
1852 * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes.
1853
1854 2019-04-02 Jim Wilson <jimw@sifive.com>
1855
1856 PR 24389
1857 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
1858 ELF header flags to after check for ELF object file. Loop through
1859 sections looking for code sections, if none, then skip ABI checks.
1860
1861 2019-03-30 Andrew Waterman <andrew@sifive.com>
1862
1863 * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for
1864 rd == X_RA case.
1865
1866 2019-03-29 Max Filippov <jcmvbkbc@gmail.com>
1867
1868 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
1869 info->export_dynamic to the conditional.
1870
1871 2019-03-28 Alan Modra <amodra@gmail.com>
1872
1873 PR 24392
1874 * configure.ac: Invoke AC_CHECK_SIZEOF(int).
1875 * configure: Regenerate.
1876 * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
1877 workaround with SIZEOF_LONG vs. SIZEOF_INT check.
1878 * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
1879 * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
1880 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
1881
1882 2019-03-21 Jim Wilson <jimw@sifive.com>
1883
1884 PR 24365
1885 * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check,
1886 verify sym non-NULL before using. Add identical check using h.
1887
1888 2019-03-21 Sudakshina Das <sudi.das@arm.com>
1889
1890 * elf-bfd.h (struct elf_backend_data): Add argument to
1891 merge_gnu_properties.
1892 * elf-properties.c (elf_merge_gnu_properties): Add argument to
1893 itself and while calling bed->merge_gnu_properties.
1894 (elf_merge_gnu_property_list): Update the calls for
1895 elf_merge_gnu_properties.
1896 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
1897 of --force-bti warning and add argument.
1898 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
1899 warning.
1900 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
1901 * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
1902 declaration.
1903
1904 2019-03-20 Sudakshina Das <sudi.das@arm.com>
1905
1906 * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define.
1907 * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare.
1908 (elf_backend_fixup_gnu_properties): Define for AArch64.
1909
1910 2019-03-18 Alan Modra <amodra@gmail.com>
1911
1912 PR 24355
1913 * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
1914 for local iplt syms with ent->plt.offset == -1. Remove ineffective
1915 attempt at writing glink stubs only once.
1916
1917 2019-03-16 Alan Modra <amodra@gmail.com>
1918
1919 PR 24337
1920 * elf.c (_bfd_elf_rela_local_sym): Revert last change.
1921 (_bfd_elf_rel_local_sym): Likewise.
1922 * elflink.c (elf_link_input_bfd): Use bfd_und_section for
1923 section of symbols with unrecognized shndx.
1924
1925 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1926
1927 PR ld/24267
1928 * coffgen.c (_bfd_coff_section_already_linked): Skip discarded
1929 section.
1930 * cofflink.c (coff_link_add_symbols): Check for symbols defined
1931 in discarded section.
1932
1933 2019-03-15 Alan Modra <amodra@gmail.com>
1934
1935 PR 24339
1936 * elflink.c (elf_link_add_object_symbols): Bail out on a local
1937 symbol after globals if elf_bad_symtab is not set.
1938
1939 2019-03-15 Alan Modra <amodra@gmail.com>
1940
1941 PR 24337
1942 * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec.
1943 (_bfd_elf_rel_local_sym): Likewise.
1944
1945 2019-03-15 Alan Modra <amodra@gmail.com>
1946
1947 PR 24336
1948 * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed
1949 object files with sh_size not a multiple of sh_entsize.
1950
1951 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1952
1953 PR ld/24338
1954 * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt
1955 input with bad relocation.
1956
1957 22019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1958
1959 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
1960
1961 2019-03-14 Nick Clifton <nickc@redhat.com>
1962
1963 PR 24334
1964 * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field.
1965 (save_section_vma): Initialise field to the number of entries in
1966 the sec_vma table.
1967 (section_vma_same): Check that the number of entries in the
1968 sec_vma table matches the number of sections in the bfd.
1969
1970 2019-03-14 Nick Clifton <nickc@redhat.com>
1971
1972 PR 24333
1973 * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL
1974 section owner pointer when adding the default symbol.
1975
1976 2019-03-14 Nick Clifton <nickc@redhat.com>
1977
1978 PR 24332
1979 * elflink.c (elf_link_add_object_symbols): Add new local variable
1980 extversym_end. Initialise it to point to the end of the version
1981 symbol table, if present. Check it when initialising and updating
1982 the ever pointer.
1983
1984 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1985
1986 * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New.
1987 (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New.
1988 (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs.
1989 (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC
1990 and PLT_PAC_PLT.
1991 (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC.
1992 (get_plt_type): Add case for DT_AARCH64_PAC_PLT.
1993 (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC.
1994
1995 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1996 Szabolcs Nagy <szabolcs.nagy@arm.com>
1997
1998 * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New.
1999 (aarch64_bti_pac_info): New.
2000 (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument.
2001 (bfd_elf32_aarch64_set_options): Likewise.
2002 * bfd-in2.h: Regenerate
2003 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New.
2004 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New.
2005 (elfNN_aarch64_small_plt0_bti_entry): New.
2006 (elfNN_aarch64_small_plt_bti_entry): New.
2007 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New.
2008 (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields.
2009 (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and
2010 tlsdesc_plt_entry_size fields.
2011 (elfNN_aarch64_link_hash_table_create): Initialise the new fields.
2012 (setup_plt_values): New helper function.
2013 (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and
2014 bti enable type.
2015 (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of
2016 fixed macros.
2017 (elfNN_aarch64_size_dynamic_sections): Likewise and add checks.
2018 (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers
2019 to plt stubs instead of fixed ones and update filling them according
2020 to the need for bti.
2021 (elfNN_aarch64_init_small_plt0_entry): Likewise.
2022 (elfNN_aarch64_finish_dynamic_sections): Likewise.
2023 (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New.
2024 (elfNN_aarch64_plt_sym_val): Update size accordingly.
2025 (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE
2026 is set.
2027 (bfd_elfNN_get_synthetic_symtab): Define.
2028 (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti
2029 and mising BTI NOTE SECTION.
2030
2031
2032 2019-03-13 Sudakshina Das <sudi.das@arm.com>
2033
2034 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude
2035 linker created inputs from merge.
2036 * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for
2037 GNU_PROPERTY_AARCH64_FEATURE_1_AND properties.
2038 (elfNN_aarch64_link_setup_gnu_properties): New.
2039 (elfNN_aarch64_merge_gnu_properties): New.
2040 (elf_backend_setup_gnu_properties): Define for AArch64.
2041 (elf_backend_merge_gnu_properties): Likewise.
2042 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define.
2043 (_bfd_aarch64_elf_parse_gnu_properties): Define.
2044 (_bfd_aarch64_elf_merge_gnu_properties): Define.
2045 * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare.
2046 (_bfd_aarch64_elf_parse_gnu_properties): Declare.
2047 (_bfd_aarch64_elf_merge_gnu_properties): Declare.
2048 (elf_backend_parse_gnu_properties): Define for AArch64.
2049
2050 2019-03-13 H.J. Lu <hongjiu.lu@intel.com>
2051
2052 PR ld/24322
2053 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly
2054 merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK].
2055
2056 2019-03-12 Alan Modra <amodra@gmail.com>
2057
2058 * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add
2059 nmemb parameter. Use bfd_alloc2.
2060 (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls.
2061 Delete assertion.
2062 (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2.
2063 (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls.
2064 * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation
2065 doesn't overflow.
2066 * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix.
2067 (assign_section_numbers): Style fix.
2068 (swap_out_syms): Use bfd_malloc2.
2069 (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't
2070 overflow.
2071 (_bfd_elf_make_empty_symbol): Style fix.
2072 (elfobj_grok_stapsdt_note_1): Formatting.
2073 * elfcode.h (elf_object_p): Use bfd_alloc2.
2074 (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise.
2075 (elf_slurp_symbol_table): Use bfd_zalloc2.
2076 (elf_slurp_reloc_table): Use bfd_alloc2.
2077 (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2.
2078 * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure
2079 size calculation doesn't overflow.
2080 (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise.
2081 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
2082 * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version.
2083
2084 2019-03-08 Alan Modra <amodra@gmail.com>
2085
2086 PR 24311
2087 * merge.c (merge_strings): Return secinfo. Don't pad section
2088 to alignment here.
2089 (_bfd_merge_sections): Pad section to alignment here, if input
2090 sections contributing to merged output all pad to alignment.
2091 Formatting.
2092
2093 2019-03-06 Nick Clifton <nickc@redhat.com>
2094
2095 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
2096 table pointer.
2097 * coffgen.c (coff_find_nearest_line_with_names): Do not call
2098 _bfd_dwarf2_find_symbol_bias if there is no symbol table available.
2099
2100 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
2101
2102 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
2103 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
2104
2105 PR 20113
2106 * elf32-s390.c (allocate_dynrelocs): Update comment.
2107
2108 2019-02-28 Tamar Christina <tamar.christina@arm.com>
2109
2110 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
2111
2112 2019-02-28 Nick Clifton <nickc@redhat.com>
2113
2114 PR 24273
2115 * elf.c (bfd_elf_string_from_elf_section): Check for a string
2116 section that is not NUL terminated.
2117
2118 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2119
2120 PR ld/24276
2121 * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
2122 by linker when checking copy reloc on protected symbol.
2123
2124 2019-02-24 Alan Modra <amodra@gmail.com>
2125
2126 PR 24144
2127 * pdp11.c (set_section_contents): Revert 2015-02-24 change.
2128
2129 2019-02-20 Eric Tsai <erictsai@cadence.com>
2130
2131 * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
2132 sections between the call site and call destination and adjust
2133 call distance by the largest alignment.
2134
2135 2019-02-20 Alan Hayward <alan.hayward@arm.com>
2136
2137 * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
2138 * elf.c (elfcore_grok_aarch_pauth): New function.
2139 (elfcore_grok_note): Check for NT_ARM_PAC_MASK.
2140 (elfcore_write_aarch_pauth): New function.
2141 (elfcore_write_register_note): Check for AArch64 pauth section.
2142
2143 2019-02-20 Alan Modra <amodra@gmail.com>
2144
2145 PR 24225
2146 * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
2147 return value.
2148
2149 2019-02-20 Michael Roitzsch <reactorcontrol@icloud.com>
2150
2151 * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
2152 Darwin hosts, not just or1k.
2153 * configure: Regenerate.
2154
2155 2019-02-20 Alan Modra <amodra@gmail.com>
2156
2157 PR 24236
2158 * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
2159 sentinel NUL to string buffer nearer to loop where it is used.
2160 Don't go past sentinel when scanning strings, and don't write
2161 NUL again.
2162 * archive.c (do_slurp_coff_armap): Simplify string handling to
2163 archive64.c style.
2164
2165 2019-02-19 Alan Modra <amodra@gmail.com>
2166
2167 PR 24235
2168 * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
2169 attempting to prevent read past end of section.
2170
2171 2019-02-18 Alan Modra <amodra@gmail.com>
2172
2173 PR 24225
2174 * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
2175 PRIx64 to generate warning messages. Print local sym names too.
2176
2177 2019-02-09 Vineet Gupta <vgupta@synopsys.com>
2178
2179 * elf32-arc (INIT_SYM_STRING): Delete.
2180 (FINI_SYM_STRING): Likewise.
2181 (init_str): Likewise.
2182 (fini_str): Likewise.
2183
2184 2019-02-08 Alan Modra <amodra@gmail.com>
2185
2186 * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
2187 for bss-plt" warning to make it an error.
2188
2189 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
2190
2191 PR ld/18841
2192 * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
2193 reloc_class_ifunc for ifunc symbols.
2194 * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
2195
2196 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
2197
2198 * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
2199 <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
2200
2201 2019-02-07 Nick Clifton <nickc@redhat.com>
2202
2203 * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
2204 into the definitely obsolete list.
2205
2206 2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
2207
2208 PR ld/24151
2209 * elf64-x86-64.c (elf_x86_64_need_pic): Check
2210 SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
2211 (elf_x86_64_relocate_section): Move PIC check for PC-relative
2212 relocations to ...
2213 (elf_x86_64_check_relocs): Here.
2214 (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
2215 to check if a symbol is defined in a non-shared object.
2216 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
2217
2218 2019-01-21 Sergio Durigan Junior <sergiodj@redhat.com>
2219
2220 * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
2221 of 'labs' (and fix GCC warning).
2222
2223 2019-01-25 Nick Clifton <nickc@redhat.com>
2224
2225 * po/ru.po: Updated Russian translation.
2226
2227 2019-01-23 Nick Clifton <nickc@redhat.com>
2228
2229 * po/fr.po: Updated French translation.
2230
2231 2019-01-21 Nick Clifton <nickc@redhat.com>
2232
2233 * po/pt.po: Updated Portuguese translation.
2234 * po/uk.po: Updated Ukranian translation.
2235
2236 2019-01-21 Yuri Chornoivan <yurchor@ukr.net>
2237
2238 PR 24108
2239 * elf32-nds32.c (nds32_relocate_section): Add space between words
2240 in error message.
2241 * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
2242 error message.
2243 (riscv_i_or_e_p): Likewise.
2244 (riscv_merge_arch_attr_info): Likewise.
2245
2246 2019-01-19 Nick Clifton <nickc@redhat.com>
2247
2248 * version.m4: Reset to 2.32.51
2249 * configure: Regenerate.
2250 * po/bfd.pot: Regenerate.
2251
2252 2018-06-24 Nick Clifton <nickc@redhat.com>
2253
2254 2.32 branch created.
2255
2256 2019-01-16 Kito Cheng <kito@andestech.com>
2257
2258 * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
2259 for OBJ_ATTR_PROC.
2260
2261 2019-01-16 Kito Cheng <kito@andestech.com>
2262 Nelson Chu <nelson@andestech.com>
2263
2264 * elfnn-riscv.c (in_subsets): New.
2265 (out_subsets): Likewise.
2266 (merged_subsets): Likewise.
2267 (riscv_std_ext_p): Likewise.
2268 (riscv_non_std_ext_p): Likewise.
2269 (riscv_std_sv_ext_p): Likewise.
2270 (riscv_non_std_sv_ext_p): Likewise.
2271 (riscv_version_mismatch): Likewise.
2272 (riscv_i_or_e_p): Likewise.
2273 (riscv_merge_std_ext): Likewise.
2274 (riscv_merge_non_std_and_sv_ext): Likewise.
2275 (riscv_merge_arch_attr_info): Likewise.
2276 (riscv_merge_attributes): Likewise.
2277 (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
2278
2279 * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
2280 (elf_backend_obj_attrs_vendor): Define.
2281 (elf_backend_obj_attrs_section_type): Likewise.
2282 (elf_backend_obj_attrs_section): Likewise.
2283 (elf_backend_obj_attrs_arg_type): Define as
2284 riscv_elf_obj_attrs_arg_type.
2285 * elfxx-riscv.c (riscv_estimate_digit): New.
2286 (riscv_estimate_arch_strlen1): Likewise.
2287 (riscv_estimate_arch_strlen): Likewise.
2288 (riscv_arch_str1): Likewise.
2289 (riscv_arch_str): Likewise.
2290 * elfxx-riscv.h (riscv_arch_str): Declare.
2291
2292 2019-01-14 John Darrington <john@darrington.wattle.id.au>
2293
2294 * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
2295 * libbfd.h: regen.
2296 * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
2297 source field. (md_apply_fix): Apply final fix
2298 to BFD_RELOC_S12Z_OPR.
2299 * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
2300
2301 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
2302
2303 PR 20113
2304 * elf32-s390.c (allocate_dynrelocs): Update comment.
2305
2306 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
2307
2308 * warning.m4: Adjust egrep pattern for non-GNU compilers.
2309 * configure: Regenerate.
2310
2311 2019-01-08 Alan Modra <amodra@gmail.com>
2312
2313 PR 23699
2314 PR 24065
2315 * ihex.c (ihex_write_object_contents): Properly check 32-bit
2316 address range.
2317
2318 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
2319
2320 * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
2321 * bfd/bfd-in2.h: Regenerate.
2322 * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
2323 * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
2324
2325 2019-01-04 Lifang Xia <lifang_xia@c-sky.com>
2326
2327 * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
2328 default target, little endian target is more suitable.
2329
2330 2019-01-04 Alan Modra <amodra@gmail.com>
2331
2332 PR 24061
2333 PR 21786
2334 * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
2335 adjust all callers.
2336 (EQ_VALUE_IN_FIELD): Likewise.
2337 * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
2338
2339 2019-01-01 Alan Modra <amodra@gmail.com>
2340
2341 Update year range in copyright notice of all files.
2342
2343 For older changes see ChangeLog-2018
2344 \f
2345 Copyright (C) 2019 Free Software Foundation, Inc.
2346
2347 Copying and distribution of this file, with or without modification,
2348 are permitted in any medium without royalty provided the copyright
2349 notice and this notice are preserved.
2350
2351 Local Variables:
2352 mode: change-log
2353 left-margin: 8
2354 fill-column: 74
2355 version-control: never
2356 End:
This page took 0.079676 seconds and 4 git commands to generate.