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