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