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