Commit | Line | Data |
---|---|---|
41549dfb L |
1 | 2016-01-12 H.J. Lu <hongjiu.lu@intel.com> |
2 | ||
3 | * i386.cc (Target_i386::Classify_reloc::get_r_addend): Remove | |
4 | 'typename'. | |
5 | ||
8a8880cb CC |
6 | 2016-01-12 Cary Coutant <ccoutant@gmail.com> |
7 | ||
8 | * arm.cc (Target_arm::Classify_reloc::get_r_addend): New method. | |
9 | * i386.cc (Target_i386::Classify_reloc::get_r_addend): New method. | |
10 | * mips.cc (Target_arm::Mips_classify_reloc::get_r_addend): (Both | |
11 | specializations) New method. | |
12 | ||
d21f123b CC |
13 | 2016-01-11 Cary Coutant <ccoutant@gmail.com> |
14 | ||
15 | PR gold/19353 | |
16 | * aarch64.cc (Target_aarch64::relocate_tls): Don't insist that | |
17 | we have a TLS segment for GD-to-IE optimization. | |
18 | * i386.cc (Target_i386::tls_gd_to_ie): Remove tls_segment parameter. | |
19 | Adjust all calls. | |
20 | (Target_i386::tls_desc_gd_to_ie): Likewise. | |
21 | (Target_i386::relocate_tls): Don't insist that we have a TLS segment | |
22 | for TLSDESC GD-to-IE optimizations. | |
23 | * x86_64.cc (Target_x86_64::tls_gd_to_ie): Remove tls_segment parameter. | |
24 | Adjust all calls. | |
25 | (Target_x86_64::tls_desc_gd_to_ie): Likewise. | |
26 | (Target_x86_64::relocate_tls): Don't insist that we have a TLS segment | |
27 | for TLSDESC GD-to-IE optimizations. | |
28 | ||
4d625b70 CC |
29 | 2016-01-11 Cary Coutant <ccoutant@gmail.com> |
30 | ||
31 | Refactor gold to enable support for MIPS-64 relocation format. | |
32 | ||
33 | * gc.h (get_embedded_addend_size): Remove sh_type parameter. | |
34 | (gc_process_relocs): Remove sh_type template parameter. | |
35 | Use Classify_reloc to access r_sym, r_type, and r_addend fields. | |
36 | * object.h (Sized_relobj_file::split_stack_adjust): Add target | |
37 | parameter. | |
38 | (Sized_relobj_file::split_stack_adjust_reltype): Likewise. | |
39 | * reloc-types.h (Reloc_types::copy_reloc_addend): (SHT_REL and SHT_RELA | |
40 | specializations) Remove. | |
41 | * reloc.cc (Emit_relocs_strategy): Rename and move to target-reloc.h. | |
42 | (Sized_relobj_file::emit_relocs_scan): Call Target::emit_relocs_scan(). | |
43 | (Sized_relobj_file::emit_relocs_scan_reltype): Remove. | |
44 | (Sized_relobj_file::split_stack_adjust): Add target parameter. | |
45 | Adjust all callers. | |
46 | (Sized_relobj_file::split_stack_adjust_reltype): Likewise. Call | |
47 | Target::get_r_sym() to get r_sym field from relocations. | |
48 | (Track_relocs::next_symndx): Call Target::get_r_sym(). | |
49 | * target-reloc.h (scan_relocs): Remove sh_type template parameter; | |
50 | add Classify_reloc template parameter. Use for accessing r_sym and | |
51 | r_type. | |
52 | (relocate_section): Likewise. | |
53 | (Default_classify_reloc): New class (renamed and moved from reloc.cc). | |
54 | (Default_scan_relocatable_relocs): Remove sh_type template parameter. | |
55 | (Default_scan_relocatable_relocs::Reltype): New typedef. | |
56 | (Default_scan_relocatable_relocs::reloc_size): New const. | |
57 | (Default_scan_relocatable_relocs::sh_type): New const. | |
58 | (Default_scan_relocatable_relocs::get_r_sym): New method. | |
59 | (Default_scan_relocatable_relocs::get_r_type): New method. | |
60 | (Default_emit_relocs_strategy): New class. | |
61 | (scan_relocatable_relocs): Replace sh_type template parameter with | |
62 | Scan_relocatable_relocs class. Use it to access r_sym and r_type | |
63 | fields. | |
64 | (relocate_relocs): Replace sh_type template parameter with | |
65 | Classify_reloc class. Use it to access r_sym and r_type fields. | |
66 | * target.h (Target::is_call_to_non_split): Replace r_type parameter | |
67 | with pointer to relocation. Adjust all callers. | |
68 | (Target::do_is_call_to_non_split): Likewise. | |
69 | (Target::emit_relocs_scan): New virtual method. | |
70 | (Sized_target::get_r_sym): New virtual method. | |
71 | * target.cc (Target::do_is_call_to_non_split): Replace r_type parameter | |
72 | with pointer to relocation. | |
73 | ||
74 | * aarch64.cc (Target_aarch64::emit_relocs_scan): New method. | |
75 | (Target_aarch64::Relocatable_size_for_reloc): Remove. | |
76 | (Target_aarch64::gc_process_relocs): Use Default_classify_reloc. | |
77 | (Target_aarch64::scan_relocs): Likewise. | |
78 | (Target_aarch64::relocate_section): Likewise. | |
79 | (Target_aarch64::Relocatable_size_for_reloc::get_size_for_reloc): | |
80 | Remove. | |
81 | (Target_aarch64::scan_relocatable_relocs): Use Default_classify_reloc. | |
82 | (Target_aarch64::relocate_relocs): Use Default_classify_reloc. | |
83 | * arm.cc (Target_arm::Arm_scan_relocatable_relocs): Remove sh_type | |
84 | template parameter. | |
85 | (Target_arm::emit_relocs_scan): New method. | |
86 | (Target_arm::Relocatable_size_for_reloc): Replace with... | |
87 | (Target_arm::Classify_reloc): ...this. | |
88 | (Target_arm::gc_process_relocs): Use Classify_reloc. | |
89 | (Target_arm::scan_relocs): Likewise. | |
90 | (Target_arm::relocate_section): Likewise. | |
91 | (Target_arm::scan_relocatable_relocs): Likewise. | |
92 | (Target_arm::relocate_relocs): Likewise. | |
93 | * i386.cc (Target_i386::emit_relocs_scan): New method. | |
94 | (Target_i386::Relocatable_size_for_reloc): Replace with... | |
95 | (Target_i386::Classify_reloc): ...this. | |
96 | (Target_i386::gc_process_relocs): Use Classify_reloc. | |
97 | (Target_i386::scan_relocs): Likewise. | |
98 | (Target_i386::relocate_section): Likewise. | |
99 | (Target_i386::scan_relocatable_relocs): Likewise. | |
100 | (Target_i386::relocate_relocs): Likewise. | |
101 | * mips.cc (Mips_scan_relocatable_relocs): Remove sh_type template | |
102 | parameter. | |
103 | (Mips_reloc_types): New class template. | |
104 | (Mips_classify_reloc): New class template. | |
105 | (Target_mips::Reltype): New typedef. | |
106 | (Target_mips::Relatype): New typedef. | |
107 | (Target_mips::emit_relocs_scan): New method. | |
108 | (Target_mips::get_r_sym): New method. | |
109 | (Target_mips::Relocatable_size_for_reloc): Replace with | |
110 | Mips_classify_reloc. | |
111 | (Target_mips::copy_reloc): Use Mips_classify_reloc. | |
112 | (Target_mips::gc_process_relocs): Likewise. | |
113 | (Target_mips::scan_relocs): Likewise. | |
114 | (Target_mips::relocate_section): Likewise. | |
115 | (Target_mips::scan_relocatable_relocs): Likewise. | |
116 | (Target_mips::relocate_relocs): Likewise. | |
117 | (mips_get_size_for_reloc): New function, factored out from | |
118 | Relocatable_size_for_reloc::get_size_for_reloc. | |
119 | (Target_mips::Scan::local): Use Mips_classify_reloc. | |
120 | (Target_mips::Scan::global): Likewise. | |
121 | (Target_mips::Relocate::relocate): Likewise. | |
122 | * powerpc.cc (Target_powerpc::emit_relocs_scan): New method. | |
123 | (Target_powerpc::Relocatable_size_for_reloc): Remove. | |
124 | (Target_powerpc::gc_process_relocs): Use Default_classify_reloc. | |
125 | (Target_powerpc::scan_relocs): Likewise. | |
126 | (Target_powerpc::relocate_section): Likewise. | |
127 | (Powerpc_scan_relocatable_reloc): Convert to class template. | |
128 | (Powerpc_scan_relocatable_reloc::Reltype): New typedef. | |
129 | (Powerpc_scan_relocatable_reloc::reloc_size): New const. | |
130 | (Powerpc_scan_relocatable_reloc::sh_type): New const. | |
131 | (Powerpc_scan_relocatable_reloc::get_r_sym): New method. | |
132 | (Powerpc_scan_relocatable_reloc::get_r_type): New method. | |
133 | (Target_powerpc::scan_relocatable_relocs): Use | |
134 | Powerpc_scan_relocatable_reloc. | |
135 | (Target_powerpc::relocate_relocs): Use Default_classify_reloc. | |
136 | * s390.cc (Target_s390::emit_relocs_scan): New method. | |
137 | (Target_s390::Relocatable_size_for_reloc): Remove. | |
138 | (Target_s390::gc_process_relocs): Use Default_classify_reloc. | |
139 | (Target_s390::scan_relocs): Likewise. | |
140 | (Target_s390::relocate_section): Likewise. | |
141 | (Target_s390::Relocatable_size_for_reloc::get_size_for_reloc): | |
142 | Remove. | |
143 | (Target_s390::scan_relocatable_relocs): Use Default_classify_reloc. | |
144 | (Target_s390::relocate_relocs): Use Default_classify_reloc. | |
145 | * sparc.cc (Target_sparc::emit_relocs_scan): New method. | |
146 | (Target_sparc::Relocatable_size_for_reloc): Remove. | |
147 | (Target_sparc::gc_process_relocs): Use Default_classify_reloc. | |
148 | (Target_sparc::scan_relocs): Likewise. | |
149 | (Target_sparc::relocate_section): Likewise. | |
150 | (Target_sparc::Relocatable_size_for_reloc::get_size_for_reloc): | |
151 | Remove. | |
152 | (Target_sparc::scan_relocatable_relocs): Use Default_classify_reloc. | |
153 | (Target_sparc::relocate_relocs): Use Default_classify_reloc. | |
154 | * tilegx.cc (Target_tilegx::emit_relocs_scan): New method. | |
155 | (Target_tilegx::Relocatable_size_for_reloc): Remove. | |
156 | (Target_tilegx::gc_process_relocs): Use Default_classify_reloc. | |
157 | (Target_tilegx::scan_relocs): Likewise. | |
158 | (Target_tilegx::relocate_section): Likewise. | |
159 | (Target_tilegx::Relocatable_size_for_reloc::get_size_for_reloc): | |
160 | Remove. | |
161 | (Target_tilegx::scan_relocatable_relocs): Use Default_classify_reloc. | |
162 | (Target_tilegx::relocate_relocs): Use Default_classify_reloc. | |
163 | * x86_64.cc (Target_x86_64::emit_relocs_scan): New method. | |
164 | (Target_x86_64::Relocatable_size_for_reloc): Remove. | |
165 | (Target_x86_64::gc_process_relocs): Use Default_classify_reloc. | |
166 | (Target_x86_64::scan_relocs): Likewise. | |
167 | (Target_x86_64::relocate_section): Likewise. | |
168 | (Target_x86_64::Relocatable_size_for_reloc::get_size_for_reloc): | |
169 | Remove. | |
170 | (Target_x86_64::scan_relocatable_relocs): Use Default_classify_reloc. | |
171 | (Target_x86_64::relocate_relocs): Use Default_classify_reloc. | |
172 | ||
173 | * testsuite/testfile.cc (Target_test::emit_relocs_scan): New method. | |
174 | ||
6f2750fe AM |
175 | 2016-01-01 Alan Modra <amodra@gmail.com> |
176 | ||
177 | Update year range in copyright notice of all files. | |
178 | ||
3499769a AM |
179 | For older changes see ChangeLog-0815 |
180 | \f | |
181 | Copyright (C) 2016 Free Software Foundation, Inc. | |
182 | ||
183 | Copying and distribution of this file, with or without modification, | |
184 | are permitted in any medium without royalty provided the copyright | |
185 | notice and this notice are preserved. | |
186 | ||
187 | Local Variables: | |
188 | mode: change-log | |
189 | left-margin: 8 | |
190 | fill-column: 74 | |
191 | version-control: never | |
192 | End: |