1 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
3 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Rename plt_bnd
5 (elf_x86_64_link_hash_table): Rename plt_bnd/plt_bnd_eh_frame
6 to plt_second/plt_second_eh_frame.
7 (elf_x86_64_link_hash_newfunc): Updated.
8 (elf_x86_64_allocate_dynrelocs): Likewise.
9 (elf_x86_64_size_dynamic_sections): Likewise.
10 (elf_x86_64_relocate_section): Likewise.
11 (elf_x86_64_finish_dynamic_symbol): Likewise.
12 (elf_x86_64_finish_dynamic_sections): Likewise.
13 (elf_x86_64_plt_type): Rename plt_bnd to plt_second.
14 (elf_x86_64_get_synthetic_symtab): Updated. Also scan the
16 (elf_backend_setup_gnu_properties): Updated. Create the
17 .plt.sec section instead of the .plt.sec section.
19 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
21 * elf32-i386.c (elf_i386_allocate_dynrelocs): Partially revert
22 commit 25070364b0ce33eed46aa5d78ebebbec6accec7e.
23 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewse.
25 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com>
27 * elf64-sparc.c (elf64_sparc_set_reloc): New function.
28 (bfd_elf64_set_reloc): Define.
29 (elf64_sparc_write_relocs): Use `canon_reloc_count'.
31 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com>
33 * targets.c (BFD_JUMP_TABLE_RELOCS): Add NAME##_set_reloc.
34 (struct bfd_target): New field _bfd_set_reloc.
35 * bfd.c (bfd_set_reloc): Call backend _set_bfd.
36 * reloc.c (_bfd_generic_set_reloc): New function.
37 * coffcode.h (coff_set_reloc): Define to _bfd_generic_set_reloc.
38 * nlm-target.h (nlm_set_reloc): Likewise.
39 * coff-rs6000.c (_bfd_xcoff_set_reloc): Likewise.
40 * aout-tic30.c (MY_set_reloc): Likewise.
41 * aout-target.h (MY_set_reloc): Likewise.
42 * elfxx-target.h (bfd_elfNN_set_reloc): Likewise.
43 * coff-alpha.c (_bfd_ecoff_set_reloc): Likewise.
44 * mach-o-target.c (bfd_mach_o_set_reloc): Likewise.
45 * vms-alpha.c (alpha_vms_set_reloc): Likewise.
46 * aout-adobe.c (aout_32_set_reloc): Likewise.
47 * bout.c (b_out_set_reloc): Likewise.
48 * coff-mips.c (_bfd_ecoff_set_reloc): Likewise.
49 * i386os9k.c (aout_32_set_reloc): Likewise.
50 * ieee.c (ieee_set_reloc): Likewise.
51 * oasys.c (oasys_set_reloc): Likewise.
52 * som.c (som_set_reloc): Likewise.
53 * versados.c (versados_set_reloc): Likewise.
54 * coff64-rs6000.c (rs6000_xcoff64_vec): Add
55 _bfd_generic_set_reloc.
56 (rs6000_xcoff64_aix_vec): LIkewise.
57 * libbfd.c (_bfd_norelocs_set_reloc): New function.
58 * libbfd-in.h: Prototype for _bfd_norelocs_set_reloc.
59 * i386msdos.c (msdos_set_reloc): Define to
60 _bfd_norelocs_set_reloc.
61 * elfcode.h (elf_set_reloc): Define.
62 * bfd-in2.h: Regenerated.
64 2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
67 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Use .plt.bnd
68 for IFUNC function address.
70 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
72 * elf32-arc.c (FEATURE_LIST_NAME): Define.
73 (CONFLICT_LIST): Likewise.
74 (opcode/arc-attrs.h): Include.
75 (arc_elf_print_private_bfd_data): Print OSABI v4 flag.
76 (arc_extract_features): New file.
77 (arc_stralloc): Likewise.
78 (arc_elf_merge_attributes): Likewise.
79 (arc_elf_merge_private_bfd_data): Use object attributes.
80 (bfd_arc_get_mach_from_attributes): New function.
81 (arc_elf_object_p): Use object attributes.
82 (arc_elf_final_write_processing): Likewise.
83 (elf32_arc_obj_attrs_arg_type): New function.
84 (elf32_arc_obj_attrs_handle_unknown): Likewise.
85 (elf32_arc_section_from_shdr): Likewise.
86 (elf_backend_obj_attrs_vendor): Define.
87 (elf_backend_obj_attrs_section): Likewise.
88 (elf_backend_obj_attrs_arg_type): Likewise.
89 (elf_backend_obj_attrs_section_type): Likewise.
90 (elf_backend_obj_attrs_handle_unknown): Likewise.
91 (elf_backend_section_from_shdr): Likewise.
93 2017-05-09 Andrew Goedhart <Andrewgoedhart@simplepowersolutions.co.za>
96 * elf32-arm.c (elf32_arm_final_link_relocate): Set the bottom bit
97 of the value when resolving a R_ARM_THM_ALU_PREL_11_0 relocation
98 and the destination is a Thumb symbol.
100 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
102 * elf32-i386.c (elf_i386_get_synthetic_symtab): Add missing
103 initializer to silence GCC 4.2.
104 * lf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise.
106 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
108 * elf64-x86-64.c (PLT_ENTRY_SIZE): Renamed to ...
109 (LAZY_PLT_ENTRY_SIZE): This.
110 (NON_LAZY_PLT_ENTRY_SIZE): New.
111 (elf_x86_64_plt0_entry): Renamed to ...
112 (elf_x86_64_lazy_plt0_entry): This.
113 (elf_x86_64_plt_entry): Renamed to ...
114 (elf_x86_64_lazy_plt_entry): This.
115 (elf_x86_64_bnd_plt0_entry): Renamed to ...
116 (elf_x86_64_lazy_bnd_plt0_entry): This.
117 (elf_x86_64_legacy_plt_entry): Removed.
118 (elf_x86_64_bnd_plt_entry): Renamed to ...
119 (elf_x86_64_lazy_bnd_plt_entry): This.
120 (elf_x86_64_legacy_plt2_entry): Renamed to ...
121 (elf_x86_64_non_lazy_plt_entry): This.
122 (elf_x86_64_bnd_plt2_entry): Renamed to ...
123 (elf_x86_64_non_lazy_bnd_plt_entry): This.
124 (elf_x86_64_eh_frame_plt): Renamed to ...
125 (elf_x86_64_eh_frame_lazy_plt): This.
126 (elf_x86_64_eh_frame_bnd_plt): Renamed to ...
127 (elf_x86_64_eh_frame_lazy_bnd_plt): This.
128 (elf_x86_64_eh_frame_plt_got): Renamed to ...
129 (elf_x86_64_eh_frame_non_lazy_plt): This.
130 (elf_x86_64_lazy_plt_layout): New.
131 (elf_x86_64_non_lazy_plt_layout): Likewise.
132 (elf_x86_64_plt_layout): Likewise.
133 (elf_x86_64_backend_data): Remove PLT layout information. Add
134 os for target system.
135 (GET_PLT_ENTRY_SIZE): Removed.
136 (elf_x86_64_lazy_plt): New.
137 (elf_x86_64_non_lazy_plt): Likewise.
138 (elf_x86_64_lazy_bnd_plt): Likewise.
139 (elf_x86_64_non_lazy_bnd_plt): Likewise.
140 (elf_x86-64_arch_bed): Updated.
141 (elf_x86_64_link_hash_table): Add plt, lazy_plt and non_lazy_plt.
142 (elf_x86_64_create_dynamic_sections): Removed.
143 (elf_x86_64_check_relocs): Don't check elf.dynobj. Don't call
144 _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section.
145 (elf_x86-64_adjust_dynamic_symbol): Updated.
146 (elf_x86_64_allocate_dynrelocs): Updated. Pass 0 as PLT header
147 size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate
148 size for PLT0 if there is no PLT0. Get plt_entry_size from
149 non_lazy_plt for non-lazy PLT entries.
150 (elf_x86_64_size_dynamic_sections): Updated. Get plt_entry_size
151 from non_lazy_plt for non-lazy PLT entries.
152 (elf_x86-64_relocate_section): Updated. Properly get PLT index
154 (elf_x86_64_finish_dynamic_symbol): Updated. Fill the first slot
155 in the PLT entry with generic PLT layout. Fill the non-lazy PLT
156 entries with non-lazy PLT layout. Don't fill the second and third
157 slots in the PLT entry if there is no PLT0.
158 (elf_x86_64_finish_dynamic_sections): Updated. Don't fill PLT0
159 if there is no PLT0. Set sh_entsize on the .plt.got section.
160 (compare_relocs): New.
161 (elf_x86_64_plt_type): Likewise.
162 (elf_x86_64_plt): Likewise.
163 (elf_x86_64_nacl_plt): New. Forward declaration.
164 (elf_x86_64_get_plt_sym_val): Removed.
165 (elf_x86_64_get_synthetic_symtab): Rewrite to check PLT sections
166 against all dynamic relocations.
167 (elf_x86_64_link_setup_gnu_properties): New function.
168 (elf_backend_create_dynamic_sections): Updated.
169 (elf_backend_setup_gnu_properties): New.
170 (elf_x86_64_nacl_plt): New.
171 (elf_x86_64_nacl_arch_bed): Updated.
173 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
175 * elf32-i386.c (PLT_ENTRY_SIZE): Renamed to ...
176 (LAZY_PLT_ENTRY_SIZE): This.
177 (NON_LAZY_PLT_ENTRY_SIZE): New.
178 (elf_i386_plt0_entry): Renamed to ...
179 (elf_i386_lazy_plt0_entry): This.
180 (elf_i386_plt_entry): Renamed to ...
181 (elf_i386_lazy_plt_entry): This.
182 (elf_i386_pic_plt0_entry): Renamed to ...
183 (elf_i386_pic_lazy_plt0_entry): This.
184 (elf_i386_pic_plt_entry): Renamed to ...
185 (elf_i386_pic_lazy_plt_entry): This.
186 (elf_i386_got_plt_entry): Renamed to ...
187 (elf_i386_non_lazy_plt_entry): This.
188 (elf_i386_pic_got_plt_entry): Renamed to ...
189 (elf_i386_pic_non_lazy_plt_entry): This.
190 (elf_i386_eh_frame_plt): Renamed to ...
191 (elf_i386_eh_frame_lazy_plt): This.
192 (elf_i386_eh_frame_plt_got): Renamed to ...
193 (elf_i386_eh_frame_non_lazy_plt): This.
194 (elf_i386_plt_layout): Renamed to ...
195 (elf_i386_lazy_plt_layout): This. Remove eh_frame_plt_got and
196 eh_frame_plt_got_size.
197 (elf_i386_non_lazy_plt_layout): New.
198 (elf_i386_plt_layout): Likewise.
199 (elf_i386_non_lazy_plt): Likewise.
200 (GET_PLT_ENTRY_SIZE): Removed.
201 (elf_i386_plt): Renamed to ...
202 (elf_i386_lazy_plt): This.
203 (elf_i386_backend_data): Remove plt. Rename is_vxworks to os.
204 (elf_i386_arch_bed): Updated.
205 (elf_i386_link_hash_table): Add plt, lazy_plt and non_lazy_plt.
206 (elf_i386_create_dynamic_sections): Removed.
207 (elf_i386_check_relocs): Don't check elf.dynobj. Don't call
208 _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section.
209 (elf_i386_adjust_dynamic_symbol): Updated.
210 (elf_i386_allocate_dynrelocs): Updated. Pass 0 as PLT header
211 size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate
212 size for PLT0 if there is no PLT0.
213 (elf_i386_size_dynamic_sections): Updated. Check whether GOT
214 output section is discarded only if GOT isn't empty.
215 (elf_i386_relocate_section): Updated. Properly get PLT index
217 (elf_i386_finish_dynamic_symbol): Updated. Don't fill the
218 second and third slots in the PLT entry if there is no PLT0.
219 (elf_i386_finish_dynamic_sections): Updated. Don't fill PLT0
220 if there is no PLT0. Set sh_entsize on the .plt.got section.
221 (elf_i386_nacl_plt): Forward declaration.
222 (elf_i386_get_plt_sym_val): Removed.
223 (elf_i386_get_synthetic_symtab): Rewrite to check PLT sections
224 against all dynamic relocations.
225 (elf_i386_link_setup_gnu_properties): New function.
226 (elf_backend_create_dynamic_sections): Updated.
227 (elf_backend_setup_gnu_properties): New.
228 (elf_i386_nacl_plt): Updated.
229 (elf_i386_nacl_arch_bed): Likewise.
230 (elf_i386_vxworks_arch_bed): Likewise.
232 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
234 * elflink.c (elf_output_implib): Remove executable flag from import
236 * elf32-arm.c (elf32_arm_filter_implib_symbols): Assert that the import
237 library is a relocatable object file.
239 2017-05-01 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
242 * elf32-avr.c (avr_should_move_sym): New function.
243 (avr_should_reduce_sym_size): Likewise.
244 (avr_should_increase_sym_size): Likewise.
245 (elf32_avr_relax_delete_bytes): Adjust symbol values
246 and sizes by calling new functions.
248 2017-05-01 Palmer Dabbelt <palmer@dabbelt.com>
250 * config.bfd (riscv32-*): Enable rv64.
252 2017-05-02 Alan Modra <amodra@gmail.com>
255 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Test h->non_elf
256 rather than h->root.type == bfd_link_hash_new.
257 (bfd_elf_record_link_assignment): Similarly, call
258 bfd_elf_link_mark_dynamic_symbol when h->non_elf.
260 2017-04-29 Alan Modra <amodra@gmail.com>
263 * reloc.c (reloc_offset_in_range): New function.
264 (bfd_perform_relocation, bfd_install_relocation): Use it.
265 (_bfd_final_link_relocate): Likewise.
267 2017-04-28 H.J. Lu <hongjiu.lu@intel.com>
269 * elf32-i386.c (elf_i386_allocate_dynrelocs): Check plt_got
270 before using .plt.got.
271 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
273 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
275 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Use "="
276 instead of "+=" to update 0.
278 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
280 * elf32-i386.c (elf_i386_create_dynamic_sections): Create the
281 .plt.got section here.
282 (elf_i386_check_relocs): Don't create the .plt.got section.
283 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Create
284 the .plt.got and .plt.bnd sections here.
285 (elf_x86_64_check_relocs): Don't create the .plt.got nor
288 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
290 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Remove
292 (elf_x86_64_link_hash_newfunc): Don't clear has_bnd_reloc.
293 (elf_x86_64_copy_indirect_symbol): Don't copy has_bnd_reloc.
294 (elf_x86_64_check_relocs): Don't set has_bnd_reloc.
295 (elf_x86_64_finish_dynamic_symbol): Check bndplt instead of
298 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
300 * elf-bfd.h (elf_backend_data): Change setup_gnu_properties
302 (_bfd_elf_link_setup_gnu_properties): Return bfd *.
303 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Return
304 the first relocatable ELF input with GNU properties.
306 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
308 * elf32-i386.c (elf_i386_finish_dynamic_sections): Simplify
311 2017-04-27 Alan Modra <amodra@gmail.com>
313 * elf-bfd.h (struct elf_backend_data): Make asection param of
314 elf_backend_eh_frame_address_size const.
315 (_bfd_elf_eh_frame_address_size): Likewise.
316 * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): Likewise.
317 * elf32-msp430.c (elf32_msp430_eh_frame_address_size): Likewise.
318 * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): Likewise.
319 * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Likewise.
320 * elf-eh-frame.c (_bfd_elf_eh_frame_address_size): Likewise.
321 (next_cie_fde_offset): Constify params.
322 (offset_adjust, adjust_eh_frame_local_symbols): Likewise.
324 2017-04-27 Alan Modra <amodra@gmail.com>
326 * elf-bfd.h (struct eh_cie_fde): Add aug_str_len and aug_data_len.
327 (_bfd_elf_adjust_eh_frame_global_symbol): Declare.
328 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Set aug_str_len and
330 (offset_adjust): New function.
331 (_bfd_elf_adjust_eh_frame_global_symbol): Likewise.
332 (adjust_eh_frame_local_symbols): Likewise.
333 (_bfd_elf_discard_section_eh_frame): Call adjust_eh_frame_local_symbols
334 after changing anything. Return true if anything changed.
335 * elflink.c (bfd_elf_discard_info): If .eh_frame changed, call
336 _bfd_elf_adjust_eh_frame_global_symbol for globals.
338 2017-04-27 Alan Modra <amodra@gmail.com>
340 * elflink.c (_bfd_elf_link_hash_hide_symbol): Clear dynstr_index
343 2017-04-27 Alan Modra <amodra@gmail.com>
345 * elf32-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define.
346 (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Use it.
347 (ppc_elf_adjust_dynamic_symbol, allocate_dynrelocs): Likewise.
348 (ppc_elf_relocate_section): Likewise. Delete silly optimisation
349 for undef and undefweak dyn_relocs.
350 * elf64-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define.
351 (ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup): Use it.
352 (allocate_got, allocate_dynrelocs): Likewise.
353 (ppc64_elf_relocate_section): Likewise.
355 2017-04-26 H.J. Lu <hongjiu.lu@intel.com>
357 * elf32-i386.c (elf_i386_size_dynamic_sections): Alwasys add
358 DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rel.plt section.
359 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Alwasys
360 add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rela.plt section.
362 2017-04-26 Nick Clifton <nickc@redhat.com>
365 * reloc.c (bfd_perform_relocation): Check for a negative address
368 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
371 * elf-bfd.h (elf_backend_data): Add `always_renumber_dynsyms'
373 * elfxx-target.h [!elf_backend_always_renumber_dynsyms]
374 (elf_backend_always_renumber_dynsyms): Define.
375 (elfNN_bed): Initialize `always_renumber_dynsyms' member.
376 * elfxx-mips.h (elf_backend_always_renumber_dynsyms): Define.
377 * elflink.c (bfd_elf_size_dynamic_sections): Also call
378 `_bfd_elf_link_renumber_dynsyms' if the backend has requested
380 (bfd_elf_size_dynsym_hash_dynstr): Likewise.
382 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
384 * elflink.c (bfd_elf_size_dynamic_sections): Only call
385 `_bfd_elf_link_renumber_dynsyms' after section GC if dynamic
386 sections have been created.
388 2017-04-26 Nick Clifton <nickc@redhat.com>
391 * compress.c (bfd_init_section_compress_status): Check the return
392 value from bfd_malloc.
394 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
396 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add
397 no_finish_dynamic_symbol.
398 (elf_x86_64_link_hash_newfunc): Set no_finish_dynamic_symbol to
400 (elf_x86_64_allocate_dynrelocs): If a symbol isn't undefined
401 weak symbol, don't make it dynamic.
402 (elf_x86_64_relocate_section): If a symbol isn't dynamic in PIC,
403 set no_finish_dynamic_symbol and generate R_X86_64_RELATIVE
404 relocation for GOT reference.
405 (elf_x86_64_finish_dynamic_symbol): Abort if
406 no_finish_dynamic_symbol isn't 0.
408 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
411 * elf32-i386.c (elf_i386_allocate_dynrelocs): If a symbol isn't
412 undefined weak symbol, don't make it dynamic.
413 (elf_i386_relocate_section): If a symbol isn't dynamic in PIC,
414 set no_finish_dynamic_symbol and generate R_386_RELATIVE
415 relocation for R_386_GOT32.
417 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
420 * elf32-i386.c (ELF_MAXPAGESIZE): Set to 0x1000 for VxWorks.
422 2017-04-23 Alan Modra <amodra@gmail.com>
425 * section.c (GLOBAL_SYM_INIT): Make available in bfd.h.
426 * elf.c (lcomm_sym): New.
427 (_bfd_elf_large_com_section): Use lcomm_sym section symbol.
428 * bfd-in2.h: Regenerate.
430 2017-04-23 Alan Modra <amodra@gmail.com>
433 * elf-bfd.h (struct elf_backend_data <get_reloc_section>): Change
434 parameters and comment.
435 (_bfd_elf_get_reloc_section): Delete.
436 (_bfd_elf_plt_get_reloc_section): Declare.
437 * elf.c (_bfd_elf_plt_get_reloc_section, elf_get_reloc_section):
438 New functions. Don't blindly skip over assumed .rel/.rela prefix.
440 (_bfd_elf_get_reloc_section): ..here. Delete.
441 (assign_section_numbers): Call elf_get_reloc_section.
442 * elf64-ppc.c (elf_backend_get_reloc_section): Define.
443 * elfxx-target.h (elf_backend_get_reloc_section): Update.
445 2017-04-23 Alan Modra <amodra@gmail.com>
448 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Don't segfault when
451 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
454 * elf32-i386.c (elf_i386_link_hash_entry): Add
455 no_finish_dynamic_symbol.
456 (elf_i386_link_hash_newfunc): Set no_finish_dynamic_symbol to 0.
457 (elf_i386_allocate_dynrelocs): If a symbol isn't undefined weak
458 symbol, don't make it dynamic in PIE.
459 (elf_i386_relocate_section): If a symbol isn't dynamic in PIE,
460 set no_finish_dynamic_symbol and generate R_386_RELATIVE
461 relocation for R_386_GOT32
462 (elf_i386_finish_dynamic_symbol): Abort if no_finish_dynamic_symbol
465 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
469 * elflink.c (elf_link_add_object_symbols): Require
470 --no-dynamic-linker with -E/--dynamic-list when creating
473 2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
475 * elflink.c (_bfd_elf_symbol_refs_local_p): Always return TRUE
478 2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
480 * elfxx-mips.c (_bfd_mips_elf_final_link): Reorder comment about
481 dynamic symbol sorting.
483 2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
486 * elflink.c (elf_link_add_object_symbols): Preserve
487 dynamic_ref_after_ir_def when restoring the symbol table for
488 unneeded dynamic object.
490 2017-04-19 H.J. Lu <hongjiu.lu@intel.com>
493 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't abort
494 on on undefined IFUNC symbol in the second PLT.
496 2017-04-19 Wedson Almeida Filho <wedsonaf@gmail.com>
498 * peXXigen.c (pe_print_reloc): Correct chunk_end.
500 2017-04-19 Alan Modra <amodra@gmail.com>
502 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Hide undefweak
503 or make dynamic for info->dynamic_undefined_weak 0 and 1.
504 * elf32-ppc.c:Formatting.
505 (ensure_undefweak_dynamic): Don't make dynamic when
506 info->dynamic_undefined_weak is zero.
507 (allocate_dynrelocs): Discard undefweak dyn_relocs for
508 info->dynamic_undefined_weak. Discard undef dyn_relocs when
509 not default visibility. Discard undef and undefweak
511 (ppc_elf_relocate_section): Adjust to suit.
512 * elf64-ppc.c: Formatting.
513 (ensure_undefweak_dynamic): Don't make dynamic when
514 info->dynamic_undefined_weak is zero.
515 (allocate_dynrelocs): Discard undefweak dyn_relocs for
516 info->dynamic_undefined_weak. Discard them earlier.
518 2017-04-17 H.J. Lu <hongjiu.lu@intel.com>
521 * elflink.c (bfd_elf_size_dynamic_sections): Get soname index
522 before generating the version definition section.
524 2017-04-17 Alan Modra <amodra@gmail.com>
526 * elflink.c (_bfd_elf_merge_symbol): Undo dynamic linking
527 state when a regular object file defines a symbol with
528 incompatible type to that defined by an earlier shared lib.
530 2017-04-13 Alan Modra <amodra@gmail.com>
532 * coffcode.h: Wrap some overly long _bfd_error_handler args.
534 * elf32-arm.c: Likewise.
535 * elf32-i386.c: Likewise.
536 * elf32-mep.c: Likewise.
537 * elf64-ia64-vms.c: Likewise.
538 * elf64-x86-64.c: Likewise.
539 * elflink.c: Likewise.
540 * elfnn-ia64.c: Likewise.
541 * elfxx-mips.c: Likewise.
543 2017-04-13 Alan Modra <amodra@gmail.com>
545 * aoutx.h: Use %B and %A in error messages throughout file.
546 * aout-cris.c: Likewise.
547 * archive.c: Likewise.
548 * binary.c: Likewise.
549 * coff-rs6000.c: Likewise.
550 * coff-tic4x.c: Likewise.
551 * coffcode.h: Likewise.
552 * coffgen.c: Likewise.
553 * cofflink.c: Likewise.
554 * coffswap.h: Likewise.
555 * cpu-arm.c: Likewise.
556 * elf-eh-frame.c: Likewise.
557 * elf-m10300.c: Likewise.
559 * elf32-arc.c: Likewise.
560 * elf32-arm.c: Likewise.
561 * elf32-bfin.c: Likewise.
562 * elf32-frv.c: Likewise.
563 * elf32-iq2000.c: Likewise.
564 * elf32-m32c.c: Likewise.
565 * elf32-microblaze.c: Likewise.
566 * elf32-nds32.c: Likewise.
567 * elf32-rl78.c: Likewise.
568 * elf32-rx.c: Likewise.
569 * elf32-score.c: Likewise.
570 * elf32-score7.c: Likewise.
571 * elf32-sh64.c: Likewise.
572 * elf32-v850.c: Likewise.
573 * elf32-vax.c: Likewise.
574 * elf32-visium.c: Likewise.
575 * elf64-ia64-vms.c: Likewise.
576 * elf64-mmix.c: Likewise.
577 * elf64-sh64.c: Likewise.
578 * elfcode.h: Likewise.
579 * elfnn-aarch64.c: Likewise.
580 * elfnn-ia64.c: Likewise.
581 * elfxx-mips.c: Likewise.
582 * hpux-core.c: Likewise.
585 * linker.c: Likewise.
590 * peXXigen.c: Likewise.
591 * rs6000-core.c: Likewise.
592 * vms-alpha.c: Likewise.
593 * xcofflink.c: Likewise.
595 2017-04-13 Alan Modra <amodra@gmail.com>
597 * bfd.c (PRINT_TYPE): Define.
598 (_doprnt): New function.
599 (error_handler_internal): Use _doprnt.
600 * coff-arm.c: Put %A and %B arguments to _bfd_error_handler
601 calls in their natural order, throughout file.
602 * coff-mcore.c: Likewise.
603 * coff-ppc.c: Likewise.
604 * coff-tic80.c: Likewise.
605 * cofflink.c: Likewise.
606 * elf-s390-common.c: Likewise.
608 * elf32-arm.c: Likewise.
609 * elf32-i386.c: Likewise.
610 * elf32-m32r.c: Likewise.
611 * elf32-msp430.c: Likewise.
612 * elf32-spu.c: Likewise.
613 * elf64-ia64-vms.c: Likewise.
614 * elf64-sparc.c: Likewise.
615 * elf64-x86-64.c: Likewise.
616 * elflink.c: Likewise.
617 * elfnn-aarch64.c: Likewise.
618 * elfnn-ia64.c: Likewise.
619 * elfxx-mips.c: Likewise.
621 2017-04-13 Alan Modra <amodra@gmail.com>
623 * elf32-arm.c (arm_type_of_stub): Supply missing args to "long
624 branch veneers" error. Fix double space and format message.
625 * elf32-avr.c (avr_add_stub): Do not pass NULL as %B arg.
626 * elf64-ppc.c (tocsave_find): Supply missing %B arg.
628 2017-04-13 Alan Modra <amodra@gmail.com>
630 * bfd-in2.h: Regenerate.
632 2017-04-11 H.J. Lu <hongjiu.lu@intel.com>
634 * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the
635 extra `\n' in warning/error messages.
636 * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise.
637 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
639 2017-04-11 H.J. Lu <hongjiu.lu@intel.com>
641 * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore
642 processor-specific properties with generic ELF target vector.
644 2017-04-10 Qing Zhao <qing.zhao@oracle.com>
646 * elf32-sparc.c (elf_backend_fixup_symbol): New.
647 * elf64-sparc.c (elf_backend_fixup_symbol): New.
648 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
649 (_bfd_sparc_elf_link_hash_entry): Add has_got_reloc and
651 (link_hash_newfunc): Initialize has_got_reloc and
653 (_bfd_sparc_elf_size_dynamic_sections): Set interp to .interp
655 (_bfd_sparc_elf_copy_indirect_symbol): Copy has_got_reloc and
657 (_bfd_sparc_elf_check_relocs): Set has_got_reloc and
659 (_bfd_sparc_elf_fixup_symbol): New function.
660 (allocate_dynrelocs): Don't allocate space for dynamic
661 relocations and discard relocations against resolved undefined
662 weak symbols in executable. Don't make resolved undefined weak
663 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
664 relocation against undefined weak symbols in PIE.
665 (_bfd_sparc_elf_relocate_section): Don't generate dynamic
666 relocations against resolved undefined weak symbols in PIE
667 (_bfd_sparc_elf_finish_dynamic_symbol): Keep PLT/GOT entries
668 without ynamic PLT/GOT relocations for resolved undefined weak
670 Don't generate dynamic relocation against resolved undefined
671 weak symbol in executable.
672 (pie_finish_undefweak_symbol): New function.
673 (_bfd_sparc_elf_finish_dynamic_sections): Call
674 pie_finish_undefweak_symbol on all symbols in PIE.
675 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add interp.
676 (_bfd_sparc_elf_fixup_symbol): New function.
678 2017-04-10 Nick Clifton <nickc@redhat.com>
680 * config.bfd: Remove ns32k from obsolete list.
682 2017-04-10 Alan Modra <amodra@gmail.com>
685 * elf.c (special_sections_f): Match .fini_array and .fini_array.*.
686 (special_sections_i): Likewise for .init_array.
687 (special_sections_p): Likewise for .preinit_array.
689 2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
693 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check
694 ELF_COMMON_DEF_P for common symbols.
695 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
696 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
697 * elflink.c (_bfd_elf_merge_symbol): Revert commits
698 202ac193bbbecc96a4978d1ac3d17148253f9b01 and
699 07492f668d2173da7a2bda3707ff0985e0f460b6.
701 2017-04-07 Pedro Alves <palves@redhat.com>
703 * opncls.c (bfd_get_debug_link_info): Rename to...
704 (bfd_get_debug_link_info_1): ... this. Change type of second
705 parameter to void pointer. Adjust.
706 (bfd_get_debug_link_info): Reimplement on top of
707 bfd_get_debug_link_info_1.
708 (separate_debug_file_exists, separate_alt_debug_file_exists):
709 Change type of second parameter to void pointer. Adjust.
710 (get_func_type, check_func_type): Change type of second parameter
712 (find_separate_debug_file): Add 'func_data' parameter. Pass it to
713 the callback functions instead of passing the address of a local.
714 (bfd_follow_gnu_debuglink): Pass address of unsigned long local to
715 find_separate_debug_file.
716 (get_alt_debug_link_info_shim): Change type of second parameter to
717 void pointer. Adjust.
718 (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to
719 find_separate_debug_file.
720 (get_build_id_name, bfd_boolean check_build_id_file): Change type
721 of second parameter to void pointer. Adjust.
722 (bfd_follow_build_id_debuglink): Pass address of bfd_build_id
723 pointer local to find_separate_debug_file.
725 2017-04-07 Tristan Gingold <gingold@gingold-Precision-7510>
727 * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak
728 external symbols with a definition.
729 (_bfd_coff_gc_mark_extra_sections): Fix typo.
731 2017-04-07 Alan Modra <amodra@gmail.com>
733 * po/SRC-POTFILES.in: Regenerate.
735 2017-04-05 Alan Modra <amodra@gmail.com>
737 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT
740 2017-04-02 Jon Turney <jon.turney@dronecode.org.uk>
742 (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than
743 numbers for DataDirectory entry indicies passed to
746 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
748 * elf.c (get_program_header_size): Add a GNU_MBIND segment for
749 each GNU_MBIND section and align GNU_MBIND section to page size.
750 (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND
751 segment for each GNU_MBIND section.
752 (_bfd_elf_init_private_section_data): Copy sh_info from input
753 for GNU_MBIND section.
755 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
757 * elfnn-riscv.c (GP_NAME): Delete.
758 (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL.
759 (_bfd_riscv_relax_lui): Likewise.
761 2017-04-04 Nick Clifton <nickc@redhat.com>
764 * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer
766 (bfd_elf_final_link): Only initialize the extended symbol index
767 section if there are extended symbol tables to list.
769 2017-04-03 H.J. Lu <hongjiu.lu@intel.com>
771 * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo.
772 (BFD32_BACKENDS_CFILES): Add elf-properties.c.
773 * configure.ac (elf): Add elf-properties.lo.
774 * Makefile.in: Regenerated.
775 * configure: Likewise.
776 * elf-bfd.h (elf_property_kind): New.
777 (elf_property): Likewise.
778 (elf_property_list): Likewise.
779 (elf_properties): Likewise.
780 (_bfd_elf_parse_gnu_properties): Likewise.
781 (_bfd_elf_get_property): Likewise.
782 (_bfd_elf_link_setup_gnu_properties): Likewise.
783 (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties
784 and setup_gnu_properties.
785 (elf_obj_tdata): Add properties.
786 * elf-properties.c: New file.
787 * elf32-i386.c (elf_i386_parse_gnu_properties): New.
788 (elf_i386_merge_gnu_properties): Likewise.
789 (elf_backend_parse_gnu_properties): Likewise.
790 (elf_backend_merge_gnu_properties): Likewise.
791 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
792 (elf_x86_64_merge_gnu_properties): Likewise.
793 (elf_backend_parse_gnu_properties): Likewise.
794 (elf_backend_merge_gnu_properties): Likewise.
795 * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise.
796 (elf_backend_parse_gnu_properties): Likewise.
797 (elf_backend_setup_gnu_properties): Likewise.
798 (elfNN_bed): Add elf_backend_parse_gnu_properties,
799 elf_backend_merge_gnu_properties and
800 elf_backend_setup_gnu_properties.
802 2017-03-30 Pip Cet <pipcet@gmail.com>
804 * elf32-wasm32.c: Add relocation code, two relocs.
805 * reloc.c: Add wasm32 relocations.
806 * libbfd.h: Regenerate.
807 * bfd-in2.h: Regenerate.
808 * bfd/po/bfd.pot: Regenerate.
810 2017-03-29 Nick Clifton <nickc@redhat.com>
813 * coff-bfd.h (struct coff_section_data): Add new fields:
815 * coffgen.c (coff_find_nearest_line_with_names): Cache the bias
816 computed for PE binaries.
817 * dwarf2.c (scan_unit_for_symbols): Only warn once about each
820 2017-03-28 Hans-Peter Nilsson <hp@axis.com>
823 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT
824 to handle a local symbol with a hash-symbol-entry; without PLT.
825 Add BFD_ASSERT for an incidental case with GOT entry present.
826 (cris_elf_check_relocs): Increment PLT refcount only if the symbol
827 isn't forced-or-set local.
829 2017-03-27 Pip Cet <pipcet@gmail.com>
831 * wasm-module.c: New file to support WebAssembly modules.
832 * wasm-module.h: New file to support WebAssembly modules.
833 * doc/webassembly.texi: Start documenting wasm-module.c.
834 * config.bfd: Add wasm_vec.
835 * targets.c: Likewise.
836 * configure.ac: Likewise.
837 * Makefile.am: Add entries for wasm-module.c.
838 * Makefile.in: Regenerate.
839 * configure: Regenerate.
840 * po/SRC-POTFILES.in: Regenerate.
842 2017-03-27 Pip Cet <pipcet@gmail.com>
844 * cpu-wasm32.c: New file to support wasm32 architecture.
845 * elf32-wasm32.c: New file to support wasm32 architecture.
846 * Makefile.am: Add wasm32 architecture.
847 * archures.c: Likewise.
848 * config.bfd: Likewise.
849 * configure.ac: Likewise.
850 * targets.c: Likewise.
851 * Makefile.in: Regenerate.
852 * bfd-in2.h: Regenerate.
853 * configure: Regenerate.
854 * po/SRC-POTFILES.in: Regenerate.
856 2017-03-20 Alan Modra <amodra@gmail.com>
859 * elf64-ppc.c (compare_symbols): Stabilize sort.
861 2017-03-18 Alan Modra <amodra@gmail.com>
863 * elf64-ppc.c (struct ppc_link_hash_table): Add
864 local_ifunc_resolver and maybe_local_ifunc_resolver.
865 (ppc_build_one_stub): Set flags on emitting dynamic
867 (ppc64_elf_relocate_section): Likewise.
868 (ppc64_elf_finish_dynamic_symbol): Likewise.
869 (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with
870 local dynamic relocs to ifuncs.
871 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add
872 local_ifunc_resolver and maybe_local_ifunc_resolver.
873 (ppc_elf_relocate_section): Set flag on emitting dynamic
874 relocation to ifuncs.
875 (ppc_elf_finish_dynamic_symbol): Likewise.
876 (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local
877 dynamic relocs to ifuncs.
879 2017-03-13 Nick Clifton <nickc@redhat.com>
882 * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to
883 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12.
884 (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to
885 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12.
886 * bfd-in2.h: Regenerate.
887 * libbfd.h: Regenerate.
888 * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc
890 (IS_AARCH64_TLSDESC_RELOC): Likewise.
891 (elfNN_aarch64_howto_table): Likewise.
892 (aarch64_tls_transition_without_check): Likewise.
893 (aarch64_reloc_got_type): Likewise.
894 (elfNN_aarch64_final_link_relocate): Likewise.
895 (elfNN_aarch64_tls_relax): Likewise.
896 (elfNN_aarch64_relocate_section): Likewise.
897 (elfNN_aarch64_gc_sweep_hook): Likewise.
898 (elfNN_aarch64_check_relocs): Likewise.
899 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
900 (_bfd_aarch64_elf_resolve_relocation): Likewise.
902 2017-03-11 Alan Modra <amodra@gmail.com>
904 * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function
905 parameter is in fact used. Whitespace fixes.
906 * elf64-ppc.c: Likewise.
908 2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk>
910 * rs6000-core.c (CORE_NEW): Simplify macro when
911 AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning.
913 2017-03-07 Alan Modra <amodra@gmail.com>
917 * elf64-ppc.c (ppc64_elf_relocate_section): Add missing
920 2017-03-05 Alan Modra <amodra@gmail.com>
922 * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8.
923 * elf-eh-frame.c (size_of_output_cie_fde): Don't align here.
924 (next_cie_fde_offset): New function.
925 (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8.
926 (_bfd_elf_discard_section_eh_frame): Align zero terminator to
927 four bytes. Align CIEs to four or eight bytes depending on
928 per_encoding_aligned8. Align FDEs according to their encoding.
929 Pad last FDE to output section alignment.
930 (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove
932 * elf64-ppc.c (glink_eh_frame_cie): Delete padding.
933 (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c.
934 (ppc64_elf_finish_dynamic_sections): Adjust to suit.
936 2017-03-02 Martin Bickel <binutils@ineranves.de>
939 * elf.c (rewrite_elf_program_header): Do not issue a warning for
940 empty segments which have a zero filesz, but a non-zero memsz.
942 2017-03-02 Alan Modra <amodra@gmail.com>
944 * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo.
946 2017-02-28 Alan Modra <amodra@gmail.com>
948 * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change.
949 (ppc64_elf_relocate_section): Likewise.
951 2017-02-28 Alan Modra <amodra@gmail.com>
954 * elf32-nios2.c (nios2_elf32_relocate_section): Use htab
955 rather than elf32_nios2_hash_table or elf_hash_table.
956 (create_got_section): Likewise.
957 (nios2_elf32_finish_dynamic_symbol): Likewise.
958 (nios2_elf32_adjust_dynamic_symbol): Likewise.
959 (nios2_elf32_size_dynamic_sections): Likewise.
960 (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot
961 vars. Use htab equivalents directly instead. Don't create
962 all dynamic sections on needing just the GOT. Use a goto
963 rather than a fall-through with reloc test. Ensure
964 htab->dynobj is set when making dynamic sreloc section.
965 (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab
966 equivalent directly instead. Don't segfault on looking for
967 .dynamic when dynamic sections have not been created. Don't
968 segfault on .got.plt being discarded.
969 (nios2_elf32_size_dynamic_sections): Delete plt and got vars.
970 Don't set "relocs" on .rela.plt. Do handle .sbss. Delete
971 fixme and another not so relevant comment.
972 (nios2_elf_add_symbol_hook): Delete dynobj var. If not
973 already set, set hash table dynobj on creating .sbss.
975 2017-02-28 Alan Modra <amodra@gmail.com>
977 * reloc.c (BFD_RELOC_PPC_16DX_HA): New.
978 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto.
979 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc.
980 (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA.
981 (ppc64_elf_relocate_section): Likewise.
982 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto.
983 (ppc_elf_reloc_type_lookup): Translate new bfd reloc.
984 (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc.
985 * libbfd.h: Regenerate.
986 * bfd-in2.h: Regenerate.
988 2017-02-28 Alan Modra <amodra@gmail.com>
990 * elflink.c (_bfd_elf_create_dynamic_sections): Don't make
991 dynamic .data.rel.ro read-only.
992 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section
993 rather than section flags when deciding where copy reloc goes.
994 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
995 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
996 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
997 * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise.
998 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise.
999 * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise.
1000 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise.
1001 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise.
1002 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
1003 * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise.
1004 * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise.
1005 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise.
1006 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
1007 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
1008 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise.
1009 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise.
1010 * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
1011 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
1012 * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise.
1014 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
1016 * elfxx-mips.c (mips_elf_perform_relocation): Also handle the
1017 `jalr $0, $25' instruction encoding.
1019 2017-02-27 Nick Clifton <nickc@redhat.com>
1022 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid
1023 generating a seg-fault when encountering a symbol that has been
1024 deleted by garbage collection.
1026 2017-02-25 Alan Modra <amodra@gmail.com>
1028 * elf32-arc.c (struct dynamic_sections): Delete.
1029 (enum dyn_section_types): Delete.
1030 (dyn_section_names): Delete.
1031 (arc_create_dynamic_sections): Delete.
1032 (elf_arc_finish_dynamic_sections): Don't call the above. Don't
1033 segfault on discarded .rela.plt section.
1034 (elf_arc_size_dynamic_sections): Formatting. Don't call
1035 arc_create_dynamic_sections. Don't allocate memory for sections
1036 handled by the generic linker. Correct code finding relocs in
1037 read-only sections. Set SEC_EXCLUDE on zero size .got,
1038 .got.plt, and .dynbss sections. Do set .interp for pies.
1040 2017-02-24 Andrew Waterman <andrew@sifive.com>
1042 * elfnn-riscv.c (GP_NAME): New macro.
1043 (riscv_global_pointer_value): Use it.
1044 (_bfd_riscv_relax_lui): If symbol and global pointer are in same
1045 output section, consider only that section's alignment.
1047 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
1049 * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype.
1050 * elfxx-mips.c (_bfd_mips_relax_section): Remove function.
1051 * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro.
1052 * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise.
1054 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
1056 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR>
1057 <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p'
1060 2017-02-23 Alan Modra <amodra@gmail.com>
1063 * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE
1065 (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs.
1066 (ppc_elf_relocate_section): Correct calculation for VLE SDAREL
1069 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
1072 * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version
1073 processing ahead of the call to `elf_gc_sweep_symbol'.
1075 2017-02-22 Nick Clifton <nickc@redhat.com>
1078 * opncls.c (bfd_create_gnu_debuglink_section): Give the newly
1079 created section 4-byte alignment.
1081 2017-02-22 Alan Modra <amodra@gmail.com>
1083 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault
1084 on .got or .plt output section being discarded by script.
1085 * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move
1088 2017-02-21 Alan Modra <amodra@gmail.com>
1090 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit
1091 DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero.
1093 2017-02-20 Alan Modra <amodra@gmail.com>
1096 * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero
1097 if DT_RELSZ/DT_RELASZ is zero.
1099 2017-02-17 Nick Clifton <nickc@redhat.com>
1101 * compress.c (bfd_get_full_section_contents): Remember to reduce
1102 compressed size by the sizeof the compression header when
1103 decompressing the contents.
1105 2017-02-17 Pedro Alves <palves@redhat.com>
1107 * srec.c (Chunk): Rename to ...
1108 (_bfd_srec_len): ... this.
1109 (S3Forced): Rename to ...
1110 (_bfd_srec_forceS3): ... this.
1111 * objcopy.c: Adjust all references.
1113 2017-02-17 Pedro Alves <palves@redhat.com>
1115 * archive.c (bsd_write_armap): Rename to ...
1116 (_bfd_bsd_write_armap): ... this.
1117 (coff_write_armap): Rename to ...
1118 (_bfd_coff_write_armap): ... this.
1119 * libbfd-in.h (bsd_write_armap): Rename to ...
1120 (_bfd_bsd_write_armap): ... this.
1121 (coff_write_armap): Rename to ...
1122 (_bfd_coff_write_armap): ... this.
1123 * aout-target.h, aout-tic30.c: Adjust all users.
1124 * libbfd.h: Regenerate.
1126 2017-02-17 Pedro Alves <palves@redhat.com>
1128 * bfd-in.h (bfd_read, bfd_write): Adjust to rename.
1129 (warn_deprecated): Rename to ...
1130 (_bfd_warn_deprecated): ... this.
1131 * libbfd.c (warn_deprecated): Rename to ...
1132 (_bfd_warn_deprecated): ... this.
1133 * bfd-in2.h: Regenerate.
1135 2017-02-17 Pedro Alves <palves@redhat.com>
1137 * bfdio.c (real_ftell): Rename to ...
1138 (_bfd_real_ftell): ... this.
1139 (real_fseek): Rename to ...
1140 (_bfd_real_fseek): ... this.
1141 (real_fopen): Rename to ...
1142 (_bfd_real_fopen): ... this.
1143 * libbfd-in.h (real_ftell): Rename to ...
1144 (_bfd_real_ftell): ... this.
1145 (real_fseek): Rename to ...
1146 (_bfd_real_fseek): ... this.
1147 (real_fopen): Rename to ...
1148 (_bfd_real_fopen): ... this.
1149 * cache.c, dwarf2.c, opncls.c: Adjust all callers.
1150 * libbfd.h: Regenerate.
1152 2017-02-17 Pedro Alves <palves@redhat.com>
1154 * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers.
1155 * libbfd.c (read_unsigned_leb128): Rename to ...
1156 (_bfd_read_unsigned_leb128): ... this.
1157 (read_signed_leb128): Rename to ...
1158 (_bfd_read_signed_leb128): ... this.
1159 (safe_read_leb128): Rename to ...
1160 (_bfd_safe_read_leb128): ... this.
1161 * libbfd-in.h (read_unsigned_leb128): Rename to ...
1162 (_bfd_read_unsigned_leb128): ... this.
1163 (read_signed_leb128): Rename to ...
1164 (_bfd_read_signed_leb128): ... this.
1165 (safe_read_leb128): Rename to ...
1166 (_bfd_safe_read_leb128): ... this.
1167 * libbfd.h: Renegerate.
1169 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
1171 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup
1172 before trying to fine matching file and line information.
1174 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
1176 * dwarf2.c (struct dwarf2_debug): Add orig_bfd member.
1177 (_bfd_dwarf2_slurp_debug_info): If stashed debug information does
1178 not match current bfd, then reload debug information. Record bfd
1179 we're loading debug info for in the stash. If we have debug
1180 informatin in the cache then perform section placement before
1183 2017-02-16 Alan Modra <amodra@gmail.com>
1186 * elf-bfd.h (struct elf_backend_data): Add no_page_alias.
1187 * elfxx-target.h (elf_backend_no_page_alias): Define.
1188 (elfNN_bed): Init new field.
1189 * elf.c (assign_file_positions_for_load_sections): If no_page_alias
1190 ensure PT_LOAD segment starts on a new page.
1191 * elf32-hppa.c (elf_backend_no_page_alias): Define.
1193 2017-02-16 Alan Modra <amodra@gmail.com>
1196 * elf32-hppa.c (allocate_plt_static): Allocate space for relocs
1199 2017-02-16 Jiong Wang <jiong.wang@arm.com>
1201 * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED.
1202 * bfd-in2.h: Regenerated.
1204 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
1207 * elf32-i386.c (elf_i386_relocate_section): Allow
1208 "lea foo@GOT, %reg" in PIC.
1210 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
1213 * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC
1214 symbol name when reporting R_386_GOT32/R_386_GOT32X relocation
1215 error against local IFUNC symbol without a base register for
1218 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
1220 * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than
1221 `%P: %H:' with `info->callbacks->einfo'.
1222 (ppc_elf_relocate_section): Likewise.
1223 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1224 (ppc64_elf_edit_toc): Likewise.
1225 (ppc64_elf_relocate_section): Likewise.
1227 2017-02-14 Alan Modra <amodra@gmail.com>
1229 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support
1230 --gc-keep-exported, and test versioned field of sym rather than
1231 looking for @ in name.
1233 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
1235 * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to
1238 2017-02-13 Nick Clifton <nickc@redhat.com>
1241 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid
1244 2017-02-07 Andrew Waterman <andrew@sifive.com>
1246 * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT
1247 entry size if PLT header is written.
1249 2017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com>
1251 Fix sparc64 dynamic relocation processing to use the dynamic
1253 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic'
1254 to determine if bfd_get_symcount() or bfd_get_dynamic_symcount()
1257 2017-02-03 Nick Clifton <nickc@redhat.com>
1260 * coffcode.h (coff_write_object_contents): Enlarge size of
1261 s_name_buf in order to avoid compile time warning about possible
1263 * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower
1264 32-bits of insn value before printing into buffer.
1266 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1268 * elfxx-mips.c (mips_elf_hash_sort_data): Add
1269 `max_local_dynindx'.
1270 (mips_elf_sort_hash_table): Handle it.
1271 (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local
1272 symbols bump up `max_local_dynindx' rather than
1273 `max_non_got_dynindx'.
1275 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1277 * elfxx-mips.c (mips_elf_hash_sort_data): Convert the
1278 `min_got_dynindx', `max_unref_got_dynindx' and
1279 `max_non_got_dynindx' members to the `bfd_size_type' data type.
1280 (mips_elf_sort_hash_table): Adjust accordingly.
1282 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1284 * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout
1285 to access the hash table.
1287 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1289 * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on
1290 non-NULL `htab' to the beginning.
1292 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1294 * elflink.c (elf_gc_sweep): Wrap overlong line.
1296 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
1298 * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to...
1299 (_bfd_mips_elf_linker_flags): ... this. Add another parameter.
1300 * elfxx-mips.c (mips_elf_link_hash_table): Add
1301 `ignore_branch_isa' member.
1302 (mips_elf_perform_relocation): Do not treat an ISA mode mismatch
1303 in branch relocation calculation as an error if
1304 `ignore_branch_isa' has been set.
1305 (_bfd_mips_elf_insn32): Rename to...
1306 (_bfd_mips_elf_linker_flags): ... this. Rename the `on'
1307 parameter to `insn32' and add an `ignore_branch_isa' parameter.
1308 Handle the new parameter.
1310 2017-01-27 Hans-Peter Nilsson <hp@axis.com>
1312 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused
1313 local variable dynobj.
1316 * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro.
1317 (elf_cris_adjust_dynamic_symbol): Place variables copied into the
1318 executable from read-only sections into sdynrelro.
1319 (elf_cris_finish_dynamic_symbol): Select sreldynrelro for
1320 dynamic relocs in sdynrelro.
1321 (elf_backend_want_dynrelro): Define.
1323 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1325 * config.bfd (*-*-rtemsaout*): Mark as removed.
1327 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1329 * config.bfd (powerpcle-*-rtems*): Do not mark as removed.
1330 (arm-*-rtems*): Move to (arm*-*-eabi*).
1331 (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*).
1332 (m68-*-rtems*): Move to (m68*-*-elf*).
1334 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1336 * config.bfd (*-*-rtemscoff*): Mark as removed.
1338 2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
1341 * elflink.c (bfd_elf_record_link_assignment): Revert last
1342 change and don't ever clear `forced_local'. Set `mark'
1344 (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within
1346 (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'...
1347 (bfd_elf_size_dynamic_sections): ... here.
1348 * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local'
1349 and set `mark' instead in `__tls_get_addr_opt' processing.
1350 * elf64-ppc.c (ppc64_elf_tls_setup): Likewise.
1352 2017-01-24 Alan Modra <amodra@gmail.com>
1354 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases
1355 where dynamic relocs are preferable. Allow ifunc too.
1356 (ensure_undefweak_dynamic): New function.
1357 (allocate_dynrelocs): Use it here. Move plt handling last and
1358 don't make symbols dynamic, simplifying loop. Only make undef
1359 weak symbols with GOT entries dynamic. Correct condition
1360 for GOT relocs. Handle dynamic relocs on ifuncs. Correct
1361 comments. Remove goto.
1362 (ppc_elf_relocate_section): Correct test for using dynamic
1363 symbol on GOT relocs. Rearrange test for emitting GOT relocs
1364 to suit. Set up explicit tls_index entries and implicit GOT
1365 tls_index entries resolvable at link time for
1366 __tls_get_addr_opt. Simplify test to clear mem for prelink.
1367 * elf64-ppc.c (allocate_got): Correct condition for GOT relocs.
1368 (ensure_undefweak_dynamic): New function.
1369 (allocate_dynrelocs): Use it here. Only make undef weak symbols
1370 with GOT entries dynamic. Remove unnecessary test of
1371 WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling.
1372 (ppc64_elf_relocate_section): Correct test for using dynamic
1373 symbol on GOT relocs. Rearrange test for emitting GOT relocs
1374 to suit. Set up explicit tls_index entries and implicit GOT
1375 tls_index entries resolvable at link time for __tls_get_addr_opt.
1376 Simplify expression to clear mem for prelink.
1378 2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
1380 * elfnn-aarch64.c: Fix relaxations for ILP32 mode.
1382 2017-01-20 Jiong Wang <jiong.wang@arm.com>
1384 * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function.
1385 (elf_backend_hash_symbol): Define.
1387 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
1390 * elflink.c (bfd_elf_record_link_assignment): Clear any
1391 `forced_local' marking for DSO symbols that are not being
1394 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1396 * elfnn-riscv.c (riscv_elf_object_p): New function.
1398 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
1401 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
1403 (elf_x86_64_check_relocs): Create .eh_frame section for the
1405 (elf_x86_64_size_dynamic_sections): Allocate and initialize
1406 .eh_frame section for the .plt.bnd section.
1407 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
1408 for the .plt.bnd section.
1410 2017-01-12 Nick Clifton <nickc@redhat.com>
1413 * opncls.c (find_separate_debug_file): Add include_dirs
1414 parameter. Only include the directory part of the bfd's filename
1415 in search paths if include_dirs is true. Add a couple of extra
1416 locations for looking for debug files.
1417 ( bfd_follow_gnu_debuglink): Update invocation of
1418 find_separate_debug_file.
1419 (bfd_follow_gnu_debugaltlink): Likewise.
1420 (get_build_id): New function: Finds the build-id of the given bfd.
1421 (get_build_id_name): New function: Computes the name of the
1422 separate debug info file for a bfd, based upon its build-id.
1423 (check_build_id_file): New function: Checks to see if a separate
1424 debug info file exists at the given location, and that its
1425 build-id matches that of the original bfd.
1426 (bfd_follow_build_id_debuglink): New function: Finds a separate
1427 debug info file for a given bfd by using the build-id method.
1428 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id
1429 method of locating a separate debug info file before using the
1431 * bfd-in2.h: Regenerate.
1433 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
1436 * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New.
1437 (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and
1438 elf_x86_64_eh_frame_plt_got.
1439 (elf_x86_64_size_dynamic_sections): Get unwind info from
1440 elf_x86_64_bnd_arch_bed for the BND PLT.
1442 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
1444 * config.bfd: Add entries for i686-redox and x86_64-redox.
1446 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1448 * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section
1450 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align
1451 .eh_frame section to 4 bytes for x32.
1452 (elf_x86_64_check_relocs): Likewise.
1454 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1457 * elf32-i386.c (elf_i386_eh_frame_plt_got): New.
1458 (PLT_GOT_FDE_LENGTH): Likewise.
1459 (elf_i386_plt_layout): Add eh_frame_plt_got and
1460 eh_frame_plt_got_size.
1461 (elf_i386_plt): Updated.
1462 (elf_i386_link_hash_table): Add plt_got_eh_frame.
1463 (elf_i386_check_relocs): Create .eh_frame section for .plt.got.
1464 (elf_i386_size_dynamic_sections): Allocate and initialize
1465 .eh_frame section for .plt.got.
1466 (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for
1468 (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and
1469 eh_frame_plt_got_size.
1470 * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New.
1471 (PLT_GOT_FDE_LENGTH): Likewise.
1472 (elf_x86_64_backend_data): Add eh_frame_plt_got and
1473 eh_frame_plt_got_size.
1474 (elf_x86_64_arch_bed): Updated.
1475 (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and
1476 eh_frame_plt_got_size.
1477 (elf_x86_64_nacl_arch_bed): Likewise.
1478 (elf_x86_64_link_hash_table): Add plt_got_eh_frame.
1479 (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got.
1480 (elf_x86_64_size_dynamic_sections): Allocate and initialize
1481 .eh_frame section for .plt.got.
1482 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
1485 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1487 * elf32-i386.c (elf_i386_size_dynamic_sections): Set
1488 plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt.
1490 2017-01-09 Nick Clifton <nickc@redhat.com>
1492 * dwarf2.c (lookup_address_in_function_table): Return early if
1493 there are no functions in the given comp unit, or if the high
1494 address of the last function in the comp unit is less than the
1497 2017-01-09 Nick Clifton <nickc@redhat.com>
1500 * coffgen.c (_bfd_coff_get_external_symbols): Generate an error
1501 message if there are too many symbols to load.
1503 2017-01-04 James Clarke <jrtc27@jrtc27.com>
1505 * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free
1506 if relocs are cached.
1508 2017-01-03 Rich Felker <bugdal@aerifal.cx>
1511 * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry
1512 for R_MICROBLAZE_GOTOFF_64.
1514 2017-01-03 Nick Clifton <nickc@redhat.com>
1516 * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time
1517 warning about using a possibly uninitialised variable.
1519 2017-01-02 Alan Modra <amodra@gmail.com>
1521 * elf32-hppa.c (ensure_undef_weak_dynamic): New function.
1522 (allocate_plt_static, allocate_dynrelocs): Use it.
1524 2017-01-02 Alan Modra <amodra@gmail.com>
1526 * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
1527 .PARISC.unwind section.
1529 2017-01-02 Alan Modra <amodra@gmail.com>
1532 * elfxx-sparc.c (gdop_relative_offset_ok): New function.
1533 (_bfd_sparc_elf_relocate_section): Use it to validate GOT
1534 indirect to GOT pointer relative code edit.
1536 2017-01-02 Alan Modra <amodra@gmail.com>
1538 Update year range in copyright notice of all files.
1540 For older changes see ChangeLog-2016
1542 Copyright (C) 2017 Free Software Foundation, Inc.
1544 Copying and distribution of this file, with or without modification,
1545 are permitted in any medium without royalty provided the copyright
1546 notice and this notice are preserved.
1552 version-control: never