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