x86-64: Add -z max-page-size=0x200000 -z noseparate-code to linker tests
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
d00dd7dc
AM
12018-02-16 Alan Modra <amodra@gmail.com>
2
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
35 new function.
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,
73 removing casts.
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.
79 * aoutf1.h: Likewise.
80 * binary.c: Likewise.
81 * bout.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.
122 * ieee.c: Likewise.
123 * ihex.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.
130 * mmo.c: Likewise.
131 * netbsd-core.c: Likewise.
132 * nlm-target.h: Likewise.
133 * oasys.c: Likewise.
134 * osf-core.c: Likewise.
135 * pdp11.c: Likewise.
136 * pe-mips.c: Likewise.
137 * pe-x86_64.c: Likewise.
138 * pef.c: Likewise.
139 * plugin.c: Likewise.
140 * ppcboot.c: Likewise.
141 * ptrace-core.c: Likewise.
142 * sco5-core.c: Likewise.
143 * som.c: Likewise.
144 * sparclynx.c: Likewise.
145 * srec.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.
153 * xsym.c: Likewise.
154 * libbfd.h: Regenerate.
155
2a0d9853
JW
1562018-02-15 Jim Wilson <jimw@sifive.com>
157
09ca4b9d
JW
158 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
159 symbols whose section address is zero.
160
2a0d9853
JW
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.
165
e513bd38
EB
1662018-02-15 Eric Botcazou <ebotcazou@adacore.com>
167
168 PR ld/22832
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.
172
12ef3f5a
NC
1732018-02-14 Nick Clifton <nickc@redhat.com>
174
175 PR 22823
176 Revert previous delta. Add extra casts to avoid compile time
177 warnings instead.
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.
295
451875b4
L
2962018-02-14 H.J. Lu <hongjiu.lu@intel.com>
297
298 PR ld/22842
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.
314
1031c264
L
3152018-02-13 H.J. Lu <hongjiu.lu@intel.com>
316
317 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
318 instead of bfd_link_pic, for building shared library.
319
bd7ab16b
L
3202018-02-13 H.J. Lu <hongjiu.lu@intel.com>
321
322 PR gas/22791
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.
327
80c96350
ST
3282018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
329
330 PR 22828
331 * po/ru.po: Fix typo in Russian translation.
332
87993319
MR
3332018-02-13 Maciej W. Rozycki <macro@mips.com>
334
335 * wasm-module.c (wasm_scan_name_function_section): Rename
336 `index' local variable to `idx'.
337
68d20676
NC
3382018-02-13 Nick Clifton <nickc@redhat.com>
339
340 PR 22823
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
347 function.
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
470 to func pointer.
471 * elf32-i370.c (i370_noop): Update prototype.
472
6e5e9d58
AM
4732018-02-13 Alan Modra <amodra@gmail.com>
474
475 PR 22836
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.
480
f2731e0c
AM
4812018-02-13 Alan Modra <amodra@gmail.com>
482
483 PR 22829
484 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
485 PT_GNU_RELRO setup.
486
830db048
ZF
4872018-02-12 Zebediah Figura <z.figura12@gmail.com>
488
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
492 function.
493 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
494 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
495 IMAGE_NT_SIGNATURE.
496 * peXXigen.c: Likewise.
497 * coff-ia64.c: Likewise.
498
94fe5757
NC
4992018-02-12 Nick Clifton <nickc@redhat.com>
500
501 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
502 assignment.
0b8683b7 503 * elf32-arc.c (elf_arc_relocate_section): Likewise.
94fe5757 504
d805612e 5052018-02-09 Eric Botcazou <ebotcazou@adacore.com>
a8735c82
EB
506
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.
522
3b4c3844
L
5232018-02-09 H.J. Lu <hongjiu.lu@intel.com>
524
525 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
526 is_solaris.
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
532 Solaris.
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
541 Solaris.
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.
549
15b23f36
L
5502018-02-08 H.J. Lu <hongjiu.lu@intel.com>
551
552 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
553 Remove prototype.
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):
558 Remove prototype.
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.
562
dc11dea2
L
5632018-02-08 H.J. Lu <hongjiu.lu@intel.com>
564
565 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
566 New prototype.
567 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
568 for Solaris.
569 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
570 New prototype.
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.
580
3f48fe4a
JW
5812018-02-08 Jim Wilson <jimw@sifive.com>
582
583 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
584 change.
585
ef135d43
NC
5862018-02-08 Nick Clifton <nickc@redhat.com>
587
588 PR 22788
589 * elf.c (elf_parse_notes): Reject notes with excessuively large
590 alignments.
591
407aa07c
AM
5922018-02-07 Alan Modra <amodra@gmail.com>
593
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.
599
ed01220c
JW
6002018-02-06 Jim Wilson <jimw@sifive.com>
601
602 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
603 callback to report an error.
604
c20c30f6
EB
6052018-02-06 Eric Botcazou <ebotcazou@adacore.com>
606
607 PR ld/22263
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.
635
46d09186
NC
6362018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
637
638 PR 22789
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.
642
8278e7ce
SDJ
6432018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
644
645 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
646 'memcpy' instead of 'strncpy' when writing the magic number.
647
64e234d4
NC
6482018-02-06 Nick Clifton <nickc@redhat.com>
649
650 PR 22794
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.
654
422f3d3d
PC
6552018-02-06 Paul Carroll <pcarroll@codesourcery.com>
656
657 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
658 line information in addition to name, if they can be found.
659
279b2f94
RL
6602018-02-05 Renlin Li <renlin.li@arm.com>
661
662 PR ld/22764
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.
666
cd048363
L
6672018-02-05 H.J. Lu <hongjiu.lu@intel.com>
668
669 PR ld/22782
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.
679
e65b1a78
MR
6802018-02-05 Maciej W. Rozycki <macro@mips.com>
681
682 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
683 initialize `hi_reloc'.
684
2d6dda71
MR
6852018-02-05 Maciej W. Rozycki <macro@mips.com>
686
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.
690
75506100
MR
6912018-02-05 Maciej W. Rozycki <macro@mips.com>
692
693 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
694 status from `->elf_backend_section_processing'.
695
7f02625e
JW
6962018-02-02 Jim Wilson <jimw@sifive.com>
697
698 PR ld/22756
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.
705
d830549d
AM
7062018-02-02 Alan Modra <amodra@gmail.com>
707
708 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
709 emitted for toc sequence optimization. Set and use "howto" later.
710
e99955cd
SM
7112018-02-01 Simon Marchi <simon.marchi@ericsson.com>
712
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.
717
bf3077a6
MM
7182018-01-31 Michael Matz <matz@suse.de>
719
720 * elflink.c (bfd_elf_define_start_stop): Fix check of
721 def_dynamic.
722
823143c6
L
7232018-01-31 H.J. Lu <hongjiu.lu@intel.com>
724
725 PR ld/21964
726 * elflink.c (bfd_elf_define_start_stop): Check if __start and
727 __stop symbols are referenced by shared objects.
728
76cb3a89
AM
7292018-01-30 Alan Modra <amodra@gmail.com>
730
731 PR 22758
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
737 comment. Formatting.
738
36b8fda5
AM
7392018-01-30 Alan Modra <amodra@gmail.com>
740
741 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
742 symbols dynamic.
743
eb77f6a4
AM
7442018-01-29 Alan Modra <amodra@gmail.com>
745
746 PR 22741
747 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
748 range before converting to a symbol table pointer.
749
7d73b4c8
NC
7502018-01-27 Nick Clifton <nickc@redhat.com>
751
752 * po/ru.po: Updated Russian translation.
753
32253bb7
AM
7542018-01-26 Alan Modra <amodra@gmail.com>
755
756 * elflink.c (bfd_elf_define_start_stop): Override symbols when
757 they are defined dynamically.
758
ba21f564
AM
7592018-01-26 Alan Modra <amodra@gmail.com>
760
761 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
762 .branch_lt changes size.
763
38e64b0e
AM
7642018-01-25 Alan Modra <amodra@gmail.com>
765
766 PR 22746
767 * elfcode.h (elf_object_p): Avoid integer overflow.
768
bb363086
EB
7692018-01-25 Eric Botcazou <ebotcazou@adacore.com>
770
771 PR ld/22727
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.
774
775 Revert
776 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
777
778 PR ld/22263
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.
785
1daf502a
RL
7862018-01-24 Renlin Li <renlin.li@arm.com>
787
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.
795
32247401
RL
7962018-01-24 Renlin Li <renlin.li@arm.com>
797
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.
809
1c5e4ee9
MR
8102018-01-23 Maciej W. Rozycki <macro@mips.com>
811
812 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
813 `mips_elf32_section_processing' comment reference.
814
8a1b824a
L
8152018-01-20 H.J. Lu <hongjiu.lu@intel.com>
816
817 PR ld/22721
818 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
819 versioned __tls_get_addr symbol.
820
ee3fbc1e
NC
8212018-01-19 Nick Clifton <nickc@redhat.com>
822
823 * po/fr.po: Updated French translation.
824
691d2e9a
AM
8252018-01-18 Alan Modra <amodra@gmail.com>
826
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.
830
4bfce128
NC
8312018-01-17 Nick Clifton <nickc@redhat.com>
832
833 * po/ru.po: Updated Russian translation.
834 * po/uk/po: Updated Ukranian translation.
835
c75bc4f7
AM
8362018-01-17 Alan Modra <amodra@gmail.com>
837
838 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
839
1be5d8d3
AM
8402018-01-17 Alan Modra <amodra@gmail.com>
841
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
859 barrier.
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.
865
9e390558
AM
8662018-01-17 Alan Modra <amodra@gmail.com>
867
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,
873 or 8 insns.
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
877 by PLT reloc count.
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
892 entry stubs.
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.
902
616dcb87
NC
9032018-01-15 Nick Clifton <nickc@redhat.com>
904
905 * po/uk.po: Updated Ukranian translation.
906
3957a496
NC
9072018-01-13 Nick Clifton <nickc@redhat.com>
908
909 * po/bfd.pot: Regenerated.
910
769c7ea5
NC
9112018-01-13 Nick Clifton <nickc@redhat.com>
912
913 * version.m4: Bump version to 2.30.51
914 * configure: Regenerate.
915
faf766e3
NC
9162018-01-13 Nick Clifton <nickc@redhat.com>
917
918 2.30 branch created.
919
564e11c9
JW
9202018-01-12 Jens Widell <jl@opera.com>
921
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.
925
a78eea16
AM
9262018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
927
928 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
929 bfd_link_common_skip_none in switch.
930
87e79a65
AM
9312018-01-12 Alan Modra <amodra@gmail.com>
932
933 PR ld/22649
934 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
935 references on forced local symbols.
936
58807c48
VI
9372018-01-12 Vlad Ivanov <vlad@ivanov.email>
938
939 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
940 .reginfo section has wrong size.
941
2888249f
L
9422018-01-11 H.J. Lu <hongjiu.lu@intel.com>
943
944 PR ld/22393
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.
950
d664fd41
L
9512018-01-11 H.J. Lu <hongjiu.lu@intel.com>
952
953 PR ld/22649
954 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
955 references on forced local symbols.
956
8b6f4cd3
L
9572018-01-11 H.J. Lu <hongjiu.lu@intel.com>
958
959 PR ld/22677
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.
962
6cef73f9
KLC
9632017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
964
965 PR 22662
966 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
967
ddb2bbcf
JB
9682018-01-03 John Baldwin <jhb@FreeBSD.org>
969
970 * elf.c (elfcore_grok_freebsd_note): Handle
971 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
972 NT_FREEBSD_PROCSTAT_VMMAP.
973
219d1afa
AM
9742018-01-03 Alan Modra <amodra@gmail.com>
975
976 Update year range in copyright notice of all files.
977
1e563868 978For older changes see ChangeLog-2017
3499769a 979\f
1e563868 980Copyright (C) 2018 Free Software Foundation, Inc.
3499769a
AM
981
982Copying and distribution of this file, with or without modification,
983are permitted in any medium without royalty provided the copyright
984notice and this notice are preserved.
985
986Local Variables:
987mode: change-log
988left-margin: 8
989fill-column: 74
990version-control: never
991End:
This page took 0.202564 seconds and 4 git commands to generate.