Commit | Line | Data |
---|---|---|
2a0d9853 JW |
1 | 2018-02-15 Jim Wilson <jimw@sifive.com> |
2 | ||
09ca4b9d JW |
3 | * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore |
4 | symbols whose section address is zero. | |
5 | ||
2a0d9853 JW |
6 | * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous |
7 | when pcrel_lo reloc has an addend. Use reloc_dangerous callback for | |
8 | bfd_reloc_dangerous. Use einfo instead of warning callback for errors. | |
9 | Add %X%P to error messages. | |
10 | ||
e513bd38 EB |
11 | 2018-02-15 Eric Botcazou <ebotcazou@adacore.com> |
12 | ||
13 | PR ld/22832 | |
14 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>: | |
15 | Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup | |
16 | and assert that the result of the call is not NULL. | |
17 | ||
12ef3f5a NC |
18 | 2018-02-14 Nick Clifton <nickc@redhat.com> |
19 | ||
20 | PR 22823 | |
21 | Revert previous delta. Add extra casts to avoid compile time | |
22 | warnings instead. | |
23 | * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra | |
24 | cast to avoid warning from gcc v8 compiler. | |
25 | (_bfd_generic_bfd_merge_private_bfd_data): Likewise. | |
26 | (_bfd_generic_bfd_set_private_flags): Likewise. | |
27 | (_bfd_generic_bfd_copy_private_section_data): Likewise. | |
28 | (_bfd_generic_bfd_copy_private_symbol_data): Likewise. | |
29 | (_bfd_generic_bfd_copy_private_header_data): Likewise. | |
30 | (_bfd_generic_bfd_print_private_bfd_data): Likewise. | |
31 | (_bfd_noarchive_construct_extended_name_table): Likewise. | |
32 | (_bfd_noarchive_truncate_arname): Likewise. | |
33 | (_bfd_noarchive_write_ar_hdr): Likewise. | |
34 | (_bfd_noarchive_get_elt_at_index): Likewise. | |
35 | (_bfd_nosymbols_canonicalize_symtab): Likewise. | |
36 | (_bfd_nosymbols_print_symbol): Likewise. | |
37 | (_bfd_nosymbols_get_symbol_info): Likewise. | |
38 | (_bfd_nosymbols_get_symbol_version_string): Likewise. | |
39 | (_bfd_nosymbols_bfd_is_local_label_name): Likewise. | |
40 | (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise. | |
41 | (_bfd_nosymbols_get_lineno): Likewise. | |
42 | (_bfd_nosymbols_find_nearest_line): Likewise. | |
43 | (_bfd_nosymbols_find_line): Likewise. | |
44 | (_bfd_nosymbols_find_inliner_info): Likewise. | |
45 | (_bfd_nosymbols_bfd_make_debug_symbol): Likewise. | |
46 | (_bfd_nosymbols_read_minisymbols): Likewise. | |
47 | (_bfd_nosymbols_minisymbol_to_symbol): Likewise. | |
48 | (_bfd_norelocs_bfd_reloc_type_lookup): Likewise. | |
49 | (_bfd_norelocs_bfd_reloc_name_lookup): Likewise. | |
50 | (_bfd_nowrite_set_arch_mach): Likewise. | |
51 | (_bfd_nowrite_set_section_contents): Likewise. | |
52 | (_bfd_nolink_sizeof_headers): Likewise. | |
53 | (_bfd_nolink_bfd_get_relocated_section_contents): Likewise. | |
54 | (_bfd_nolink_bfd_relax_section): Likewise. | |
55 | (_bfd_nolink_bfd_gc_sections): Likewise. | |
56 | (_bfd_nolink_bfd_lookup_section_flags): Likewise. | |
57 | (_bfd_nolink_bfd_merge_sections): Likewise. | |
58 | (_bfd_nolink_bfd_is_group_section): Likewise. | |
59 | (_bfd_nolink_bfd_discard_group): Likewise. | |
60 | (_bfd_nolink_bfd_link_hash_table_create): Likewise. | |
61 | (_bfd_nolink_bfd_link_add_symbols): Likewise. | |
62 | (_bfd_nolink_bfd_link_just_syms): Likewise. | |
63 | (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise. | |
64 | (_bfd_nolink_bfd_final_link): Likewise. | |
65 | (_bfd_nolink_bfd_link_split_section): Likewise. | |
66 | (_bfd_nolink_section_already_linked): Likewise. | |
67 | (_bfd_nolink_bfd_define_common_symbol): Likewise. | |
68 | (_bfd_nolink_bfd_define_start_stop): Likewise. | |
69 | (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise. | |
70 | (_bfd_nodynamic_get_synthetic_symtab): Likewise. | |
71 | (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise. | |
72 | (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise. | |
73 | * libbfd.c (bfd_false_any): Delete. | |
74 | (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete. | |
75 | (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete. | |
76 | * libbfd.h (extern): Regenerate | |
77 | * aout-target.h (MY_bfd_is_target_special_symbol): Add extra | |
78 | cast to avoid warning from gcc v8 compiler. | |
79 | * aout-tic30.c (tic30_aout_set_arch_mach): Likewise. | |
80 | * binary.c (binary_get_symbol_info): Likewise. | |
81 | * coff-alpha.c (alpha_ecoff_backend_data): Likewise. | |
82 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
83 | * coffcode.h (coff_set_alignment_hook): Likewise. | |
84 | (symname_in_debug_hook): Likewise. | |
85 | (bfd_coff_backend_data bigobj_swap_table): Likewise. | |
86 | * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise. | |
87 | * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise. | |
88 | * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise. | |
89 | * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise. | |
90 | * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise. | |
91 | * elf32-score.c (elf_backend_omit_section_dynsym): Likewise. | |
92 | * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise. | |
93 | * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise. | |
94 | * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise. | |
95 | * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise. | |
96 | * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise. | |
97 | * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise. | |
98 | * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise. | |
99 | * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise. | |
100 | * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise. | |
101 | * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise. | |
102 | (bfd_elfNN_bfd_make_debug_symbol): Likewise. | |
103 | (bfd_elfNN_bfd_merge_private_bfd_data): Likewise. | |
104 | (bfd_elfNN_bfd_set_private_flags): Likewise. | |
105 | (bfd_elfNN_bfd_is_target_special_symbol): Likewise. | |
106 | (elf_backend_init_index_section): Likewise. | |
107 | (elf_backend_allow_non_load_phdr): Likewise. | |
108 | * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise. | |
109 | * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise. | |
110 | * ieee.c (ieee_construct_extended_name_table): Likewise. | |
111 | (ieee_write_armap): Likewise. | |
112 | (ieee_write_ar_hdr): Likewise. | |
113 | (ieee_bfd_is_target_special_symbol): Likewise. | |
114 | * ihex.c (ihex_canonicalize_symtab): Likewise. | |
115 | (ihex_bfd_is_target_special_symbol): Likewise. | |
116 | * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise. | |
117 | * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise. | |
118 | (_bfd_ecoff_set_alignment_hook): Likewise. | |
119 | * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise. | |
120 | * mmo.c (mmo_bfd_is_target_special_symbol): Likewise. | |
121 | * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise. | |
122 | * oasys.c (oasys_construct_extended_name_table): Likewise. | |
123 | (oasys_write_armap): Likewise. | |
124 | (oasys_write_ar_hdr): Likewise. | |
125 | (oasys_bfd_is_target_special_symbol): Likewise. | |
126 | * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise. | |
127 | * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise. | |
128 | * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise. | |
129 | * som.c (som_bfd_is_target_special_symbol): Likewise. | |
130 | * srec.c (srec_bfd_is_target_special_symbol): Likewise. | |
131 | * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise. | |
132 | * verilog.c (verilog_bfd_is_target_special_symbol): Likewise. | |
133 | * versados.c (versados_bfd_is_target_special_symbol): Likewise. | |
134 | (versados_bfd_reloc_name_lookup): Likewise. | |
135 | * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise. | |
136 | (vms_bfd_define_start_stop): Likewise. | |
137 | (alpha_vms_bfd_is_target_special_symbol): Likewise. | |
138 | * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise. | |
139 | * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise. | |
140 | ||
451875b4 L |
141 | 2018-02-14 H.J. Lu <hongjiu.lu@intel.com> |
142 | ||
143 | PR ld/22842 | |
144 | * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non | |
145 | PC-relative PLT to NEED_DYNAMIC_RELOCATION_P. | |
146 | * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for | |
147 | R_X86_64_PC32 reloc against dynamic function in data section. | |
148 | Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P. | |
149 | (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc | |
150 | against dynamic function in data section. | |
151 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as | |
152 | function address only if pcrel_plt is true. | |
153 | (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt. | |
154 | * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for | |
155 | PC-relative PLT. If PLT is PC-relative, don't generate dynamic | |
156 | PC-relative relocation against a function definition in data | |
157 | secton in PIE. Remove the obsolete comments. | |
158 | (elf_x86_link_hash_table): Add pcrel_plt. | |
159 | ||
1031c264 L |
160 | 2018-02-13 H.J. Lu <hongjiu.lu@intel.com> |
161 | ||
162 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll, | |
163 | instead of bfd_link_pic, for building shared library. | |
164 | ||
bd7ab16b L |
165 | 2018-02-13 H.J. Lu <hongjiu.lu@intel.com> |
166 | ||
167 | PR gas/22791 | |
168 | * elf64-x86-64.c (is_32bit_relative_branch): Removed. | |
169 | (elf_x86_64_relocate_section): Check PIC relocations in PIE. | |
170 | Remove is_32bit_relative_branch usage. Disallow PC32 reloc | |
171 | against protected function in shared object. | |
172 | ||
80c96350 ST |
173 | 2018-02-13 Sergei Trofimovich <slyfox@inbox.ru> |
174 | ||
175 | PR 22828 | |
176 | * po/ru.po: Fix typo in Russian translation. | |
177 | ||
87993319 MR |
178 | 2018-02-13 Maciej W. Rozycki <macro@mips.com> |
179 | ||
180 | * wasm-module.c (wasm_scan_name_function_section): Rename | |
181 | `index' local variable to `idx'. | |
182 | ||
68d20676 NC |
183 | 2018-02-13 Nick Clifton <nickc@redhat.com> |
184 | ||
185 | PR 22823 | |
186 | Fix compile time warnings generated by gcc version 8. | |
187 | * libbfd-in.h: Remove extraneous text from prototypes. | |
188 | Add prototypes for bfd_false_any, bfd_true_any, | |
189 | bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any, | |
190 | bfd_n1_any, bfd_void_any. | |
191 | (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy | |
192 | function. | |
193 | (_bfd_generic_bfd_merge_private_bfd_data): Likewise. | |
194 | (_bfd_generic_bfd_set_private_flags): Likewise. | |
195 | (_bfd_generic_bfd_copy_private_section_data): Likewise. | |
196 | (_bfd_generic_bfd_copy_private_symbol_data): Likewise. | |
197 | (_bfd_generic_bfd_copy_private_header_data): Likewise. | |
198 | (_bfd_generic_bfd_print_private_bfd_data): Likewise. | |
199 | (_bfd_noarchive_construct_extended_name_table): Likewise. | |
200 | (_bfd_noarchive_truncate_arname): Likewise. | |
201 | (_bfd_noarchive_write_ar_hdr): Likewise. | |
202 | (_bfd_noarchive_get_elt_at_index): Likewise. | |
203 | (_bfd_nosymbols_canonicalize_symtab): Likewise. | |
204 | (_bfd_nosymbols_print_symbol): Likewise. | |
205 | (_bfd_nosymbols_get_symbol_info): Likewise. | |
206 | (_bfd_nosymbols_get_symbol_version_string): Likewise. | |
207 | (_bfd_nosymbols_bfd_is_local_label_name): Likewise. | |
208 | (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise. | |
209 | (_bfd_nosymbols_get_lineno): Likewise. | |
210 | (_bfd_nosymbols_find_nearest_line): Likewise. | |
211 | (_bfd_nosymbols_find_line): Likewise. | |
212 | (_bfd_nosymbols_find_inliner_info): Likewise. | |
213 | (_bfd_nosymbols_bfd_make_debug_symbol): Likewise. | |
214 | (_bfd_nosymbols_read_minisymbols): Likewise. | |
215 | (_bfd_nosymbols_minisymbol_to_symbol): Likewise. | |
216 | (_bfd_norelocs_bfd_reloc_type_lookup): Likewise. | |
217 | (_bfd_norelocs_bfd_reloc_name_lookup): Likewise. | |
218 | (_bfd_nowrite_set_arch_mach): Likewise. | |
219 | (_bfd_nowrite_set_section_contents): Likewise. | |
220 | (_bfd_nolink_sizeof_headers): Likewise. | |
221 | (_bfd_nolink_bfd_get_relocated_section_contents): Likewise. | |
222 | (_bfd_nolink_bfd_relax_section): Likewise. | |
223 | (_bfd_nolink_bfd_gc_sections): Likewise. | |
224 | (_bfd_nolink_bfd_lookup_section_flags): Likewise. | |
225 | (_bfd_nolink_bfd_merge_sections): Likewise. | |
226 | (_bfd_nolink_bfd_is_group_section): Likewise. | |
227 | (_bfd_nolink_bfd_discard_group): Likewise. | |
228 | (_bfd_nolink_bfd_link_hash_table_create): Likewise. | |
229 | (_bfd_nolink_bfd_link_add_symbols): Likewise. | |
230 | (_bfd_nolink_bfd_link_just_syms): Likewise. | |
231 | (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise. | |
232 | (_bfd_nolink_bfd_final_link): Likewise. | |
233 | (_bfd_nolink_bfd_link_split_section): Likewise. | |
234 | (_bfd_nolink_section_already_linked): Likewise. | |
235 | (_bfd_nolink_bfd_define_common_symbol): Likewise. | |
236 | (_bfd_nolink_bfd_define_start_stop): Likewise. | |
237 | (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise. | |
238 | (_bfd_nodynamic_get_synthetic_symtab): Likewise. | |
239 | (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise. | |
240 | (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise. | |
241 | * libbfd.c (bfd_false_any): New function. Like bfd_false but | |
242 | accepts one or more arguments. | |
243 | (bfd_true_any): Likewise. | |
244 | (bfd_nullvoidptr_any): Likewise. | |
245 | (bfd_0_any): Likewise. | |
246 | (bfd_0u_any): Likewise. | |
247 | (bfd_0l_any): Likewise. | |
248 | (_bfd_n1_any): Likewise. | |
249 | (bfd_void_any): Likewise. | |
250 | * libbfd.h (extern): Regenerate | |
251 | * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg | |
252 | based dummy function. | |
253 | * aout-tic30.c (tic30_aout_set_arch_mach): Likewise. | |
254 | * binary.c (binary_get_symbol_info): Likewise. | |
255 | * coff-alpha.c (alpha_ecoff_backend_data): Likewise. | |
256 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
257 | * coffcode.h (coff_set_alignment_hook): Likewise. | |
258 | (symname_in_debug_hook): Likewise. | |
259 | (bfd_coff_backend_data bigobj_swap_table): Likewise. | |
260 | * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise. | |
261 | * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise. | |
262 | * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise. | |
263 | * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise. | |
264 | * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise. | |
265 | * elf32-score.c (elf_backend_omit_section_dynsym): Likewise. | |
266 | * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise. | |
267 | * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise. | |
268 | * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise. | |
269 | * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise. | |
270 | * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise. | |
271 | * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise. | |
272 | * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise. | |
273 | * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise. | |
274 | * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise. | |
275 | * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise. | |
276 | (bfd_elfNN_bfd_make_debug_symbol): Likewise. | |
277 | (bfd_elfNN_bfd_merge_private_bfd_data): Likewise. | |
278 | (bfd_elfNN_bfd_set_private_flags): Likewise. | |
279 | (bfd_elfNN_bfd_is_target_special_symbol): Likewise. | |
280 | (elf_backend_init_index_section): Likewise. | |
281 | (elf_backend_allow_non_load_phdr): Likewise. | |
282 | * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise. | |
283 | * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise. | |
284 | * ieee.c (ieee_construct_extended_name_table): Likewise. | |
285 | (ieee_write_armap): Likewise. | |
286 | (ieee_write_ar_hdr): Likewise. | |
287 | (ieee_bfd_is_target_special_symbol): Likewise. | |
288 | * ihex.c (ihex_canonicalize_symtab): Likewise. | |
289 | (ihex_bfd_is_target_special_symbol): Likewise. | |
290 | * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise. | |
291 | * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise. | |
292 | (_bfd_ecoff_set_alignment_hook): Likewise. | |
293 | * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise. | |
294 | * mmo.c (mmo_bfd_is_target_special_symbol): Likewise. | |
295 | * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise. | |
296 | * oasys.c (oasys_construct_extended_name_table): Likewise. | |
297 | (oasys_write_armap): Likewise. | |
298 | (oasys_write_ar_hdr): Likewise. | |
299 | (oasys_bfd_is_target_special_symbol): Likewise. | |
300 | * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise. | |
301 | * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise. | |
302 | * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise. | |
303 | * som.c (som_bfd_is_target_special_symbol): Likewise. | |
304 | * srec.c (srec_bfd_is_target_special_symbol): Likewise. | |
305 | * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise. | |
306 | * verilog.c (verilog_bfd_is_target_special_symbol): Likewise. | |
307 | * versados.c (versados_bfd_is_target_special_symbol): Likewise. | |
308 | (versados_bfd_reloc_name_lookup): Likewise. | |
309 | * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise. | |
310 | (vms_bfd_define_start_stop): Likewise. | |
311 | (alpha_vms_bfd_is_target_special_symbol): Likewise. | |
312 | * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise. | |
313 | * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise. | |
314 | * elf32-arc.c (get_replace_function): Assign replacement function | |
315 | to func pointer. | |
316 | * elf32-i370.c (i370_noop): Update prototype. | |
317 | ||
6e5e9d58 AM |
318 | 2018-02-13 Alan Modra <amodra@gmail.com> |
319 | ||
320 | PR 22836 | |
321 | * elf.c (_bfd_elf_fixup_group_sections): Account for removed | |
322 | relocation sections. If size reduces to just the flag word, | |
323 | remove that too and mark with SEC_EXCLUDE. | |
324 | * elflink.c (bfd_elf_final_link): Strip empty group sections. | |
325 | ||
f2731e0c AM |
326 | 2018-02-13 Alan Modra <amodra@gmail.com> |
327 | ||
328 | PR 22829 | |
329 | * elf.c (assign_file_positions_for_non_load_sections): Rewrite | |
330 | PT_GNU_RELRO setup. | |
331 | ||
830db048 ZF |
332 | 2018-02-12 Zebediah Figura <z.figura12@gmail.com> |
333 | ||
334 | * i386msdos.c (msdos_mkobject); New function. | |
335 | (msdos_object_p): New function. | |
336 | (i386_msdos_vec): Use msdos_object_p as the check_format | |
337 | function. | |
338 | * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and | |
339 | NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and | |
340 | IMAGE_NT_SIGNATURE. | |
341 | * peXXigen.c: Likewise. | |
342 | * coff-ia64.c: Likewise. | |
343 | ||
94fe5757 NC |
344 | 2018-02-12 Nick Clifton <nickc@redhat.com> |
345 | ||
346 | * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant | |
347 | assignment. | |
0b8683b7 | 348 | * elf32-arc.c (elf_arc_relocate_section): Likewise. |
94fe5757 | 349 | |
d805612e | 350 | 2018-02-09 Eric Botcazou <ebotcazou@adacore.com> |
a8735c82 EB |
351 | |
352 | * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions. | |
353 | (sparc_elf_append_rela): Assert that there is enough room in section. | |
354 | (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting. | |
355 | (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak. | |
356 | (allocate_dynrelocs): Remove outdated comments and reorder conditions. | |
357 | For a symbol subject to a GOT relocation, reserve a slot in the | |
358 | relocation section if the symbol isn't dynamic and we are in PIC mode. | |
359 | (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation | |
360 | is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation. | |
361 | <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments. | |
362 | <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion. | |
363 | (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into | |
364 | resolved_to_zero. Do not generate a dynamic GOT relocation for an | |
365 | undefined weak symbol with non-default visibility. Remove superfluous | |
366 | 'else' and fix formatting. | |
367 | ||
3b4c3844 L |
368 | 2018-02-09 H.J. Lu <hongjiu.lu@intel.com> |
369 | ||
370 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle | |
371 | is_solaris. | |
372 | (i386_elf32_sol2_vec): Don't declare. | |
373 | (elf_i386_link_setup_gnu_properties): Also handle is_solaris. | |
374 | Don't set need_global_offset_table. | |
375 | (elf_i386_solaris_arch_bed): New. | |
376 | (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for | |
377 | Solaris. | |
378 | * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check | |
379 | target_os != is_nacl instead of target_os == is_normal. | |
380 | (x86_64_elf64_sol2_vec): Don't declare. | |
381 | (elf_x86_64_link_setup_gnu_properties): Check target_os != | |
382 | is_nacl instead of target_os == is_normal. Don't set | |
383 | need_global_offset_table. | |
384 | (elf_x86_64_solaris_arch_bed): New. | |
385 | (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for | |
386 | Solaris. | |
387 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep | |
388 | _GLOBAL_OFFSET_TABLE_ for Solaris. | |
389 | (_bfd_x86_elf_link_setup_gnu_properties): Don't copy | |
390 | need_global_offset_table. | |
391 | * elfxx-x86.h (elf_x86_target_os): Add is_solaris. | |
392 | (elf_x86_link_hash_table): Remove need_global_offset_table. | |
393 | (elf_x86_init_table): Likewise. | |
394 | ||
15b23f36 L |
395 | 2018-02-08 H.J. Lu <hongjiu.lu@intel.com> |
396 | ||
397 | * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields): | |
398 | Remove prototype. | |
399 | (i386_elf32_sol2_vec): Declared. | |
400 | (elf_i386_link_setup_gnu_properties): Set | |
401 | need_global_offset_table with info->output_bfd->xvec. | |
402 | * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields): | |
403 | Remove prototype. | |
404 | (x86_64_elf64_sol2_vec): Declared. | |
405 | (elf_x86_64_link_setup_gnu_properties): Set | |
406 | need_global_offset_table with info->output_bfd->xvec. | |
407 | ||
dc11dea2 L |
408 | 2018-02-08 H.J. Lu <hongjiu.lu@intel.com> |
409 | ||
410 | * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields): | |
411 | New prototype. | |
412 | (elf_i386_link_setup_gnu_properties): Set need_global_offset_table | |
413 | for Solaris. | |
414 | * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields): | |
415 | New prototype. | |
416 | (elf_x86_64_link_setup_gnu_properties): Set | |
417 | need_global_offset_table for Solaris. | |
418 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the | |
419 | unused _GLOBAL_OFFSET_TABLE_ for Solaris. | |
420 | (_bfd_x86_elf_link_setup_gnu_properties): Copy | |
421 | need_global_offset_table. | |
422 | * elfxx-x86.h (elf_x86_link_hash_table): Add | |
423 | need_global_offset_table. | |
424 | (elf_x86_init_table): Likewise. | |
425 | ||
3f48fe4a JW |
426 | 2018-02-08 Jim Wilson <jimw@sifive.com> |
427 | ||
428 | * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous | |
429 | change. | |
430 | ||
ef135d43 NC |
431 | 2018-02-08 Nick Clifton <nickc@redhat.com> |
432 | ||
433 | PR 22788 | |
434 | * elf.c (elf_parse_notes): Reject notes with excessuively large | |
435 | alignments. | |
436 | ||
407aa07c AM |
437 | 2018-02-07 Alan Modra <amodra@gmail.com> |
438 | ||
439 | Revert 2018-01-17 Alan Modra <amodra@gmail.com> | |
440 | * elf32-ppc.c: Remove speculation barrier support. | |
441 | * elf32-ppc.h: Likewise. | |
442 | * elf64-ppc.c: Likewise. | |
443 | * elf64-ppc.h: Likewise. | |
444 | ||
ed01220c JW |
445 | 2018-02-06 Jim Wilson <jimw@sifive.com> |
446 | ||
447 | * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used | |
448 | callback to report an error. | |
449 | ||
c20c30f6 EB |
450 | 2018-02-06 Eric Botcazou <ebotcazou@adacore.com> |
451 | ||
452 | PR ld/22263 | |
453 | * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic | |
454 | into call to !bfd_link_executable and tidy up. | |
455 | (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up. | |
456 | <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to | |
457 | !bfd_link_executable. | |
458 | <R_SPARC_TLS_IE_HI22>: Likewise. | |
459 | <GOT relocations>: Remove useless code, tidy and merge related blocks. | |
460 | <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to | |
461 | !bfd_link_executable. | |
462 | <R_SPARC_WPLT30>: Tidy up. | |
463 | (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to | |
464 | !bfd_link_executable. | |
465 | (allocate_dynrelocs): Likewise. | |
466 | (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up. | |
467 | <R_SPARC_TLS_GD_HI22>: Merge into... | |
468 | <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to | |
469 | sparc_elf_tls_transition and remove redundant code. | |
470 | <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to | |
471 | !bfd_link_executable. | |
472 | <R_SPARC_TLS_LDO_HIX22>: Likewise. | |
473 | <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up. | |
474 | <R_SPARC_TLS_LDM_CALL>: Likewise. | |
475 | <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up. | |
476 | <R_SPARC_TLS_GD_ADD>: Likewise. | |
477 | <R_SPARC_TLS_LDM_ADD>: Likewise. | |
478 | <R_SPARC_TLS_LDO_ADD>: Likewise. | |
479 | <R_SPARC_TLS_IE_LD>: Likewise. | |
480 | ||
46d09186 NC |
481 | 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com> |
482 | ||
483 | PR 22789 | |
484 | * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf | |
485 | functions failed to find the function name, try the generic elf | |
486 | find function instead. | |
487 | ||
8278e7ce SDJ |
488 | 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com> |
489 | ||
490 | * coff-rs6000.c (xcoff_write_archive_contents_old): Use | |
491 | 'memcpy' instead of 'strncpy' when writing the magic number. | |
492 | ||
64e234d4 NC |
493 | 2018-02-06 Nick Clifton <nickc@redhat.com> |
494 | ||
495 | PR 22794 | |
496 | * opncls.c (bfd_get_debug_link_info_1): Check the size of the | |
497 | section before attempting to read it in. | |
498 | (bfd_get_alt_debug_link_info): Likewise. | |
499 | ||
422f3d3d PC |
500 | 2018-02-06 Paul Carroll <pcarroll@codesourcery.com> |
501 | ||
502 | * bfd/dwarf2.c (find_abstract_name): Modified to return file and | |
503 | line information in addition to name, if they can be found. | |
504 | ||
279b2f94 RL |
505 | 2018-02-05 Renlin Li <renlin.li@arm.com> |
506 | ||
507 | PR ld/22764 | |
508 | * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the | |
509 | R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the | |
510 | check for writeable section as well. | |
511 | ||
cd048363 L |
512 | 2018-02-05 H.J. Lu <hongjiu.lu@intel.com> |
513 | ||
514 | PR ld/22782 | |
515 | * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if | |
516 | _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve | |
517 | undefined weak symbol to 0. | |
518 | * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced | |
519 | if _GLOBAL_OFFSET_TABLE_ is referenced. | |
520 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check | |
521 | got_referenced instead of ref_regular_nonweak. Remove the | |
522 | unused _GLOBAL_OFFSET_TABLE_ from symbol table. | |
523 | * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced. | |
524 | ||
e65b1a78 MR |
525 | 2018-02-05 Maciej W. Rozycki <macro@mips.com> |
526 | ||
527 | * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to | |
528 | initialize `hi_reloc'. | |
529 | ||
2d6dda71 MR |
530 | 2018-02-05 Maciej W. Rozycki <macro@mips.com> |
531 | ||
532 | * elfxx-mips.c (_bfd_mips_elf_section_processing): For | |
533 | SHT_MIPS_REGINFO sections don't assert the correct size and | |
534 | report an error instead. | |
535 | ||
75506100 MR |
536 | 2018-02-05 Maciej W. Rozycki <macro@mips.com> |
537 | ||
538 | * elf.c (_bfd_elf_write_object_contents): Propagate a failure | |
539 | status from `->elf_backend_section_processing'. | |
540 | ||
7f02625e JW |
541 | 2018-02-02 Jim Wilson <jimw@sifive.com> |
542 | ||
543 | PR ld/22756 | |
544 | * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info. | |
545 | If link_info->wrap_hash, check for a duplicate symbol and ignore. | |
546 | (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le): | |
547 | Pass new argument to riscv_relax_delete_bytes. | |
548 | (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove | |
549 | ATTRIBUTE_UNUSED from link_info parameter. | |
550 | ||
d830549d AM |
551 | 2018-02-02 Alan Modra <amodra@gmail.com> |
552 | ||
553 | * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops | |
554 | emitted for toc sequence optimization. Set and use "howto" later. | |
555 | ||
e99955cd SM |
556 | 2018-02-01 Simon Marchi <simon.marchi@ericsson.com> |
557 | ||
558 | * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer | |
559 | arithmetic on NULL pointer. | |
560 | * elflink.c (_bfd_elf_archive_symbol_lookup, | |
561 | elf_link_add_archive_symbols): Likewise. | |
562 | ||
bf3077a6 MM |
563 | 2018-01-31 Michael Matz <matz@suse.de> |
564 | ||
565 | * elflink.c (bfd_elf_define_start_stop): Fix check of | |
566 | def_dynamic. | |
567 | ||
823143c6 L |
568 | 2018-01-31 H.J. Lu <hongjiu.lu@intel.com> |
569 | ||
570 | PR ld/21964 | |
571 | * elflink.c (bfd_elf_define_start_stop): Check if __start and | |
572 | __stop symbols are referenced by shared objects. | |
573 | ||
76cb3a89 AM |
574 | 2018-01-30 Alan Modra <amodra@gmail.com> |
575 | ||
576 | PR 22758 | |
577 | * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new | |
578 | segment when demand paged with lma on the same page. Test this | |
579 | before load/non-load, executable/non-executable, | |
580 | writable/non-writable tests and simplify. Delete bogus relro | |
581 | condition in writable/non-writable test. Delete outdated | |
582 | comment. Formatting. | |
583 | ||
36b8fda5 AM |
584 | 2018-01-30 Alan Modra <amodra@gmail.com> |
585 | ||
586 | * elflink.c (bfd_elf_define_start_stop): Make __start and __stop | |
587 | symbols dynamic. | |
588 | ||
eb77f6a4 AM |
589 | 2018-01-29 Alan Modra <amodra@gmail.com> |
590 | ||
591 | PR 22741 | |
592 | * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in | |
593 | range before converting to a symbol table pointer. | |
594 | ||
7d73b4c8 NC |
595 | 2018-01-27 Nick Clifton <nickc@redhat.com> |
596 | ||
597 | * po/ru.po: Updated Russian translation. | |
598 | ||
32253bb7 AM |
599 | 2018-01-26 Alan Modra <amodra@gmail.com> |
600 | ||
601 | * elflink.c (bfd_elf_define_start_stop): Override symbols when | |
602 | they are defined dynamically. | |
603 | ||
ba21f564 AM |
604 | 2018-01-26 Alan Modra <amodra@gmail.com> |
605 | ||
606 | * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when | |
607 | .branch_lt changes size. | |
608 | ||
38e64b0e AM |
609 | 2018-01-25 Alan Modra <amodra@gmail.com> |
610 | ||
611 | PR 22746 | |
612 | * elfcode.h (elf_object_p): Avoid integer overflow. | |
613 | ||
bb363086 EB |
614 | 2018-01-25 Eric Botcazou <ebotcazou@adacore.com> |
615 | ||
616 | PR ld/22727 | |
617 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>: | |
618 | Do a mere lookup of the __tls_get_addr symbol instead of adding it. | |
619 | ||
620 | Revert | |
621 | 2017-10-19 H.J. Lu <hongjiu.lu@intel.com> | |
622 | ||
623 | PR ld/22263 | |
624 | * elfxx-sparc.c (sparc_elf_tls_transition): Replace | |
625 | bfd_link_pic with !bfd_link_executable, !bfd_link_pic with | |
626 | bfd_link_executable for TLS check. | |
627 | (_bfd_sparc_elf_check_relocs): Likewise. | |
628 | (allocate_dynrelocs): Likewise. | |
629 | (_bfd_sparc_elf_relocate_section): Likewise. | |
630 | ||
1daf502a RL |
631 | 2018-01-24 Renlin Li <renlin.li@arm.com> |
632 | ||
633 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for | |
634 | BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, | |
635 | BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, | |
636 | BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, | |
637 | BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
638 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
639 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
640 | ||
32247401 RL |
641 | 2018-01-24 Renlin Li <renlin.li@arm.com> |
642 | ||
643 | * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0, | |
644 | BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1, | |
645 | BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2, | |
646 | BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
647 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for | |
648 | BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, | |
649 | BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, | |
650 | BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, | |
651 | BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
652 | * bfd-in2.h: Regenerate. | |
653 | * libbfd.h: Regenerate. | |
654 | ||
1c5e4ee9 MR |
655 | 2018-01-23 Maciej W. Rozycki <macro@mips.com> |
656 | ||
657 | * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale | |
658 | `mips_elf32_section_processing' comment reference. | |
659 | ||
8a1b824a L |
660 | 2018-01-20 H.J. Lu <hongjiu.lu@intel.com> |
661 | ||
662 | PR ld/22721 | |
663 | * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the | |
664 | versioned __tls_get_addr symbol. | |
665 | ||
ee3fbc1e NC |
666 | 2018-01-19 Nick Clifton <nickc@redhat.com> |
667 | ||
668 | * po/fr.po: Updated French translation. | |
669 | ||
691d2e9a AM |
670 | 2018-01-18 Alan Modra <amodra@gmail.com> |
671 | ||
672 | * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink. | |
673 | * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align. | |
674 | (ppc64_elf_build_stubs): Likewise. | |
675 | ||
4bfce128 NC |
676 | 2018-01-17 Nick Clifton <nickc@redhat.com> |
677 | ||
678 | * po/ru.po: Updated Russian translation. | |
679 | * po/uk/po: Updated Ukranian translation. | |
680 | ||
c75bc4f7 AM |
681 | 2018-01-17 Alan Modra <amodra@gmail.com> |
682 | ||
683 | * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning. | |
684 | ||
1be5d8d3 AM |
685 | 2018-01-17 Alan Modra <amodra@gmail.com> |
686 | ||
687 | * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier. | |
688 | (CRSETEQ, BEQCTRM): Define. | |
689 | (is_nonpic_glink_stub): Don't check bctr. | |
690 | (ppc_elf_link_hash_table_create): Init new ppc_elf_params field. | |
691 | (ppc_elf_relax_section): Size speculation barrier. | |
692 | (output_bctr): New function. | |
693 | (write_glink_stub): Use output_bctr. | |
694 | (ppc_elf_relocate_section): Use output_bctr for long branch stub. | |
695 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
696 | (ppc_elf_finish_dynamic_sections): Use output_bctr. | |
697 | * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps. | |
698 | * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define. | |
699 | (GLINK_PLTRESOLVE_SIZE): Size speculation barrier. | |
700 | (size_global_entry_stubs): Handle speculation barrier sizing. | |
701 | (plt_stub_size): Likewise. | |
702 | (output_bctr): New function. | |
703 | (build_plt_stub, build_tls_get_addr_stub): Output speculation | |
704 | barrier. | |
705 | (ppc_build_one_stub): Likewise for ppc_stub_plt_branch. | |
706 | (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch. | |
707 | (build_global_entry_stubs): Output speculation barrier. | |
708 | (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub. | |
709 | * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps. | |
710 | ||
9e390558 AM |
711 | 2018-01-17 Alan Modra <amodra@gmail.com> |
712 | ||
713 | * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle | |
714 | __tls_get_addr_opt, and alignment sizing. | |
715 | (TLS_GET_ADDR_GLINK_SIZE): Delete. | |
716 | (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE. | |
717 | (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6, | |
718 | or 8 insns. | |
719 | (ppc_elf_link_hash_table_create): Init new ppc_elf_params field. | |
720 | (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE. | |
721 | (ppc_elf_size_dynamic_sections): Likewise. Size branch table | |
722 | by PLT reloc count. | |
723 | (write_glink_stub): Handle __tls_get_addr_opt stub. | |
724 | Pad out to size given by GLINK_ENTRY_SIZE. | |
725 | (ppc_elf_relocate_section): Adjust write_glink_stub call. | |
726 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
727 | (ppc_elf_finish_dynamic_sections): Write PLTresolve without using | |
728 | insn array since so many need rewriting. | |
729 | * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align. | |
730 | * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from | |
731 | GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without | |
732 | nops. Adjust all uses. | |
733 | (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE | |
734 | in glink_vma calculation. | |
735 | (struct ppc_link_hash_table): Add global_entry section pointer. | |
736 | (create_linkage_sections): Create separate section for global | |
737 | entry stubs. | |
738 | (PPC_LO, PPC_HI, PPC_HA): Move earlier. | |
739 | (size_global_entry_stubs): Handle sizing for aligned stubs. | |
740 | (ppc64_elf_size_dynamic_sections): Handle global_entry alloc, | |
741 | and don't stash end of glink branch table in rawsize. | |
742 | (ppc_build_one_stub): Rewrite stub size calculations. | |
743 | (build_global_entry_stubs): Use new section. | |
744 | (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops. | |
745 | Build lazy link stubs out to end of section. Build global entry | |
746 | stubs in new section. | |
747 | ||
616dcb87 NC |
748 | 2018-01-15 Nick Clifton <nickc@redhat.com> |
749 | ||
750 | * po/uk.po: Updated Ukranian translation. | |
751 | ||
3957a496 NC |
752 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
753 | ||
754 | * po/bfd.pot: Regenerated. | |
755 | ||
769c7ea5 NC |
756 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
757 | ||
758 | * version.m4: Bump version to 2.30.51 | |
759 | * configure: Regenerate. | |
760 | ||
faf766e3 NC |
761 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
762 | ||
763 | 2.30 branch created. | |
764 | ||
564e11c9 JW |
765 | 2018-01-12 Jens Widell <jl@opera.com> |
766 | ||
767 | * elf.c (setup_group): Optimize search for group by remembering | |
768 | last found group and restarting search at that index. | |
769 | * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field. | |
770 | ||
a78eea16 AM |
771 | 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net> |
772 | ||
773 | * aoutx.h (aout_link_check_ar_symbols): Remove default and handle | |
774 | bfd_link_common_skip_none in switch. | |
775 | ||
87e79a65 AM |
776 | 2018-01-12 Alan Modra <amodra@gmail.com> |
777 | ||
778 | PR ld/22649 | |
779 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic | |
780 | references on forced local symbols. | |
781 | ||
58807c48 VI |
782 | 2018-01-12 Vlad Ivanov <vlad@ivanov.email> |
783 | ||
784 | * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when | |
785 | .reginfo section has wrong size. | |
786 | ||
2888249f L |
787 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
788 | ||
789 | PR ld/22393 | |
790 | * elf.c (_bfd_elf_map_sections_to_segments): When generating | |
791 | separate code and read-only data LOAD segments, create a new | |
792 | LOAD segment if the previous section contains text and the | |
793 | current section doesn't or vice versa. Don't put a writable | |
794 | section in a read-only segment if there is a RELRO segment. | |
795 | ||
d664fd41 L |
796 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
797 | ||
798 | PR ld/22649 | |
799 | * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic | |
800 | references on forced local symbols. | |
801 | ||
8b6f4cd3 L |
802 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
803 | ||
804 | PR ld/22677 | |
805 | * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY, | |
806 | INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section. | |
807 | ||
6cef73f9 KLC |
808 | 2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
809 | ||
810 | PR 22662 | |
811 | * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error. | |
812 | ||
ddb2bbcf JB |
813 | 2018-01-03 John Baldwin <jhb@FreeBSD.org> |
814 | ||
815 | * elf.c (elfcore_grok_freebsd_note): Handle | |
816 | NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and | |
817 | NT_FREEBSD_PROCSTAT_VMMAP. | |
818 | ||
219d1afa AM |
819 | 2018-01-03 Alan Modra <amodra@gmail.com> |
820 | ||
821 | Update year range in copyright notice of all files. | |
822 | ||
1e563868 | 823 | For older changes see ChangeLog-2017 |
3499769a | 824 | \f |
1e563868 | 825 | Copyright (C) 2018 Free Software Foundation, Inc. |
3499769a AM |
826 | |
827 | Copying and distribution of this file, with or without modification, | |
828 | are permitted in any medium without royalty provided the copyright | |
829 | notice and this notice are preserved. | |
830 | ||
831 | Local Variables: | |
832 | mode: change-log | |
833 | left-margin: 8 | |
834 | fill-column: 74 | |
835 | version-control: never | |
836 | End: |