1 2018-02-19 Alan Modra <amodra@gmail.com>
4 * elf.c (IS_TBSS): Define.
5 (_bfd_elf_map_sections_to_segments): Use IS_TBSS.
6 (assign_file_positions_for_non_load_sections): Revert last change.
7 Properly calculate load segment limits to compare against relro limits.
9 2018-02-17 Alan Modra <amodra@gmail.com>
12 * elf.c (assign_file_positions_for_non_load_sections): Ignore
13 degenerate zero size PT_LOAD segments when finding one overlapping
14 the PT_GNU_RELRO segment.
16 2018-02-16 Alan Modra <amodra@gmail.com>
18 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false.
19 (_bfd_bool_bfd_true): Rename from bfd_true.
20 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr.
21 (_bfd_int_bfd_0): Rename from bfd_0.
22 (_bfd_uint_bfd_0): Rename from bfd_0u.
23 (_bfd_long_bfd_0): Rename from bfd_0l.
24 (_bfd_long_bfd_n1_error): Rename from _bfd_n1.
25 (_bfd_void_bfd): Rename from bfd_void.
26 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false),
27 (_bfd_bool_bfd_link_false_error),
28 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true),
29 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true),
30 (_bfd_bool_bfd_asection_bfd_asection_true),
31 (_bfd_bool_bfd_asymbol_bfd_asymbol_true),
32 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions.
33 * archive.c (_bfd_noarchive_get_elt_at_index),
34 (_bfd_noarchive_openr_next_archived_file),
35 (_bfd_noarchive_construct_extended_name_table),
36 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname),
37 (_bfd_noarchive_write_armap): New functions.
38 * archures.c (_bfd_nowrite_set_arch_mach): New function.
39 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in),
40 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in),
41 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out),
42 (alpha_ecoff_swap_coff_lineno_out),
43 (alpha_ecoff_swap_coff_reloc_out): New functions.
44 * coff-mips.c (mips_ecoff_swap_coff_aux_in),
45 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in),
46 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out),
47 (mips_ecoff_swap_coff_lineno_out),
48 (mips_ecoff_swap_coff_reloc_out): New functions.
49 * coffcode.h (coff_set_alignment_hook): Replace define with
51 (symname_in_debug_hook): Likewise.
52 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function.
53 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0.
54 * elf.c (assign_file_positions_except_relocs): Test
55 elf_backend_allow_non_load_phdr for NULL.
56 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from
57 _bfd_elf_link_omit_section_dynsym. Update uses.
58 (_bfd_elf_omit_section_dynsym_all): New function.
59 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete.
60 (_bfd_elf_omit_section_dynsym_default): Declare.
61 (_bfd_elf_omit_section_dynsym_all): Declare.
62 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section),
63 (_bfd_nolink_bfd_get_relocated_section_contents),
64 (_bfd_nolink_bfd_lookup_section_flags),
65 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group),
66 (_bfd_nolink_bfd_link_hash_table_create),
67 (_bfd_nolink_bfd_link_just_syms),
68 (_bfd_nolink_bfd_copy_link_hash_symbol_type),
69 (_bfd_nolink_bfd_link_split_section),
70 (_bfd_nolink_section_already_linked),
71 (_bfd_nolink_bfd_define_common_symbol),
72 (_bfd_nolink_bfd_define_start_stop): New functions.
73 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup),
74 (_bfd_norelocs_bfd_reloc_name_lookup),
75 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions.
76 * section.c (_bfd_nowrite_set_section_contents): New function.
77 * syms.c (_bfd_nosymbols_canonicalize_symtab),
78 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info),
79 (_bfd_nosymbols_get_symbol_version_string),
80 (_bfd_nosymbols_bfd_is_local_label_name),
81 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line),
82 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info),
83 (_bfd_nosymbols_bfd_make_debug_symbol),
84 ( _bfd_nosymbols_read_minisymbols),
85 ( _bfd_nosymbols_minisymbol_to_symbol),
86 (_bfd_nodynamic_get_synthetic_symtab): New functions.
87 * libbfd-in.h: Declare new functions. Update existing defines,
89 * aix386-core.c: Update to use new hooks. Formatting.
90 * aout-adobe.c: Likewise.
91 * aout-arm.c: Likewise.
92 * aout-target.h: Likewise.
93 * aout-tic30.c: Likewise.
97 * cisco-core.c: Likewise.
98 * coff-alpha.c: Likewise.
99 * coff-i386.c: Likewise.
100 * coff-i860.c: Likewise.
101 * coff-i960.c: Likewise.
102 * coff-ia64.c: Likewise.
103 * coff-mips.c: Likewise.
104 * coff-ppc.c: Likewise.
105 * coff-rs6000.c: Likewise.
106 * coff-sh.c: Likewise.
107 * coff-tic30.c: Likewise.
108 * coff-tic54x.c: Likewise.
109 * coff-x86_64.c: Likewise.
110 * coff64-rs6000.c: Likewise.
111 * coffcode.h: Likewise.
112 * elf-m10300.c: Likewise.
113 * elf32-cr16.c: Likewise.
114 * elf32-lm32.c: Likewise.
115 * elf32-m32r.c: Likewise.
116 * elf32-metag.c: Likewise.
117 * elf32-score.c: Likewise.
118 * elf32-score7.c: Likewise.
119 * elf32-tilepro.c: Likewise.
120 * elf32-xstormy16.c: Likewise.
121 * elf32-xtensa.c: Likewise.
122 * elf64-alpha.c: Likewise.
123 * elf64-hppa.c: Likewise.
124 * elf64-ia64-vms.c: Likewise.
125 * elf64-mmix.c: Likewise.
126 * elf64-sh64.c: Likewise.
127 * elfnn-ia64.c: Likewise.
128 * elfxx-sparc.c: Likewise.
129 * elfxx-target.h: Likewise.
130 * elfxx-tilegx.c: Likewise.
131 * elfxx-x86.h: Likewise.
132 * hp300hpux.c: Likewise.
133 * hppabsd-core.c: Likewise.
134 * hpux-core.c: Likewise.
135 * i386msdos.c: Likewise.
136 * i386os9k.c: Likewise.
139 * irix-core.c: Likewise.
140 * libaout.h: Likewise.
141 * libecoff.h: Likewise.
142 * mach-o-target.c: Likewise.
143 * mach-o.c: Likewise.
144 * mipsbsd.c: Likewise.
146 * netbsd-core.c: Likewise.
147 * nlm-target.h: Likewise.
149 * osf-core.c: Likewise.
151 * pe-mips.c: Likewise.
152 * pe-x86_64.c: Likewise.
154 * plugin.c: Likewise.
155 * ppcboot.c: Likewise.
156 * ptrace-core.c: Likewise.
157 * sco5-core.c: Likewise.
159 * sparclynx.c: Likewise.
161 * tekhex.c: Likewise.
162 * trad-core.c: Likewise.
163 * verilog.c: Likewise.
164 * versados.c: Likewise.
165 * vms-alpha.c: Likewise.
166 * vms-lib.c: Likewise.
167 * wasm-module.c: Likewise.
169 * libbfd.h: Regenerate.
171 2018-02-15 Jim Wilson <jimw@sifive.com>
173 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
174 symbols whose section address is zero.
176 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous
177 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for
178 bfd_reloc_dangerous. Use einfo instead of warning callback for errors.
179 Add %X%P to error messages.
181 2018-02-15 Eric Botcazou <ebotcazou@adacore.com>
184 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
185 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
186 and assert that the result of the call is not NULL.
188 2018-02-14 Nick Clifton <nickc@redhat.com>
191 Revert previous delta. Add extra casts to avoid compile time
193 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra
194 cast to avoid warning from gcc v8 compiler.
195 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
196 (_bfd_generic_bfd_set_private_flags): Likewise.
197 (_bfd_generic_bfd_copy_private_section_data): Likewise.
198 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
199 (_bfd_generic_bfd_copy_private_header_data): Likewise.
200 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
201 (_bfd_noarchive_construct_extended_name_table): Likewise.
202 (_bfd_noarchive_truncate_arname): Likewise.
203 (_bfd_noarchive_write_ar_hdr): Likewise.
204 (_bfd_noarchive_get_elt_at_index): Likewise.
205 (_bfd_nosymbols_canonicalize_symtab): Likewise.
206 (_bfd_nosymbols_print_symbol): Likewise.
207 (_bfd_nosymbols_get_symbol_info): Likewise.
208 (_bfd_nosymbols_get_symbol_version_string): Likewise.
209 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
210 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
211 (_bfd_nosymbols_get_lineno): Likewise.
212 (_bfd_nosymbols_find_nearest_line): Likewise.
213 (_bfd_nosymbols_find_line): Likewise.
214 (_bfd_nosymbols_find_inliner_info): Likewise.
215 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
216 (_bfd_nosymbols_read_minisymbols): Likewise.
217 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
218 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
219 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
220 (_bfd_nowrite_set_arch_mach): Likewise.
221 (_bfd_nowrite_set_section_contents): Likewise.
222 (_bfd_nolink_sizeof_headers): Likewise.
223 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
224 (_bfd_nolink_bfd_relax_section): Likewise.
225 (_bfd_nolink_bfd_gc_sections): Likewise.
226 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
227 (_bfd_nolink_bfd_merge_sections): Likewise.
228 (_bfd_nolink_bfd_is_group_section): Likewise.
229 (_bfd_nolink_bfd_discard_group): Likewise.
230 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
231 (_bfd_nolink_bfd_link_add_symbols): Likewise.
232 (_bfd_nolink_bfd_link_just_syms): Likewise.
233 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
234 (_bfd_nolink_bfd_final_link): Likewise.
235 (_bfd_nolink_bfd_link_split_section): Likewise.
236 (_bfd_nolink_section_already_linked): Likewise.
237 (_bfd_nolink_bfd_define_common_symbol): Likewise.
238 (_bfd_nolink_bfd_define_start_stop): Likewise.
239 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
240 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
241 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
242 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
243 * libbfd.c (bfd_false_any): Delete.
244 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete.
245 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete.
246 * libbfd.h (extern): Regenerate
247 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra
248 cast to avoid warning from gcc v8 compiler.
249 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
250 * binary.c (binary_get_symbol_info): Likewise.
251 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
252 * coff-mips.c (mips_ecoff_backend_data): Likewise.
253 * coffcode.h (coff_set_alignment_hook): Likewise.
254 (symname_in_debug_hook): Likewise.
255 (bfd_coff_backend_data bigobj_swap_table): Likewise.
256 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
257 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
258 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
259 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
260 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
261 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
262 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
263 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
264 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
265 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
266 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
267 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
268 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
269 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
270 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
271 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
272 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
273 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
274 (bfd_elfNN_bfd_set_private_flags): Likewise.
275 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
276 (elf_backend_init_index_section): Likewise.
277 (elf_backend_allow_non_load_phdr): Likewise.
278 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
279 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
280 * ieee.c (ieee_construct_extended_name_table): Likewise.
281 (ieee_write_armap): Likewise.
282 (ieee_write_ar_hdr): Likewise.
283 (ieee_bfd_is_target_special_symbol): Likewise.
284 * ihex.c (ihex_canonicalize_symtab): Likewise.
285 (ihex_bfd_is_target_special_symbol): Likewise.
286 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
287 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
288 (_bfd_ecoff_set_alignment_hook): Likewise.
289 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
290 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
291 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
292 * oasys.c (oasys_construct_extended_name_table): Likewise.
293 (oasys_write_armap): Likewise.
294 (oasys_write_ar_hdr): Likewise.
295 (oasys_bfd_is_target_special_symbol): Likewise.
296 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
297 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
298 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
299 * som.c (som_bfd_is_target_special_symbol): Likewise.
300 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
301 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
302 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
303 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
304 (versados_bfd_reloc_name_lookup): Likewise.
305 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
306 (vms_bfd_define_start_stop): Likewise.
307 (alpha_vms_bfd_is_target_special_symbol): Likewise.
308 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
309 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
311 2018-02-14 H.J. Lu <hongjiu.lu@intel.com>
314 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non
315 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
316 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for
317 R_X86_64_PC32 reloc against dynamic function in data section.
318 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
319 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc
320 against dynamic function in data section.
321 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as
322 function address only if pcrel_plt is true.
323 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt.
324 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for
325 PC-relative PLT. If PLT is PC-relative, don't generate dynamic
326 PC-relative relocation against a function definition in data
327 secton in PIE. Remove the obsolete comments.
328 (elf_x86_link_hash_table): Add pcrel_plt.
330 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
332 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
333 instead of bfd_link_pic, for building shared library.
335 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
338 * elf64-x86-64.c (is_32bit_relative_branch): Removed.
339 (elf_x86_64_relocate_section): Check PIC relocations in PIE.
340 Remove is_32bit_relative_branch usage. Disallow PC32 reloc
341 against protected function in shared object.
343 2018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
346 * po/ru.po: Fix typo in Russian translation.
348 2018-02-13 Maciej W. Rozycki <macro@mips.com>
350 * wasm-module.c (wasm_scan_name_function_section): Rename
351 `index' local variable to `idx'.
353 2018-02-13 Nick Clifton <nickc@redhat.com>
356 Fix compile time warnings generated by gcc version 8.
357 * libbfd-in.h: Remove extraneous text from prototypes.
358 Add prototypes for bfd_false_any, bfd_true_any,
359 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any,
360 bfd_n1_any, bfd_void_any.
361 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy
363 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
364 (_bfd_generic_bfd_set_private_flags): Likewise.
365 (_bfd_generic_bfd_copy_private_section_data): Likewise.
366 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
367 (_bfd_generic_bfd_copy_private_header_data): Likewise.
368 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
369 (_bfd_noarchive_construct_extended_name_table): Likewise.
370 (_bfd_noarchive_truncate_arname): Likewise.
371 (_bfd_noarchive_write_ar_hdr): Likewise.
372 (_bfd_noarchive_get_elt_at_index): Likewise.
373 (_bfd_nosymbols_canonicalize_symtab): Likewise.
374 (_bfd_nosymbols_print_symbol): Likewise.
375 (_bfd_nosymbols_get_symbol_info): Likewise.
376 (_bfd_nosymbols_get_symbol_version_string): Likewise.
377 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
378 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
379 (_bfd_nosymbols_get_lineno): Likewise.
380 (_bfd_nosymbols_find_nearest_line): Likewise.
381 (_bfd_nosymbols_find_line): Likewise.
382 (_bfd_nosymbols_find_inliner_info): Likewise.
383 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
384 (_bfd_nosymbols_read_minisymbols): Likewise.
385 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
386 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
387 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
388 (_bfd_nowrite_set_arch_mach): Likewise.
389 (_bfd_nowrite_set_section_contents): Likewise.
390 (_bfd_nolink_sizeof_headers): Likewise.
391 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
392 (_bfd_nolink_bfd_relax_section): Likewise.
393 (_bfd_nolink_bfd_gc_sections): Likewise.
394 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
395 (_bfd_nolink_bfd_merge_sections): Likewise.
396 (_bfd_nolink_bfd_is_group_section): Likewise.
397 (_bfd_nolink_bfd_discard_group): Likewise.
398 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
399 (_bfd_nolink_bfd_link_add_symbols): Likewise.
400 (_bfd_nolink_bfd_link_just_syms): Likewise.
401 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
402 (_bfd_nolink_bfd_final_link): Likewise.
403 (_bfd_nolink_bfd_link_split_section): Likewise.
404 (_bfd_nolink_section_already_linked): Likewise.
405 (_bfd_nolink_bfd_define_common_symbol): Likewise.
406 (_bfd_nolink_bfd_define_start_stop): Likewise.
407 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
408 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
409 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
410 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
411 * libbfd.c (bfd_false_any): New function. Like bfd_false but
412 accepts one or more arguments.
413 (bfd_true_any): Likewise.
414 (bfd_nullvoidptr_any): Likewise.
415 (bfd_0_any): Likewise.
416 (bfd_0u_any): Likewise.
417 (bfd_0l_any): Likewise.
418 (_bfd_n1_any): Likewise.
419 (bfd_void_any): Likewise.
420 * libbfd.h (extern): Regenerate
421 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg
422 based dummy function.
423 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
424 * binary.c (binary_get_symbol_info): Likewise.
425 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
426 * coff-mips.c (mips_ecoff_backend_data): Likewise.
427 * coffcode.h (coff_set_alignment_hook): Likewise.
428 (symname_in_debug_hook): Likewise.
429 (bfd_coff_backend_data bigobj_swap_table): Likewise.
430 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
431 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
432 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
433 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
434 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
435 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
436 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
437 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
438 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
439 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
440 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
441 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
442 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
443 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
444 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
445 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
446 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
447 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
448 (bfd_elfNN_bfd_set_private_flags): Likewise.
449 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
450 (elf_backend_init_index_section): Likewise.
451 (elf_backend_allow_non_load_phdr): Likewise.
452 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
453 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
454 * ieee.c (ieee_construct_extended_name_table): Likewise.
455 (ieee_write_armap): Likewise.
456 (ieee_write_ar_hdr): Likewise.
457 (ieee_bfd_is_target_special_symbol): Likewise.
458 * ihex.c (ihex_canonicalize_symtab): Likewise.
459 (ihex_bfd_is_target_special_symbol): Likewise.
460 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
461 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
462 (_bfd_ecoff_set_alignment_hook): Likewise.
463 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
464 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
465 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
466 * oasys.c (oasys_construct_extended_name_table): Likewise.
467 (oasys_write_armap): Likewise.
468 (oasys_write_ar_hdr): Likewise.
469 (oasys_bfd_is_target_special_symbol): Likewise.
470 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
471 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
472 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
473 * som.c (som_bfd_is_target_special_symbol): Likewise.
474 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
475 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
476 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
477 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
478 (versados_bfd_reloc_name_lookup): Likewise.
479 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
480 (vms_bfd_define_start_stop): Likewise.
481 (alpha_vms_bfd_is_target_special_symbol): Likewise.
482 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
483 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
484 * elf32-arc.c (get_replace_function): Assign replacement function
486 * elf32-i370.c (i370_noop): Update prototype.
488 2018-02-13 Alan Modra <amodra@gmail.com>
491 * elf.c (_bfd_elf_fixup_group_sections): Account for removed
492 relocation sections. If size reduces to just the flag word,
493 remove that too and mark with SEC_EXCLUDE.
494 * elflink.c (bfd_elf_final_link): Strip empty group sections.
496 2018-02-13 Alan Modra <amodra@gmail.com>
499 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
502 2018-02-12 Zebediah Figura <z.figura12@gmail.com>
504 * i386msdos.c (msdos_mkobject); New function.
505 (msdos_object_p): New function.
506 (i386_msdos_vec): Use msdos_object_p as the check_format
508 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
509 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
511 * peXXigen.c: Likewise.
512 * coff-ia64.c: Likewise.
514 2018-02-12 Nick Clifton <nickc@redhat.com>
516 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
518 * elf32-arc.c (elf_arc_relocate_section): Likewise.
520 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
522 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
523 (sparc_elf_append_rela): Assert that there is enough room in section.
524 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
525 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
526 (allocate_dynrelocs): Remove outdated comments and reorder conditions.
527 For a symbol subject to a GOT relocation, reserve a slot in the
528 relocation section if the symbol isn't dynamic and we are in PIC mode.
529 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
530 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
531 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
532 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion.
533 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
534 resolved_to_zero. Do not generate a dynamic GOT relocation for an
535 undefined weak symbol with non-default visibility. Remove superfluous
536 'else' and fix formatting.
538 2018-02-09 H.J. Lu <hongjiu.lu@intel.com>
540 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
542 (i386_elf32_sol2_vec): Don't declare.
543 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
544 Don't set need_global_offset_table.
545 (elf_i386_solaris_arch_bed): New.
546 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
548 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
549 target_os != is_nacl instead of target_os == is_normal.
550 (x86_64_elf64_sol2_vec): Don't declare.
551 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
552 is_nacl instead of target_os == is_normal. Don't set
553 need_global_offset_table.
554 (elf_x86_64_solaris_arch_bed): New.
555 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
557 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
558 _GLOBAL_OFFSET_TABLE_ for Solaris.
559 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
560 need_global_offset_table.
561 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
562 (elf_x86_link_hash_table): Remove need_global_offset_table.
563 (elf_x86_init_table): Likewise.
565 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
567 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
569 (i386_elf32_sol2_vec): Declared.
570 (elf_i386_link_setup_gnu_properties): Set
571 need_global_offset_table with info->output_bfd->xvec.
572 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
574 (x86_64_elf64_sol2_vec): Declared.
575 (elf_x86_64_link_setup_gnu_properties): Set
576 need_global_offset_table with info->output_bfd->xvec.
578 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
580 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
582 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
584 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
586 (elf_x86_64_link_setup_gnu_properties): Set
587 need_global_offset_table for Solaris.
588 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
589 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
590 (_bfd_x86_elf_link_setup_gnu_properties): Copy
591 need_global_offset_table.
592 * elfxx-x86.h (elf_x86_link_hash_table): Add
593 need_global_offset_table.
594 (elf_x86_init_table): Likewise.
596 2018-02-08 Jim Wilson <jimw@sifive.com>
598 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
601 2018-02-08 Nick Clifton <nickc@redhat.com>
604 * elf.c (elf_parse_notes): Reject notes with excessuively large
607 2018-02-07 Alan Modra <amodra@gmail.com>
609 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
610 * elf32-ppc.c: Remove speculation barrier support.
611 * elf32-ppc.h: Likewise.
612 * elf64-ppc.c: Likewise.
613 * elf64-ppc.h: Likewise.
615 2018-02-06 Jim Wilson <jimw@sifive.com>
617 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
618 callback to report an error.
620 2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
623 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
624 into call to !bfd_link_executable and tidy up.
625 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
626 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
627 !bfd_link_executable.
628 <R_SPARC_TLS_IE_HI22>: Likewise.
629 <GOT relocations>: Remove useless code, tidy and merge related blocks.
630 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
631 !bfd_link_executable.
632 <R_SPARC_WPLT30>: Tidy up.
633 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
634 !bfd_link_executable.
635 (allocate_dynrelocs): Likewise.
636 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
637 <R_SPARC_TLS_GD_HI22>: Merge into...
638 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
639 sparc_elf_tls_transition and remove redundant code.
640 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
641 !bfd_link_executable.
642 <R_SPARC_TLS_LDO_HIX22>: Likewise.
643 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
644 <R_SPARC_TLS_LDM_CALL>: Likewise.
645 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
646 <R_SPARC_TLS_GD_ADD>: Likewise.
647 <R_SPARC_TLS_LDM_ADD>: Likewise.
648 <R_SPARC_TLS_LDO_ADD>: Likewise.
649 <R_SPARC_TLS_IE_LD>: Likewise.
651 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
654 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
655 functions failed to find the function name, try the generic elf
656 find function instead.
658 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
660 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
661 'memcpy' instead of 'strncpy' when writing the magic number.
663 2018-02-06 Nick Clifton <nickc@redhat.com>
666 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
667 section before attempting to read it in.
668 (bfd_get_alt_debug_link_info): Likewise.
670 2018-02-06 Paul Carroll <pcarroll@codesourcery.com>
672 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
673 line information in addition to name, if they can be found.
675 2018-02-05 Renlin Li <renlin.li@arm.com>
678 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
679 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
680 check for writeable section as well.
682 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
685 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
686 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
687 undefined weak symbol to 0.
688 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
689 if _GLOBAL_OFFSET_TABLE_ is referenced.
690 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
691 got_referenced instead of ref_regular_nonweak. Remove the
692 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
693 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
695 2018-02-05 Maciej W. Rozycki <macro@mips.com>
697 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
698 initialize `hi_reloc'.
700 2018-02-05 Maciej W. Rozycki <macro@mips.com>
702 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
703 SHT_MIPS_REGINFO sections don't assert the correct size and
704 report an error instead.
706 2018-02-05 Maciej W. Rozycki <macro@mips.com>
708 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
709 status from `->elf_backend_section_processing'.
711 2018-02-02 Jim Wilson <jimw@sifive.com>
714 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
715 If link_info->wrap_hash, check for a duplicate symbol and ignore.
716 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
717 Pass new argument to riscv_relax_delete_bytes.
718 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
719 ATTRIBUTE_UNUSED from link_info parameter.
721 2018-02-02 Alan Modra <amodra@gmail.com>
723 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
724 emitted for toc sequence optimization. Set and use "howto" later.
726 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
728 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
729 arithmetic on NULL pointer.
730 * elflink.c (_bfd_elf_archive_symbol_lookup,
731 elf_link_add_archive_symbols): Likewise.
733 2018-01-31 Michael Matz <matz@suse.de>
735 * elflink.c (bfd_elf_define_start_stop): Fix check of
738 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
741 * elflink.c (bfd_elf_define_start_stop): Check if __start and
742 __stop symbols are referenced by shared objects.
744 2018-01-30 Alan Modra <amodra@gmail.com>
747 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
748 segment when demand paged with lma on the same page. Test this
749 before load/non-load, executable/non-executable,
750 writable/non-writable tests and simplify. Delete bogus relro
751 condition in writable/non-writable test. Delete outdated
754 2018-01-30 Alan Modra <amodra@gmail.com>
756 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
759 2018-01-29 Alan Modra <amodra@gmail.com>
762 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
763 range before converting to a symbol table pointer.
765 2018-01-27 Nick Clifton <nickc@redhat.com>
767 * po/ru.po: Updated Russian translation.
769 2018-01-26 Alan Modra <amodra@gmail.com>
771 * elflink.c (bfd_elf_define_start_stop): Override symbols when
772 they are defined dynamically.
774 2018-01-26 Alan Modra <amodra@gmail.com>
776 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
777 .branch_lt changes size.
779 2018-01-25 Alan Modra <amodra@gmail.com>
782 * elfcode.h (elf_object_p): Avoid integer overflow.
784 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
787 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
788 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
791 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
794 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
795 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
796 bfd_link_executable for TLS check.
797 (_bfd_sparc_elf_check_relocs): Likewise.
798 (allocate_dynrelocs): Likewise.
799 (_bfd_sparc_elf_relocate_section): Likewise.
801 2018-01-24 Renlin Li <renlin.li@arm.com>
803 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
804 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
805 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
806 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
807 BFD_RELOC_AARCH64_MOVW_PREL_G3.
808 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
809 (_bfd_aarch64_elf_resolve_relocation): Likewise.
811 2018-01-24 Renlin Li <renlin.li@arm.com>
813 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
814 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
815 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
816 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
817 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
818 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
819 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
820 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
821 BFD_RELOC_AARCH64_MOVW_PREL_G3.
822 * bfd-in2.h: Regenerate.
823 * libbfd.h: Regenerate.
825 2018-01-23 Maciej W. Rozycki <macro@mips.com>
827 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
828 `mips_elf32_section_processing' comment reference.
830 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
833 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
834 versioned __tls_get_addr symbol.
836 2018-01-19 Nick Clifton <nickc@redhat.com>
838 * po/fr.po: Updated French translation.
840 2018-01-18 Alan Modra <amodra@gmail.com>
842 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
843 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
844 (ppc64_elf_build_stubs): Likewise.
846 2018-01-17 Nick Clifton <nickc@redhat.com>
848 * po/ru.po: Updated Russian translation.
849 * po/uk/po: Updated Ukranian translation.
851 2018-01-17 Alan Modra <amodra@gmail.com>
853 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
855 2018-01-17 Alan Modra <amodra@gmail.com>
857 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
858 (CRSETEQ, BEQCTRM): Define.
859 (is_nonpic_glink_stub): Don't check bctr.
860 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
861 (ppc_elf_relax_section): Size speculation barrier.
862 (output_bctr): New function.
863 (write_glink_stub): Use output_bctr.
864 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
865 (ppc_elf_finish_dynamic_symbol): Likewise.
866 (ppc_elf_finish_dynamic_sections): Use output_bctr.
867 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
868 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
869 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
870 (size_global_entry_stubs): Handle speculation barrier sizing.
871 (plt_stub_size): Likewise.
872 (output_bctr): New function.
873 (build_plt_stub, build_tls_get_addr_stub): Output speculation
875 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
876 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
877 (build_global_entry_stubs): Output speculation barrier.
878 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
879 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
881 2018-01-17 Alan Modra <amodra@gmail.com>
883 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
884 __tls_get_addr_opt, and alignment sizing.
885 (TLS_GET_ADDR_GLINK_SIZE): Delete.
886 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
887 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
889 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
890 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
891 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
893 (write_glink_stub): Handle __tls_get_addr_opt stub.
894 Pad out to size given by GLINK_ENTRY_SIZE.
895 (ppc_elf_relocate_section): Adjust write_glink_stub call.
896 (ppc_elf_finish_dynamic_symbol): Likewise.
897 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
898 insn array since so many need rewriting.
899 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
900 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
901 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
902 nops. Adjust all uses.
903 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
904 in glink_vma calculation.
905 (struct ppc_link_hash_table): Add global_entry section pointer.
906 (create_linkage_sections): Create separate section for global
908 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
909 (size_global_entry_stubs): Handle sizing for aligned stubs.
910 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
911 and don't stash end of glink branch table in rawsize.
912 (ppc_build_one_stub): Rewrite stub size calculations.
913 (build_global_entry_stubs): Use new section.
914 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
915 Build lazy link stubs out to end of section. Build global entry
916 stubs in new section.
918 2018-01-15 Nick Clifton <nickc@redhat.com>
920 * po/uk.po: Updated Ukranian translation.
922 2018-01-13 Nick Clifton <nickc@redhat.com>
924 * po/bfd.pot: Regenerated.
926 2018-01-13 Nick Clifton <nickc@redhat.com>
928 * version.m4: Bump version to 2.30.51
929 * configure: Regenerate.
931 2018-01-13 Nick Clifton <nickc@redhat.com>
935 2018-01-12 Jens Widell <jl@opera.com>
937 * elf.c (setup_group): Optimize search for group by remembering
938 last found group and restarting search at that index.
939 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
941 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
943 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
944 bfd_link_common_skip_none in switch.
946 2018-01-12 Alan Modra <amodra@gmail.com>
949 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
950 references on forced local symbols.
952 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
954 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
955 .reginfo section has wrong size.
957 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
960 * elf.c (_bfd_elf_map_sections_to_segments): When generating
961 separate code and read-only data LOAD segments, create a new
962 LOAD segment if the previous section contains text and the
963 current section doesn't or vice versa. Don't put a writable
964 section in a read-only segment if there is a RELRO segment.
966 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
969 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
970 references on forced local symbols.
972 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
975 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
976 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
978 2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
981 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
983 2018-01-03 John Baldwin <jhb@FreeBSD.org>
985 * elf.c (elfcore_grok_freebsd_note): Handle
986 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
987 NT_FREEBSD_PROCSTAT_VMMAP.
989 2018-01-03 Alan Modra <amodra@gmail.com>
991 Update year range in copyright notice of all files.
993 For older changes see ChangeLog-2017
995 Copyright (C) 2018 Free Software Foundation, Inc.
997 Copying and distribution of this file, with or without modification,
998 are permitted in any medium without royalty provided the copyright
999 notice and this notice are preserved.
1005 version-control: never