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