Commit | Line | Data |
---|---|---|
40d85a7f MK |
1 | 2016-05-30 Marcin KoĆcielnicki <koriakin@0x04.net> |
2 | ||
3 | PR/19960 | |
4 | * s390.cc (Target_s390::ss_code_st_r14): Removed. | |
5 | (Target_s390::ss_code_l_r14): Removed. | |
6 | (Target_s390::ss_code_ear): Removed. | |
7 | (Target_s390::ss_code_c): Removed. | |
8 | (Target_s390::ss_match_st_r14): New function. | |
9 | (Target_s390::ss_match_l_r14): New function. | |
10 | (Target_s390::ss_match_mcount): Call ss_match_{l,st}_r14 instead | |
11 | of matching code directly. | |
12 | (Target_s390::ss_match_ear): New function. | |
13 | (Target_s390::ss_match_c): New function. | |
14 | (Target_s390::do_calls_non_split): Call ss_match_{ear,c} instead | |
15 | of matching code directly. | |
16 | ||
6eeb0170 CC |
17 | 2016-05-19 Cary Coutant <ccoutant@gmail.com> |
18 | ||
19 | PR gold/19823 | |
20 | * copy-relocs.cc (Copy_relocs::make_copy_reloc): Add object | |
21 | parameter; check for protected symbol. | |
22 | * copy-relocs.h (Copy_relocs::make_copy_reloc): Add object parameter. | |
23 | * mips.cc (Mips_copy_relocs): Adjust call to make_copy_reloc. | |
24 | * symtab.cc (Symbol::init_fields): Initialize is_protected_. | |
25 | (Symbol_table::add_from_dynobj): Mark protected symbols. | |
26 | * symtab.h (Symbol::is_protected): New method. | |
27 | (Symbol::set_is_protected): New method. | |
28 | (Symbol::is_protected_): New data member. | |
29 | ||
30 | * testsuite/Makefile.am (copy_test_protected): New test. | |
31 | * testsuite/Makefile.in: Regenerate. | |
32 | * testsuite/copy_test.cc (main): Add legal reference to protected | |
33 | symbol. | |
34 | * testsuite/copy_test_v1.cc (main): Likewise. | |
35 | * testsuite/copy_test_2.cc (ip): Add protected symbol. | |
36 | * testsuite/copy_test_protected.cc: New test source file. | |
37 | * testsuite/copy_test_protected.sh: New test script. | |
38 | ||
15eb1beb VR |
39 | 2016-05-19 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com> |
40 | ||
41 | * mips.cc (Mips_got_entry::Mips_got_entry): Remove object argument | |
42 | for global got symbols, and set addend to 0. | |
43 | (Mips_got_entry::hash): Change hash algorithm. | |
44 | (Mips_got_entry::equals): Refactor. | |
45 | (Mips_got_entry::object): Return input object for local got symbols | |
46 | from union d. | |
47 | (Mips_got_entry::addend): Change return of the relocation addend. | |
48 | (Mips_got_entry::addend_): Move from union d. | |
49 | (Mips_got_entry::object_): Move into union d. | |
50 | (class Mips_symbol_hash): New class. | |
51 | (Mips_got_info::Global_got_entry_set): New type. | |
52 | (Mips_got_info::global_got_symbols): Change return type to | |
53 | Global_got_entry_set. | |
54 | (Mips_got_info::global_got_symbols_): Change type to | |
55 | Global_got_entry_set. | |
56 | (Mips_symbol::hash): New method. | |
57 | (Mips_output_data_la25_stub::symbols_): Change type to std::vector. | |
58 | (Mips_output_data_mips_stubs::Mips_stubs_entry_set): New type. | |
59 | (Mips_output_data_mips_stubs::symbols_): Change type to | |
60 | Mips_stubs_entry_set. | |
61 | (Mips_got_info::record_global_got_symbol): Don't pass object | |
62 | argument when creating global got symbol. | |
63 | (Mips_got_info::record_got_entry): Remove find before inserting | |
64 | got entries. | |
65 | (Mips_got_info::add_reloc_only_entries): Change type of iterator | |
66 | to Global_got_entry_set. | |
67 | (Mips_got_info::count_got_symbols): Likewise. | |
68 | (Mips_output_data_la25_stub::create_la25_stub): Use push_back | |
69 | for adding entries to symbols_. | |
70 | (Mips_output_data_la25_stub::do_write): Change type of iterator | |
71 | to std::vector. | |
72 | (Mips_output_data_mips_stubs::set_lazy_stub_offsets): Change type | |
73 | of iterator to Mips_stubs_entry_set. | |
74 | (Mips_output_data_mips_stubs::set_needs_dynsym_value): Likewise. | |
75 | (Mips_output_data_mips_stubs::do_write): Likewise. | |
76 | ||
5c28a503 HS |
77 | 2016-05-06 Han Shen <shenhan@google.com> |
78 | ||
79 | PR gold/19987. | |
80 | ||
81 | * aarch64-reloc.def: New relocation type. | |
82 | * aarch64.cc (AArch64_relocate_functions::Page): Changed to public. | |
83 | (Target_aarch64::Scan::local): Add R_AARCH64_LD64_GOTPAGE_LO15. | |
84 | (Target_aarch64::Scan::global): Add R_AARCH64_LD64_GOTPAGE_LO15. | |
85 | (Target_aarch64::Relocate::relocate): Implement R_AARCH64_LD64_GOTPAGE_LO15. | |
86 | ||
786a118c NC |
87 | 2016-04-28 Nick Clifton <nickc@redhat.com> |
88 | ||
89 | * po/zh_CN.po: Updated Chinese (simplified) translation. | |
90 | ||
6fd8e7c2 L |
91 | 2016-04-15 H.J. Lu <hongjiu.lu@intel.com> |
92 | ||
93 | * Makefile.in: Regenerated with automake 1.11.6. | |
94 | * aclocal.m4: Likewise. | |
95 | * testsuite/Makefile.in: Likewise. | |
96 | ||
b60ecbc6 CC |
97 | 2016-03-30 Cary Coutant <ccoutant@gmail.com> |
98 | ||
99 | PR gold/16979 | |
100 | * symtab.cc (Symbol_table::define_default_version): Check for case | |
101 | where symbols are both in different shared objects. | |
102 | ||
ed700649 CC |
103 | 2016-03-27 Cary Coutant <ccoutant@gmail.com> |
104 | ||
105 | PR gold/16111 | |
106 | * i386.cc (Target_i386): Add check for fully-resolved symbol for | |
107 | R_386_GOTOFF. | |
108 | ||
9780e045 NC |
109 | 2016-03-22 Nick Clifton <nickc@redhat.com> |
110 | ||
111 | * configure: Regenerate. | |
112 | ||
648c5cbb CC |
113 | 2016-03-21 Cary Coutant <ccoutant@gmail.com> |
114 | ||
115 | PR gold/19842 | |
116 | * errors.cc (Errors::undefined_symbol): Add info message when | |
117 | symbol should have been provided by a plugin. | |
118 | * target-reloc.h (issue_undefined_symbol_error): Check for | |
119 | placeholder symbols defined in discarded sections. | |
120 | * testsuite/Makefile.am (plugin_test_9b): New test case. | |
121 | * testsuite/Makefile.in: Regenerate. | |
122 | * testsuite/plugin_test_9b_elf.cc: New test source file. | |
123 | * testsuite/plugin_test_9b_ir.cc: New test source file. | |
124 | ||
698400bf CC |
125 | 2016-03-20 Cary Coutant <ccoutant@gmail.com> |
126 | ||
127 | PR gold/19002 | |
128 | * ehframe.cc (Eh_frame::read_fde): Check for dropped functions. | |
129 | * testsuite/Makefile.am (eh_test_2): New test. | |
130 | * testsuite/Makefile.in: Regenerate. | |
131 | * testsuite/eh_test_2.sh: New test script. | |
132 | * testsuite/eh_test_a.cc (bar): Make it comdat. | |
133 | * testsuite/eh_test_b.cc (bar): Add a duplicate copy. | |
134 | ||
01b84e25 VR |
135 | 2016-03-18 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com> |
136 | ||
137 | * mips.cc (Mips_relobj::is_n64_): Remove. | |
138 | (Target_mips::ei_class_): Likewise. | |
139 | (Mips_relobj::is_newabi): Call methods. | |
140 | (Mips_relobj::is_n64): Change checking for N64 ABI. | |
141 | (Target_mips::is_output_n64): Likewise. | |
142 | (Target_mips::merge_processor_specific_flags): Remove ei_class | |
143 | argument, and remove comparing ei_class. | |
144 | (Target_mips::do_adjust_elf_header): Remove setting EI_CLASS field | |
145 | of the ELF header. | |
146 | (Target_mips::do_finalize_sections): Don't pass ei_class argument | |
147 | to merge_processor_specific_flags. | |
148 | (Target_mips::elf_mips_abi_name): Remove ei_class argument, and | |
149 | change checking for N64 ABI. | |
150 | ||
47a9f4fc VR |
151 | 2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com> |
152 | ||
153 | * mips.cc (enum Special_relocation_symbol): New enum type. | |
154 | (is_readonly_section): New function. | |
155 | (eh_reloc): Likewise. | |
156 | (Mips_got_entry::is_section_symbol_): New member. | |
157 | (Mips_got_entry::is_section_symbol): New method. | |
158 | (Mips_got_info::record_local_got_symbol): Add is_section_symbol | |
159 | argument. | |
160 | (Mips_relobj::mips_elf_options_section_name): New method. | |
161 | (Mips_output_data_got::record_local_got_symbol): Add | |
162 | is_section_symbol argument, and pass it to | |
163 | Mips_got_info::record_local_got_symbol. | |
164 | (Mips_output_data_got::got_offset): Add addend argument, and pass | |
165 | it to Relobj::local_got_offset. | |
166 | (struct Mips_output_reloc_writer): New type. | |
167 | (class Mips_output_data_reloc): New class. | |
168 | (Mips_output_data_plt::Reloc_section): Change type to | |
169 | Mips_output_data_reloc. | |
170 | (Target_mips::Reloc_section): Likewise. | |
171 | (Mips_reloc_types::get_r_addend): Remove unsigned from return type. | |
172 | (Mips_classify_reloc::get_r_type2): New method. | |
173 | (Mips_classify_reloc::get_r_type3): Likewise. | |
174 | (Mips_classify_reloc::get_r_ssym): Likewise. | |
175 | (Target_mips::Reloca_section): Remove. | |
176 | (Relocate::should_apply_static_reloc): Rename from | |
177 | should_apply_r_mips_32_reloc. | |
178 | (Target_mips::copy_reloc): Replace Reltype parameter with r_type | |
179 | and r_offset. | |
180 | (Mips_relocate_functions::Valtype): New type. | |
181 | (Mips_relocate_functions::Valtype64): New type. | |
182 | (Mips_relocate_functions::check_overflow): New method. | |
183 | (Mips_relocate_functions::mips_reloc_unshuffle): Move to public | |
184 | interface. | |
185 | (Mips_relocate_functions::mips_reloc_shuffle): Likewise. | |
186 | (Mips_relocate_functions::rel16): Add support for resolving | |
187 | relocations for Mips64. | |
188 | (Mips_relocate_functions::rel32): Likewise. | |
189 | (Mips_relocate_functions::reljalr): Likewise. | |
190 | (Mips_relocate_functions::relpc32): Likewise. | |
191 | (Mips_relocate_functions::rel26): Likewise. | |
192 | (Mips_relocate_functions::relpc16): Likewise. | |
193 | (Mips_relocate_functions::relmicromips_pc7_s1): Likewise. | |
194 | (Mips_relocate_functions::relmicromips_pc10_s1): Likewise. | |
195 | (Mips_relocate_functions::relmicromips_pc16_s1): Likewise. | |
196 | (Mips_relocate_functions::do_relhi16): Likewise. | |
197 | (Mips_relocate_functions::do_relgot16_local): Likewise. | |
198 | (Mips_relocate_functions::rello16): Likewise. | |
199 | (Mips_relocate_functions::relgot): Likewise. | |
200 | (Mips_relocate_functions::relgotpage): Likewise. | |
201 | (Mips_relocate_functions::relgotofst): Likewise. | |
202 | (Mips_relocate_functions::relgot_hi16): Likewise. | |
203 | (Mips_relocate_functions::relgot_lo16): Likewise. | |
204 | (Mips_relocate_functions::relgprel): Likewise. | |
205 | (Mips_relocate_functions::relgprel32): Likewise. | |
206 | (Mips_relocate_functions::tlsrelhi16): Likewise. | |
207 | (Mips_relocate_functions::tlsrello16): Likewise. | |
208 | (Mips_relocate_functions::tlsrel32): Likewise. | |
209 | (Mips_relocate_functions::relsub): Likewise. | |
210 | (Mips_relocate_functions::releh): New method. | |
211 | (Mips_relocate_functions::rel64): Likewise. | |
212 | (Mips_got_info::record_local_got_symbol): Add is_section_symbol and | |
213 | pass it to Mips_got_entry. | |
214 | (Mips_got_info::add_local_entries): Pass addend argument | |
215 | to code functions, and for STT_SECTION symbols call | |
216 | add_symbolless_local_addend. | |
217 | (Mips_got_info::add_tls_entries): Pass addend argument to code | |
218 | functions. | |
219 | (Mips_relobj::do_read_symbols): Read gp value that was used to | |
220 | create object. | |
221 | (Mips_output_data_plt::plt_entry): Remove opcode from l[wd] | |
222 | instruction. Opcode for instruction will be selected later. | |
223 | (Target_mips::gc_process_relocs): Add case for SHT_RELA. | |
224 | (Target_mips::scan_relocatable_relocs): Likewise. | |
225 | (Target_mips::emit_relocs_scan): Likewise. | |
226 | (Target_mips::relocate_relocs): Likewise. | |
227 | (Target_mips::do_finalize_sections): Skip objects for merging | |
228 | processor specific flags in which all input sections will be | |
229 | discarded. | |
230 | (mips_get_size_for_reloc): Add case for R_MIPS_EH. | |
231 | (Target_mips::Scan::get_reference_flags): Likewise. | |
232 | (Target_mips::relocate_special_relocatable): Call rel26 method with | |
233 | calculate_only and calculated_value arguments. | |
234 | (Target_mips::Scan::local): Add case for R_MIPS_EH. Don't create a | |
235 | dynamic relocation against a readonly sections, and pass | |
236 | is_section_symbol to Mips_got_info::record_local_got_symbol. | |
237 | (Target_mips::Scan::global): Add case for R_MIPS_EH. Don't create a | |
238 | dynamic relocation against a readonly sections, and pass r_type | |
239 | and r_offset to Target_mips::copy_reloc. | |
240 | (Target_mips::Relocate::relocate): Add support for resolving | |
241 | relocations for Mips64. | |
242 | (Target_mips::mips_info): Add case for Mips64 default dynamic | |
243 | linker name. | |
244 | (Target_selector_mips): Correct emulation names. | |
245 | ||
1a08ae21 VR |
246 | 2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com> |
247 | ||
248 | * mips.cc (class Mips_output_data_la25_stub): Add | |
249 | do_print_to_mapfile function. | |
250 | ||
c2fa9ced VR |
251 | 2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com> |
252 | ||
253 | * mips.cc (Mips_classify_reloc::put_r_info): Call 32bit version of | |
254 | elf_r_info. | |
255 | ||
fd91f002 L |
256 | 2016-03-09 H.J. Lu <hongjiu.lu@intel.com> |
257 | ||
258 | * testsuite/plugin_layout_with_alignment.cc: Renamed to .. | |
259 | * testsuite/plugin_layout_with_alignment.c: This. | |
260 | * testsuite/Makefile.am (plugin_layout_with_alignment.o): Updated. | |
261 | (plugin_layout_with_alignment): Likewise. | |
262 | * testsuite/Makefile.in: Regenerated. | |
263 | ||
7ff6eb49 CC |
264 | 2016-03-08 Cary Coutant <ccoutant@gmail.com> |
265 | ||
266 | PR 19751 | |
267 | * testsuite/Makefile.am (retain_symbols_file_test): Remove check | |
268 | for constructor. | |
269 | * testsuite/Makefile.in: Regenerate. | |
270 | * testsuite/dynamic_list.sh: Likewise. | |
271 | * testsuite/retain_symbols_file_test.sh: Likewise. | |
272 | ||
202736be CC |
273 | 2016-03-08 Cary Coutant <ccoutant@gmail.com> |
274 | ||
275 | PR 19751 | |
276 | * arm.cc (Reloc_stub::Key::name): Add unused attribute. | |
277 | * dirsearch.cc (Dir_caches::~Dir_caches): Likewise. | |
278 | ||
c32482d6 CC |
279 | 2016-03-08 Cary Coutant <ccoutant@gmail.com> |
280 | Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com> | |
281 | ||
282 | * output.cc (Output_reloc_writer): New type. | |
283 | (Output_data_reloc_base::do_write): Move implementation to template | |
284 | in output.h and replace with invocation of template. | |
285 | * output.h (Output_file): Move to top of file. | |
286 | (Output_reloc::get_symbol_index): Move to public interface. | |
287 | (Output_reloc::get_address): Likewise. | |
288 | (Output_data_reloc_base::do_write_generic): New function template. | |
289 | ||
8d04e81d CC |
290 | 2016-03-04 Cary Coutant <ccoutant@gmail.com> |
291 | ||
292 | PR gold/19019 | |
293 | PR gold/19763 | |
294 | * symtab.cc: Instantiate Sized_symbol::init_constant and | |
295 | Sized_symbol::init_undefined. | |
296 | ||
dc1c8a16 CC |
297 | 2016-03-03 Cary Coutant <ccoutant@gmail.com> |
298 | ||
299 | PR gold/19019 | |
300 | * layout.h (Layout::add_target_specific_dynamic_tag): New function. | |
301 | * layout.cc (Layout::add_target_specific_dynamic_tag): New function. | |
302 | * mips.cc (Target_mips::make_symbol): Adjust function signature. | |
303 | * sparc.cc (Target_sparc::Target_sparc): Initialize register_syms_. | |
304 | (Target_sparc::do_is_defined_by_abi): Remove test for | |
305 | STT_SPARC_REGISTER. | |
306 | (Target_sparc::Register_symbol): New struct type. | |
307 | (Target_sparc::register_syms_): New data member. | |
308 | (Target_sparc<64, true>::sparc_info): Set has_make_symbol to true. | |
309 | (Target_sparc::make_symbol): New function. | |
310 | (Target_sparc::do_finalize_sections): Add register symbols and new | |
311 | dynamic table entries. | |
312 | * symtab.h (Sized_symbol::init_undefined): Add value parameter. | |
313 | (Symbol_table::add_target_global_symbol): New function. | |
314 | (Symbol_table::target_symbols_): New data member. | |
315 | * symtab.cc (Sized_symbol::init_undefined): Add value parameter. | |
316 | (Symbol_table::Symbol_table): Initialize target_symbols_. | |
317 | (Symbol_table::add_from_object): Pass additional parameters to | |
318 | Target::make_symbol. | |
319 | (Symbol_table::define_special_symbol): Likewise. | |
320 | (Symbol_table::add_undefined_symbol_from_command_line): Pass 0 for | |
321 | undefined symbol value. | |
322 | (Symbol_table::set_dynsym_indexes): Process target-specific symbols. | |
323 | (Symbol_table::sized_finalize): Likewise. | |
324 | (Symbol_table::sized_write_globals): Likewise. | |
325 | * target.h (Sized_target::make_symbol): Add name, st_type, object, | |
326 | st_shndx, and value parameters. | |
327 | ||
9b738e36 | 328 | 2016-03-03 Rafael Ăvila de EspĂndola <rafael.espindola@gmail.com> |
a06ed37d RĂE |
329 | |
330 | * plugin.cc (do_should_include_member): Ignore LDPK_UNDEF and | |
331 | LDPK_WEAKUNDEF symbols. | |
332 | ||
3f1f41f5 L |
333 | 2016-03-03 Than McIntosh <thanm@google.com> |
334 | ||
335 | * plugin.cc (Plugin::load): Include hooks for get_input_section_size | |
336 | and get_input_section_alignment in transfer vector. | |
337 | (get_input_section_alignment): New function. | |
338 | (get_input_section_size): New function. | |
339 | * testsuite/Makefile.am: Add plugin_layout_with_alignment.sh test. | |
340 | * testsuite/Makefile.in: [Regenerate.] | |
341 | * testsuite/plugin_section_alignment.cc: New test file. | |
342 | * testsuite/plugin_layout_with_alignment.cc: New test file. | |
343 | * testsuite/plugin_layout_with_alignment.sh: New test file. | |
344 | ||
9b738e36 | 345 | 2016-03-03 Evgenii Stepanov <eugenis@google.com> |
95ecdfbf ES |
346 | |
347 | * plugin.h (Pluginobj::get_symbol_resolution_info): Add version | |
348 | parameter. | |
349 | * plugin.cc (get_symbols_v3): New function. | |
350 | (Plugin::load): Add LDPT_GET_SYMBOLS_V3. | |
351 | (Pluginobj::get_symbol_resolution_info): Return LDPS_NO_SYMS when using | |
352 | new version. | |
353 | ||
fc5a9bd5 CC |
354 | 2016-02-26 Egor Kochetov <egor.kochetov@intel.com> |
355 | Cary Coutant <ccoutant@gmail.com> | |
356 | ||
357 | PR gold/19735 | |
358 | * ehframe.h (Cie::fde_encoding): New method. | |
359 | * ehframe.cc (Eh_frame::read_fde): Discard FDEs for zero-length | |
360 | address ranges. | |
361 | ||
1cd17042 L |
362 | 2016-02-15 H.J. Lu <hongjiu.lu@intel.com> |
363 | ||
364 | * testsuite/Makefile.am (x86_64_mov_to_lea5.o): Pass | |
365 | -mrelax-relocations=yes to $(TEST_AS). | |
366 | (x86_64_mov_to_lea6.o): Likewise. | |
367 | (x86_64_overflow_pc32.o): Remove duplicated target. | |
368 | * testsuite/Makefile.in: Regenerated. | |
369 | ||
2b63aca3 MK |
370 | 2016-02-15 Marcin KoĆcielnicki <koriakin@0x04.net> |
371 | ||
372 | * s390.cc (Target_s390::match_view_u): New helper method. | |
373 | (Target_s390::do_is_call_to_non_split): New method. | |
374 | (Target_s390::ss_code_st_r14): New const. | |
375 | (Target_s390::ss_code_l_r14): New const. | |
376 | (Target_s390::ss_code_bras_8): New const. | |
377 | (Target_s390::ss_code_l_basr): New const. | |
378 | (Target_s390::ss_code_a_basr): New const. | |
379 | (Target_s390::ss_code_ear): New const. | |
380 | (Target_s390::ss_code_c): New const. | |
381 | (Target_s390::ss_code_larl): New const. | |
382 | (Target_s390::ss_code_brasl): New const. | |
383 | (Target_s390::ss_code_jg): New const. | |
384 | (Target_s390::ss_code_jgl): New const. | |
385 | (Target_s390::ss_match_mcount): New helper method. | |
386 | (Target_s390::ss_match_l): New helper method. | |
387 | (Target_s390::ss_match_ahi): New helper method. | |
388 | (Target_s390::ss_match_alfi): New helper method. | |
389 | (Target_s390::ss_match_cr): New helper method. | |
390 | (Target_s390::do_calls_non_split): New method. | |
391 | * testsuite/Makefile.am: Added new tests. | |
392 | * testsuite/Makefile.in: Regenerate. | |
393 | * testsuite/split_s390.sh: New test. | |
394 | * testsuite/split_s390_1_a1.s: New test. | |
395 | * testsuite/split_s390_1_a2.s: New test. | |
396 | * testsuite/split_s390_1_n1.s: New test. | |
397 | * testsuite/split_s390_1_n2.s: New test. | |
398 | * testsuite/split_s390_1_z1.s: New test. | |
399 | * testsuite/split_s390_1_z2.s: New test. | |
400 | * testsuite/split_s390_1_z3.s: New test. | |
401 | * testsuite/split_s390_1_z4.s: New test. | |
402 | * testsuite/split_s390_2_ns.s: New test. | |
403 | * testsuite/split_s390_2_s.s: New test. | |
404 | * testsuite/split_s390x_1_a1.s: New test. | |
405 | * testsuite/split_s390x_1_a2.s: New test. | |
406 | * testsuite/split_s390x_1_n1.s: New test. | |
407 | * testsuite/split_s390x_1_n2.s: New test. | |
408 | * testsuite/split_s390x_1_z1.s: New test. | |
409 | * testsuite/split_s390x_1_z2.s: New test. | |
410 | * testsuite/split_s390x_1_z3.s: New test. | |
411 | * testsuite/split_s390x_1_z4.s: New test. | |
412 | * testsuite/split_s390x_2_ns.s: New test. | |
413 | * testsuite/split_s390x_2_s.s: New test. | |
414 | ||
e3dbf582 HS |
415 | 2016-02-11 Rahul Chaudhry <rahulchaudhry@google.com> |
416 | ||
417 | * aarch64.cc (Target_aarch64::scan_erratum_843419_span): Remove | |
418 | info message for every erratum 843419 found and fixed. | |
419 | ||
17ecd016 CC |
420 | 2016-02-07 Cary Coutant <ccoutant@gmail.com> |
421 | ||
422 | PR gold/18695 | |
423 | * x86_64.cc (Target_x86_64::Relocate::relocate): Add additional | |
424 | information to relocation overflow errors. | |
425 | ||
7c8b700c CC |
426 | 2016-02-06 Cary Coutant <ccoutant@gmail.com> |
427 | ||
17ecd016 | 428 | PR gold/18695 |
7c8b700c CC |
429 | * x86_64.cc (X86_64_relocate_functions::pcrela32_check): Fix x32 |
430 | overflow checking when symbol value + addend < 0. | |
431 | ||
b7a4e9d8 CC |
432 | 2016-02-06 Cary Coutant <ccoutant@gmail.com> |
433 | ||
434 | PR gold/19577 | |
435 | * reloc.h (Limits): New class. | |
436 | (Bits::has_overflow32): Use min/max values from Limits. | |
437 | (Bits::has_unsigned_overflow32): Likewise. | |
438 | (Bits::has_signed_unsigned_overflow32): Likewise. | |
439 | (Bits::has_overflow): Likewise. | |
440 | (Bits::has_unsigned_overflow): Likewise. | |
441 | (Bits::has_signed_unsigned_overflow64): Likewise. | |
442 | ||
19ef3f4d CC |
443 | 2016-02-06 Cary Coutant <ccoutant@gmail.com> |
444 | ||
445 | PR gold/19567 | |
446 | * reloc.h (Relocate_functions::Overflow_check): Add comments. | |
447 | * x86_64.cc (X86_64_relocate_functions): New class. | |
448 | (Target_x86_64::Relocate::relocate): Use the new class. | |
449 | * testsuite/Makefile.am (x86_64_overflow_pc32): Add -Tdata option. | |
450 | (x32_overflow_pc32): New test case. | |
451 | * testsuite/Makefile.in: Regenerate. | |
452 | * testsuite/x32_overflow_pc32.sh: New script. | |
453 | * testsuite/x86_64_overflow_pc32.s: Remove .space directive. | |
454 | ||
72c55146 CC |
455 | 2016-02-06 Cary Coutant <ccoutant@gmail.com> |
456 | ||
457 | PR gold/19577 | |
458 | * reloc.h (Bits::has_unsigned_overflow32): Fix static_cast. | |
459 | (Bits::has_unsigned_overflow): Remove unnecessary static_cast. | |
460 | ||
2bf48941 CC |
461 | 2016-02-06 Cary Coutant <ccoutant@gmail.com> |
462 | ||
3b8bcce8 | 463 | PR gold/19577 |
2bf48941 CC |
464 | * reloc.h (Bits::has_unsigned_overflow32): Fix unsigned/signed |
465 | comparison. | |
466 | (Bits::has_unsigned_overflow): Likewise. | |
467 | ||
bd8d853f MK |
468 | 2016-02-06 Marcin KoĆcielnicki <koriakin@0x04.net> |
469 | ||
470 | * i386.cc (Target_i386::is_call_to_non_split): Add view and view_size | |
471 | parameters. | |
472 | * reloc.cc (Sized_relobj_file::split_stack_adjust_reltype): Pass view | |
473 | and view_size to is_call_to_non_split. | |
474 | * target.cc (Target::is_call_to_non_split): Add view and view_size | |
475 | parameters. | |
476 | * target.h (class Target): Likewise. | |
477 | ||
84d543b7 ST |
478 | 2016-02-05 Sriraman Tallam <tmsriram@google.com> |
479 | ||
480 | * icf.cc (get_rel_addend): New function. | |
481 | (get_section_contents): Move merge section addend computation to a | |
482 | new function. Ignore negative values for SHT_REL and SHT_RELA addends. | |
483 | Fix bug to not read past the length of the section. | |
484 | ||
c34c98ed CC |
485 | 2016-02-05 Cary Coutant <ccoutant@gmail.com> |
486 | Andrew Senkevich <andrew.senkevich@intel.com> | |
487 | ||
488 | PR gold/18695 | |
489 | * x86_64.cc (Target_x86_64::Relocate::relocate): Add overflow | |
490 | checking for R_X86_64_32, R_X86_64_32S, R_X86_64_PC32, and | |
491 | R_X86_64_PLT32. | |
492 | * testsuite/Makefile.am (x86_64_overflow_pc32): New test. | |
493 | * testsuite/x86_64_overflow_pc32.sh: New test script. | |
494 | * testsuite/x86_64_overflow_pc32.s: New source file. | |
495 | ||
496 | 2016-02-05 Cary Coutant <ccoutant@gmail.com> | |
44803b5d CC |
497 | |
498 | PR gold/18695 | |
499 | * reloc.h (Relocate_functions::Address): New typedef. | |
500 | (Relocate_functions::Addendtype): New typedef. | |
501 | (Relocate_functions::Overflow_check): New enum type. | |
502 | (Relocate_functions::Reloc_status): New enum type. | |
503 | (Relocate_functions::check_overflow): New function template. | |
504 | (Relocate_functions::rel): Add check parameter; check for overflow. | |
505 | (Relocate_functions::rel_unaligned): Likewise. | |
506 | (Relocate_functions::rela): Likewise. | |
507 | (Relocate_functions::pcrel): Likewise. | |
508 | (Relocate_functions::pcrel_unaligned): Likewise. | |
509 | (Relocate_functions::pcrela): Likewise. | |
510 | (Relocate_functions::rel8): Adjust parameter types. | |
511 | (Relocate_functions::rela8): Likewise. | |
512 | (Relocate_functions::pcrel8): Likewise. | |
513 | (Relocate_functions::pcrela8): Likewise. | |
514 | (Relocate_functions::rel16): Likewise. | |
515 | (Relocate_functions::rela168): Likewise. | |
516 | (Relocate_functions::pcrel16): Likewise. | |
517 | (Relocate_functions::pcrela16): Likewise. | |
518 | (Relocate_functions::rel32): Likewise. | |
519 | (Relocate_functions::rel32_unaligned): Likewise. | |
520 | (Relocate_functions::rela32): Likewise. | |
521 | (Relocate_functions::pcrel32): Likewise. | |
522 | (Relocate_functions::pcrel32_unaligned): Likewise. | |
523 | (Relocate_functions::pcrela32): Likewise. | |
524 | (Relocate_functions::rel8_check): New function. | |
525 | (Relocate_functions::rela8_check): New function. | |
526 | (Relocate_functions::pcrel8_check): New function. | |
527 | (Relocate_functions::pcrela8_check): New function. | |
528 | (Relocate_functions::rel16_check): New function. | |
529 | (Relocate_functions::rela168_check): New function. | |
530 | (Relocate_functions::pcrel16_check): New function. | |
531 | (Relocate_functions::pcrela16_check): New function. | |
532 | (Relocate_functions::rel32_check): New function. | |
533 | (Relocate_functions::rel32_unaligned_check): New function. | |
534 | (Relocate_functions::rela32_check): New function. | |
535 | (Relocate_functions::pcrel32_check): New function. | |
536 | (Relocate_functions::pcrel32_unaligned_check): New function. | |
537 | (Relocate_functions::pcrela32_check): New function. | |
538 | (Bits::has_unsigned_overflow32): New function. | |
539 | (Bits::has_unsigned_overflow): New function. | |
540 | * testsuite/Makefile.am (overflow_unittest): New test. | |
541 | * testsuite/Makefile.in: Regenerate. | |
542 | * testsuite/overflow_unittest.cc: New source file. | |
543 | ||
4f038ee5 AM |
544 | 2016-02-04 Alan Modra <amodra@gmail.com> |
545 | ||
546 | * powerpc.cc (relocate): Adjust last patch for big-endian. | |
547 | ||
85fabe71 AM |
548 | 2016-02-02 Alan Modra <amodra@gmail.com> |
549 | ||
550 | * powerpc.cc (relocate): Further restrict ELFv2 entry optimization. | |
551 | ||
9a472eda HS |
552 | 2016-01-15 Han Shen <shenhan@google.com> |
553 | ||
554 | PR gold/19472 - need pc-relative stubs. | |
555 | ||
556 | * aarch64.cc (Reloc_stub::stub_type_for_reloc): Return PC-relative | |
557 | stub type for DSOs and pie executables. | |
558 | ||
41549dfb L |
559 | 2016-01-12 H.J. Lu <hongjiu.lu@intel.com> |
560 | ||
561 | * i386.cc (Target_i386::Classify_reloc::get_r_addend): Remove | |
562 | 'typename'. | |
563 | ||
8a8880cb CC |
564 | 2016-01-12 Cary Coutant <ccoutant@gmail.com> |
565 | ||
566 | * arm.cc (Target_arm::Classify_reloc::get_r_addend): New method. | |
567 | * i386.cc (Target_i386::Classify_reloc::get_r_addend): New method. | |
568 | * mips.cc (Target_arm::Mips_classify_reloc::get_r_addend): (Both | |
569 | specializations) New method. | |
570 | ||
d21f123b CC |
571 | 2016-01-11 Cary Coutant <ccoutant@gmail.com> |
572 | ||
573 | PR gold/19353 | |
574 | * aarch64.cc (Target_aarch64::relocate_tls): Don't insist that | |
575 | we have a TLS segment for GD-to-IE optimization. | |
576 | * i386.cc (Target_i386::tls_gd_to_ie): Remove tls_segment parameter. | |
577 | Adjust all calls. | |
578 | (Target_i386::tls_desc_gd_to_ie): Likewise. | |
579 | (Target_i386::relocate_tls): Don't insist that we have a TLS segment | |
580 | for TLSDESC GD-to-IE optimizations. | |
581 | * x86_64.cc (Target_x86_64::tls_gd_to_ie): Remove tls_segment parameter. | |
582 | Adjust all calls. | |
583 | (Target_x86_64::tls_desc_gd_to_ie): Likewise. | |
584 | (Target_x86_64::relocate_tls): Don't insist that we have a TLS segment | |
585 | for TLSDESC GD-to-IE optimizations. | |
586 | ||
4d625b70 CC |
587 | 2016-01-11 Cary Coutant <ccoutant@gmail.com> |
588 | ||
589 | Refactor gold to enable support for MIPS-64 relocation format. | |
590 | ||
591 | * gc.h (get_embedded_addend_size): Remove sh_type parameter. | |
592 | (gc_process_relocs): Remove sh_type template parameter. | |
593 | Use Classify_reloc to access r_sym, r_type, and r_addend fields. | |
594 | * object.h (Sized_relobj_file::split_stack_adjust): Add target | |
595 | parameter. | |
596 | (Sized_relobj_file::split_stack_adjust_reltype): Likewise. | |
597 | * reloc-types.h (Reloc_types::copy_reloc_addend): (SHT_REL and SHT_RELA | |
598 | specializations) Remove. | |
599 | * reloc.cc (Emit_relocs_strategy): Rename and move to target-reloc.h. | |
600 | (Sized_relobj_file::emit_relocs_scan): Call Target::emit_relocs_scan(). | |
601 | (Sized_relobj_file::emit_relocs_scan_reltype): Remove. | |
602 | (Sized_relobj_file::split_stack_adjust): Add target parameter. | |
603 | Adjust all callers. | |
604 | (Sized_relobj_file::split_stack_adjust_reltype): Likewise. Call | |
605 | Target::get_r_sym() to get r_sym field from relocations. | |
606 | (Track_relocs::next_symndx): Call Target::get_r_sym(). | |
607 | * target-reloc.h (scan_relocs): Remove sh_type template parameter; | |
608 | add Classify_reloc template parameter. Use for accessing r_sym and | |
609 | r_type. | |
610 | (relocate_section): Likewise. | |
611 | (Default_classify_reloc): New class (renamed and moved from reloc.cc). | |
612 | (Default_scan_relocatable_relocs): Remove sh_type template parameter. | |
613 | (Default_scan_relocatable_relocs::Reltype): New typedef. | |
614 | (Default_scan_relocatable_relocs::reloc_size): New const. | |
615 | (Default_scan_relocatable_relocs::sh_type): New const. | |
616 | (Default_scan_relocatable_relocs::get_r_sym): New method. | |
617 | (Default_scan_relocatable_relocs::get_r_type): New method. | |
618 | (Default_emit_relocs_strategy): New class. | |
619 | (scan_relocatable_relocs): Replace sh_type template parameter with | |
620 | Scan_relocatable_relocs class. Use it to access r_sym and r_type | |
621 | fields. | |
622 | (relocate_relocs): Replace sh_type template parameter with | |
623 | Classify_reloc class. Use it to access r_sym and r_type fields. | |
624 | * target.h (Target::is_call_to_non_split): Replace r_type parameter | |
625 | with pointer to relocation. Adjust all callers. | |
626 | (Target::do_is_call_to_non_split): Likewise. | |
627 | (Target::emit_relocs_scan): New virtual method. | |
628 | (Sized_target::get_r_sym): New virtual method. | |
629 | * target.cc (Target::do_is_call_to_non_split): Replace r_type parameter | |
630 | with pointer to relocation. | |
631 | ||
632 | * aarch64.cc (Target_aarch64::emit_relocs_scan): New method. | |
633 | (Target_aarch64::Relocatable_size_for_reloc): Remove. | |
634 | (Target_aarch64::gc_process_relocs): Use Default_classify_reloc. | |
635 | (Target_aarch64::scan_relocs): Likewise. | |
636 | (Target_aarch64::relocate_section): Likewise. | |
637 | (Target_aarch64::Relocatable_size_for_reloc::get_size_for_reloc): | |
638 | Remove. | |
639 | (Target_aarch64::scan_relocatable_relocs): Use Default_classify_reloc. | |
640 | (Target_aarch64::relocate_relocs): Use Default_classify_reloc. | |
641 | * arm.cc (Target_arm::Arm_scan_relocatable_relocs): Remove sh_type | |
642 | template parameter. | |
643 | (Target_arm::emit_relocs_scan): New method. | |
644 | (Target_arm::Relocatable_size_for_reloc): Replace with... | |
645 | (Target_arm::Classify_reloc): ...this. | |
646 | (Target_arm::gc_process_relocs): Use Classify_reloc. | |
647 | (Target_arm::scan_relocs): Likewise. | |
648 | (Target_arm::relocate_section): Likewise. | |
649 | (Target_arm::scan_relocatable_relocs): Likewise. | |
650 | (Target_arm::relocate_relocs): Likewise. | |
651 | * i386.cc (Target_i386::emit_relocs_scan): New method. | |
652 | (Target_i386::Relocatable_size_for_reloc): Replace with... | |
653 | (Target_i386::Classify_reloc): ...this. | |
654 | (Target_i386::gc_process_relocs): Use Classify_reloc. | |
655 | (Target_i386::scan_relocs): Likewise. | |
656 | (Target_i386::relocate_section): Likewise. | |
657 | (Target_i386::scan_relocatable_relocs): Likewise. | |
658 | (Target_i386::relocate_relocs): Likewise. | |
659 | * mips.cc (Mips_scan_relocatable_relocs): Remove sh_type template | |
660 | parameter. | |
661 | (Mips_reloc_types): New class template. | |
662 | (Mips_classify_reloc): New class template. | |
663 | (Target_mips::Reltype): New typedef. | |
664 | (Target_mips::Relatype): New typedef. | |
665 | (Target_mips::emit_relocs_scan): New method. | |
666 | (Target_mips::get_r_sym): New method. | |
667 | (Target_mips::Relocatable_size_for_reloc): Replace with | |
668 | Mips_classify_reloc. | |
669 | (Target_mips::copy_reloc): Use Mips_classify_reloc. | |
670 | (Target_mips::gc_process_relocs): Likewise. | |
671 | (Target_mips::scan_relocs): Likewise. | |
672 | (Target_mips::relocate_section): Likewise. | |
673 | (Target_mips::scan_relocatable_relocs): Likewise. | |
674 | (Target_mips::relocate_relocs): Likewise. | |
675 | (mips_get_size_for_reloc): New function, factored out from | |
676 | Relocatable_size_for_reloc::get_size_for_reloc. | |
677 | (Target_mips::Scan::local): Use Mips_classify_reloc. | |
678 | (Target_mips::Scan::global): Likewise. | |
679 | (Target_mips::Relocate::relocate): Likewise. | |
680 | * powerpc.cc (Target_powerpc::emit_relocs_scan): New method. | |
681 | (Target_powerpc::Relocatable_size_for_reloc): Remove. | |
682 | (Target_powerpc::gc_process_relocs): Use Default_classify_reloc. | |
683 | (Target_powerpc::scan_relocs): Likewise. | |
684 | (Target_powerpc::relocate_section): Likewise. | |
685 | (Powerpc_scan_relocatable_reloc): Convert to class template. | |
686 | (Powerpc_scan_relocatable_reloc::Reltype): New typedef. | |
687 | (Powerpc_scan_relocatable_reloc::reloc_size): New const. | |
688 | (Powerpc_scan_relocatable_reloc::sh_type): New const. | |
689 | (Powerpc_scan_relocatable_reloc::get_r_sym): New method. | |
690 | (Powerpc_scan_relocatable_reloc::get_r_type): New method. | |
691 | (Target_powerpc::scan_relocatable_relocs): Use | |
692 | Powerpc_scan_relocatable_reloc. | |
693 | (Target_powerpc::relocate_relocs): Use Default_classify_reloc. | |
694 | * s390.cc (Target_s390::emit_relocs_scan): New method. | |
695 | (Target_s390::Relocatable_size_for_reloc): Remove. | |
696 | (Target_s390::gc_process_relocs): Use Default_classify_reloc. | |
697 | (Target_s390::scan_relocs): Likewise. | |
698 | (Target_s390::relocate_section): Likewise. | |
699 | (Target_s390::Relocatable_size_for_reloc::get_size_for_reloc): | |
700 | Remove. | |
701 | (Target_s390::scan_relocatable_relocs): Use Default_classify_reloc. | |
702 | (Target_s390::relocate_relocs): Use Default_classify_reloc. | |
703 | * sparc.cc (Target_sparc::emit_relocs_scan): New method. | |
704 | (Target_sparc::Relocatable_size_for_reloc): Remove. | |
705 | (Target_sparc::gc_process_relocs): Use Default_classify_reloc. | |
706 | (Target_sparc::scan_relocs): Likewise. | |
707 | (Target_sparc::relocate_section): Likewise. | |
708 | (Target_sparc::Relocatable_size_for_reloc::get_size_for_reloc): | |
709 | Remove. | |
710 | (Target_sparc::scan_relocatable_relocs): Use Default_classify_reloc. | |
711 | (Target_sparc::relocate_relocs): Use Default_classify_reloc. | |
712 | * tilegx.cc (Target_tilegx::emit_relocs_scan): New method. | |
713 | (Target_tilegx::Relocatable_size_for_reloc): Remove. | |
714 | (Target_tilegx::gc_process_relocs): Use Default_classify_reloc. | |
715 | (Target_tilegx::scan_relocs): Likewise. | |
716 | (Target_tilegx::relocate_section): Likewise. | |
717 | (Target_tilegx::Relocatable_size_for_reloc::get_size_for_reloc): | |
718 | Remove. | |
719 | (Target_tilegx::scan_relocatable_relocs): Use Default_classify_reloc. | |
720 | (Target_tilegx::relocate_relocs): Use Default_classify_reloc. | |
721 | * x86_64.cc (Target_x86_64::emit_relocs_scan): New method. | |
722 | (Target_x86_64::Relocatable_size_for_reloc): Remove. | |
723 | (Target_x86_64::gc_process_relocs): Use Default_classify_reloc. | |
724 | (Target_x86_64::scan_relocs): Likewise. | |
725 | (Target_x86_64::relocate_section): Likewise. | |
726 | (Target_x86_64::Relocatable_size_for_reloc::get_size_for_reloc): | |
727 | Remove. | |
728 | (Target_x86_64::scan_relocatable_relocs): Use Default_classify_reloc. | |
729 | (Target_x86_64::relocate_relocs): Use Default_classify_reloc. | |
730 | ||
731 | * testsuite/testfile.cc (Target_test::emit_relocs_scan): New method. | |
732 | ||
6f2750fe AM |
733 | 2016-01-01 Alan Modra <amodra@gmail.com> |
734 | ||
735 | Update year range in copyright notice of all files. | |
736 | ||
3499769a AM |
737 | For older changes see ChangeLog-0815 |
738 | \f | |
739 | Copyright (C) 2016 Free Software Foundation, Inc. | |
740 | ||
741 | Copying and distribution of this file, with or without modification, | |
742 | are permitted in any medium without royalty provided the copyright | |
743 | notice and this notice are preserved. | |
744 | ||
745 | Local Variables: | |
746 | mode: change-log | |
747 | left-margin: 8 | |
748 | fill-column: 74 | |
749 | version-control: never | |
750 | End: |