]>
Commit | Line | Data |
---|---|---|
72c55146 CC |
1 | 2016-02-06 Cary Coutant <[email protected]> |
2 | ||
3 | PR gold/19577 | |
4 | * reloc.h (Bits::has_unsigned_overflow32): Fix static_cast. | |
5 | (Bits::has_unsigned_overflow): Remove unnecessary static_cast. | |
6 | ||
2bf48941 CC |
7 | 2016-02-06 Cary Coutant <[email protected]> |
8 | ||
3b8bcce8 | 9 | PR gold/19577 |
2bf48941 CC |
10 | * reloc.h (Bits::has_unsigned_overflow32): Fix unsigned/signed |
11 | comparison. | |
12 | (Bits::has_unsigned_overflow): Likewise. | |
13 | ||
bd8d853f MK |
14 | 2016-02-06 Marcin KoĆcielnicki <[email protected]> |
15 | ||
16 | * i386.cc (Target_i386::is_call_to_non_split): Add view and view_size | |
17 | parameters. | |
18 | * reloc.cc (Sized_relobj_file::split_stack_adjust_reltype): Pass view | |
19 | and view_size to is_call_to_non_split. | |
20 | * target.cc (Target::is_call_to_non_split): Add view and view_size | |
21 | parameters. | |
22 | * target.h (class Target): Likewise. | |
23 | ||
84d543b7 ST |
24 | 2016-02-05 Sriraman Tallam <[email protected]> |
25 | ||
26 | * icf.cc (get_rel_addend): New function. | |
27 | (get_section_contents): Move merge section addend computation to a | |
28 | new function. Ignore negative values for SHT_REL and SHT_RELA addends. | |
29 | Fix bug to not read past the length of the section. | |
30 | ||
c34c98ed CC |
31 | 2016-02-05 Cary Coutant <[email protected]> |
32 | Andrew Senkevich <[email protected]> | |
33 | ||
34 | PR gold/18695 | |
35 | * x86_64.cc (Target_x86_64::Relocate::relocate): Add overflow | |
36 | checking for R_X86_64_32, R_X86_64_32S, R_X86_64_PC32, and | |
37 | R_X86_64_PLT32. | |
38 | * testsuite/Makefile.am (x86_64_overflow_pc32): New test. | |
39 | * testsuite/x86_64_overflow_pc32.sh: New test script. | |
40 | * testsuite/x86_64_overflow_pc32.s: New source file. | |
41 | ||
42 | 2016-02-05 Cary Coutant <[email protected]> | |
44803b5d CC |
43 | |
44 | PR gold/18695 | |
45 | * reloc.h (Relocate_functions::Address): New typedef. | |
46 | (Relocate_functions::Addendtype): New typedef. | |
47 | (Relocate_functions::Overflow_check): New enum type. | |
48 | (Relocate_functions::Reloc_status): New enum type. | |
49 | (Relocate_functions::check_overflow): New function template. | |
50 | (Relocate_functions::rel): Add check parameter; check for overflow. | |
51 | (Relocate_functions::rel_unaligned): Likewise. | |
52 | (Relocate_functions::rela): Likewise. | |
53 | (Relocate_functions::pcrel): Likewise. | |
54 | (Relocate_functions::pcrel_unaligned): Likewise. | |
55 | (Relocate_functions::pcrela): Likewise. | |
56 | (Relocate_functions::rel8): Adjust parameter types. | |
57 | (Relocate_functions::rela8): Likewise. | |
58 | (Relocate_functions::pcrel8): Likewise. | |
59 | (Relocate_functions::pcrela8): Likewise. | |
60 | (Relocate_functions::rel16): Likewise. | |
61 | (Relocate_functions::rela168): Likewise. | |
62 | (Relocate_functions::pcrel16): Likewise. | |
63 | (Relocate_functions::pcrela16): Likewise. | |
64 | (Relocate_functions::rel32): Likewise. | |
65 | (Relocate_functions::rel32_unaligned): Likewise. | |
66 | (Relocate_functions::rela32): Likewise. | |
67 | (Relocate_functions::pcrel32): Likewise. | |
68 | (Relocate_functions::pcrel32_unaligned): Likewise. | |
69 | (Relocate_functions::pcrela32): Likewise. | |
70 | (Relocate_functions::rel8_check): New function. | |
71 | (Relocate_functions::rela8_check): New function. | |
72 | (Relocate_functions::pcrel8_check): New function. | |
73 | (Relocate_functions::pcrela8_check): New function. | |
74 | (Relocate_functions::rel16_check): New function. | |
75 | (Relocate_functions::rela168_check): New function. | |
76 | (Relocate_functions::pcrel16_check): New function. | |
77 | (Relocate_functions::pcrela16_check): New function. | |
78 | (Relocate_functions::rel32_check): New function. | |
79 | (Relocate_functions::rel32_unaligned_check): New function. | |
80 | (Relocate_functions::rela32_check): New function. | |
81 | (Relocate_functions::pcrel32_check): New function. | |
82 | (Relocate_functions::pcrel32_unaligned_check): New function. | |
83 | (Relocate_functions::pcrela32_check): New function. | |
84 | (Bits::has_unsigned_overflow32): New function. | |
85 | (Bits::has_unsigned_overflow): New function. | |
86 | * testsuite/Makefile.am (overflow_unittest): New test. | |
87 | * testsuite/Makefile.in: Regenerate. | |
88 | * testsuite/overflow_unittest.cc: New source file. | |
89 | ||
4f038ee5 AM |
90 | 2016-02-04 Alan Modra <[email protected]> |
91 | ||
92 | * powerpc.cc (relocate): Adjust last patch for big-endian. | |
93 | ||
85fabe71 AM |
94 | 2016-02-02 Alan Modra <[email protected]> |
95 | ||
96 | * powerpc.cc (relocate): Further restrict ELFv2 entry optimization. | |
97 | ||
9a472eda HS |
98 | 2016-01-15 Han Shen <[email protected]> |
99 | ||
100 | PR gold/19472 - need pc-relative stubs. | |
101 | ||
102 | * aarch64.cc (Reloc_stub::stub_type_for_reloc): Return PC-relative | |
103 | stub type for DSOs and pie executables. | |
104 | ||
41549dfb L |
105 | 2016-01-12 H.J. Lu <[email protected]> |
106 | ||
107 | * i386.cc (Target_i386::Classify_reloc::get_r_addend): Remove | |
108 | 'typename'. | |
109 | ||
8a8880cb CC |
110 | 2016-01-12 Cary Coutant <[email protected]> |
111 | ||
112 | * arm.cc (Target_arm::Classify_reloc::get_r_addend): New method. | |
113 | * i386.cc (Target_i386::Classify_reloc::get_r_addend): New method. | |
114 | * mips.cc (Target_arm::Mips_classify_reloc::get_r_addend): (Both | |
115 | specializations) New method. | |
116 | ||
d21f123b CC |
117 | 2016-01-11 Cary Coutant <[email protected]> |
118 | ||
119 | PR gold/19353 | |
120 | * aarch64.cc (Target_aarch64::relocate_tls): Don't insist that | |
121 | we have a TLS segment for GD-to-IE optimization. | |
122 | * i386.cc (Target_i386::tls_gd_to_ie): Remove tls_segment parameter. | |
123 | Adjust all calls. | |
124 | (Target_i386::tls_desc_gd_to_ie): Likewise. | |
125 | (Target_i386::relocate_tls): Don't insist that we have a TLS segment | |
126 | for TLSDESC GD-to-IE optimizations. | |
127 | * x86_64.cc (Target_x86_64::tls_gd_to_ie): Remove tls_segment parameter. | |
128 | Adjust all calls. | |
129 | (Target_x86_64::tls_desc_gd_to_ie): Likewise. | |
130 | (Target_x86_64::relocate_tls): Don't insist that we have a TLS segment | |
131 | for TLSDESC GD-to-IE optimizations. | |
132 | ||
4d625b70 CC |
133 | 2016-01-11 Cary Coutant <[email protected]> |
134 | ||
135 | Refactor gold to enable support for MIPS-64 relocation format. | |
136 | ||
137 | * gc.h (get_embedded_addend_size): Remove sh_type parameter. | |
138 | (gc_process_relocs): Remove sh_type template parameter. | |
139 | Use Classify_reloc to access r_sym, r_type, and r_addend fields. | |
140 | * object.h (Sized_relobj_file::split_stack_adjust): Add target | |
141 | parameter. | |
142 | (Sized_relobj_file::split_stack_adjust_reltype): Likewise. | |
143 | * reloc-types.h (Reloc_types::copy_reloc_addend): (SHT_REL and SHT_RELA | |
144 | specializations) Remove. | |
145 | * reloc.cc (Emit_relocs_strategy): Rename and move to target-reloc.h. | |
146 | (Sized_relobj_file::emit_relocs_scan): Call Target::emit_relocs_scan(). | |
147 | (Sized_relobj_file::emit_relocs_scan_reltype): Remove. | |
148 | (Sized_relobj_file::split_stack_adjust): Add target parameter. | |
149 | Adjust all callers. | |
150 | (Sized_relobj_file::split_stack_adjust_reltype): Likewise. Call | |
151 | Target::get_r_sym() to get r_sym field from relocations. | |
152 | (Track_relocs::next_symndx): Call Target::get_r_sym(). | |
153 | * target-reloc.h (scan_relocs): Remove sh_type template parameter; | |
154 | add Classify_reloc template parameter. Use for accessing r_sym and | |
155 | r_type. | |
156 | (relocate_section): Likewise. | |
157 | (Default_classify_reloc): New class (renamed and moved from reloc.cc). | |
158 | (Default_scan_relocatable_relocs): Remove sh_type template parameter. | |
159 | (Default_scan_relocatable_relocs::Reltype): New typedef. | |
160 | (Default_scan_relocatable_relocs::reloc_size): New const. | |
161 | (Default_scan_relocatable_relocs::sh_type): New const. | |
162 | (Default_scan_relocatable_relocs::get_r_sym): New method. | |
163 | (Default_scan_relocatable_relocs::get_r_type): New method. | |
164 | (Default_emit_relocs_strategy): New class. | |
165 | (scan_relocatable_relocs): Replace sh_type template parameter with | |
166 | Scan_relocatable_relocs class. Use it to access r_sym and r_type | |
167 | fields. | |
168 | (relocate_relocs): Replace sh_type template parameter with | |
169 | Classify_reloc class. Use it to access r_sym and r_type fields. | |
170 | * target.h (Target::is_call_to_non_split): Replace r_type parameter | |
171 | with pointer to relocation. Adjust all callers. | |
172 | (Target::do_is_call_to_non_split): Likewise. | |
173 | (Target::emit_relocs_scan): New virtual method. | |
174 | (Sized_target::get_r_sym): New virtual method. | |
175 | * target.cc (Target::do_is_call_to_non_split): Replace r_type parameter | |
176 | with pointer to relocation. | |
177 | ||
178 | * aarch64.cc (Target_aarch64::emit_relocs_scan): New method. | |
179 | (Target_aarch64::Relocatable_size_for_reloc): Remove. | |
180 | (Target_aarch64::gc_process_relocs): Use Default_classify_reloc. | |
181 | (Target_aarch64::scan_relocs): Likewise. | |
182 | (Target_aarch64::relocate_section): Likewise. | |
183 | (Target_aarch64::Relocatable_size_for_reloc::get_size_for_reloc): | |
184 | Remove. | |
185 | (Target_aarch64::scan_relocatable_relocs): Use Default_classify_reloc. | |
186 | (Target_aarch64::relocate_relocs): Use Default_classify_reloc. | |
187 | * arm.cc (Target_arm::Arm_scan_relocatable_relocs): Remove sh_type | |
188 | template parameter. | |
189 | (Target_arm::emit_relocs_scan): New method. | |
190 | (Target_arm::Relocatable_size_for_reloc): Replace with... | |
191 | (Target_arm::Classify_reloc): ...this. | |
192 | (Target_arm::gc_process_relocs): Use Classify_reloc. | |
193 | (Target_arm::scan_relocs): Likewise. | |
194 | (Target_arm::relocate_section): Likewise. | |
195 | (Target_arm::scan_relocatable_relocs): Likewise. | |
196 | (Target_arm::relocate_relocs): Likewise. | |
197 | * i386.cc (Target_i386::emit_relocs_scan): New method. | |
198 | (Target_i386::Relocatable_size_for_reloc): Replace with... | |
199 | (Target_i386::Classify_reloc): ...this. | |
200 | (Target_i386::gc_process_relocs): Use Classify_reloc. | |
201 | (Target_i386::scan_relocs): Likewise. | |
202 | (Target_i386::relocate_section): Likewise. | |
203 | (Target_i386::scan_relocatable_relocs): Likewise. | |
204 | (Target_i386::relocate_relocs): Likewise. | |
205 | * mips.cc (Mips_scan_relocatable_relocs): Remove sh_type template | |
206 | parameter. | |
207 | (Mips_reloc_types): New class template. | |
208 | (Mips_classify_reloc): New class template. | |
209 | (Target_mips::Reltype): New typedef. | |
210 | (Target_mips::Relatype): New typedef. | |
211 | (Target_mips::emit_relocs_scan): New method. | |
212 | (Target_mips::get_r_sym): New method. | |
213 | (Target_mips::Relocatable_size_for_reloc): Replace with | |
214 | Mips_classify_reloc. | |
215 | (Target_mips::copy_reloc): Use Mips_classify_reloc. | |
216 | (Target_mips::gc_process_relocs): Likewise. | |
217 | (Target_mips::scan_relocs): Likewise. | |
218 | (Target_mips::relocate_section): Likewise. | |
219 | (Target_mips::scan_relocatable_relocs): Likewise. | |
220 | (Target_mips::relocate_relocs): Likewise. | |
221 | (mips_get_size_for_reloc): New function, factored out from | |
222 | Relocatable_size_for_reloc::get_size_for_reloc. | |
223 | (Target_mips::Scan::local): Use Mips_classify_reloc. | |
224 | (Target_mips::Scan::global): Likewise. | |
225 | (Target_mips::Relocate::relocate): Likewise. | |
226 | * powerpc.cc (Target_powerpc::emit_relocs_scan): New method. | |
227 | (Target_powerpc::Relocatable_size_for_reloc): Remove. | |
228 | (Target_powerpc::gc_process_relocs): Use Default_classify_reloc. | |
229 | (Target_powerpc::scan_relocs): Likewise. | |
230 | (Target_powerpc::relocate_section): Likewise. | |
231 | (Powerpc_scan_relocatable_reloc): Convert to class template. | |
232 | (Powerpc_scan_relocatable_reloc::Reltype): New typedef. | |
233 | (Powerpc_scan_relocatable_reloc::reloc_size): New const. | |
234 | (Powerpc_scan_relocatable_reloc::sh_type): New const. | |
235 | (Powerpc_scan_relocatable_reloc::get_r_sym): New method. | |
236 | (Powerpc_scan_relocatable_reloc::get_r_type): New method. | |
237 | (Target_powerpc::scan_relocatable_relocs): Use | |
238 | Powerpc_scan_relocatable_reloc. | |
239 | (Target_powerpc::relocate_relocs): Use Default_classify_reloc. | |
240 | * s390.cc (Target_s390::emit_relocs_scan): New method. | |
241 | (Target_s390::Relocatable_size_for_reloc): Remove. | |
242 | (Target_s390::gc_process_relocs): Use Default_classify_reloc. | |
243 | (Target_s390::scan_relocs): Likewise. | |
244 | (Target_s390::relocate_section): Likewise. | |
245 | (Target_s390::Relocatable_size_for_reloc::get_size_for_reloc): | |
246 | Remove. | |
247 | (Target_s390::scan_relocatable_relocs): Use Default_classify_reloc. | |
248 | (Target_s390::relocate_relocs): Use Default_classify_reloc. | |
249 | * sparc.cc (Target_sparc::emit_relocs_scan): New method. | |
250 | (Target_sparc::Relocatable_size_for_reloc): Remove. | |
251 | (Target_sparc::gc_process_relocs): Use Default_classify_reloc. | |
252 | (Target_sparc::scan_relocs): Likewise. | |
253 | (Target_sparc::relocate_section): Likewise. | |
254 | (Target_sparc::Relocatable_size_for_reloc::get_size_for_reloc): | |
255 | Remove. | |
256 | (Target_sparc::scan_relocatable_relocs): Use Default_classify_reloc. | |
257 | (Target_sparc::relocate_relocs): Use Default_classify_reloc. | |
258 | * tilegx.cc (Target_tilegx::emit_relocs_scan): New method. | |
259 | (Target_tilegx::Relocatable_size_for_reloc): Remove. | |
260 | (Target_tilegx::gc_process_relocs): Use Default_classify_reloc. | |
261 | (Target_tilegx::scan_relocs): Likewise. | |
262 | (Target_tilegx::relocate_section): Likewise. | |
263 | (Target_tilegx::Relocatable_size_for_reloc::get_size_for_reloc): | |
264 | Remove. | |
265 | (Target_tilegx::scan_relocatable_relocs): Use Default_classify_reloc. | |
266 | (Target_tilegx::relocate_relocs): Use Default_classify_reloc. | |
267 | * x86_64.cc (Target_x86_64::emit_relocs_scan): New method. | |
268 | (Target_x86_64::Relocatable_size_for_reloc): Remove. | |
269 | (Target_x86_64::gc_process_relocs): Use Default_classify_reloc. | |
270 | (Target_x86_64::scan_relocs): Likewise. | |
271 | (Target_x86_64::relocate_section): Likewise. | |
272 | (Target_x86_64::Relocatable_size_for_reloc::get_size_for_reloc): | |
273 | Remove. | |
274 | (Target_x86_64::scan_relocatable_relocs): Use Default_classify_reloc. | |
275 | (Target_x86_64::relocate_relocs): Use Default_classify_reloc. | |
276 | ||
277 | * testsuite/testfile.cc (Target_test::emit_relocs_scan): New method. | |
278 | ||
6f2750fe AM |
279 | 2016-01-01 Alan Modra <[email protected]> |
280 | ||
281 | Update year range in copyright notice of all files. | |
282 | ||
3499769a AM |
283 | For older changes see ChangeLog-0815 |
284 | \f | |
285 | Copyright (C) 2016 Free Software Foundation, Inc. | |
286 | ||
287 | Copying and distribution of this file, with or without modification, | |
288 | are permitted in any medium without royalty provided the copyright | |
289 | notice and this notice are preserved. | |
290 | ||
291 | Local Variables: | |
292 | mode: change-log | |
293 | left-margin: 8 | |
294 | fill-column: 74 | |
295 | version-control: never | |
296 | End: |