Commit | Line | Data |
---|---|---|
494e49c9 CC |
1 | 2018-04-05 James Cowgill <james.cowgill@mips.com> |
2 | ||
3 | Revert previous patch and apply revised patch. | |
4 | ||
5 | PR gold/22770 | |
6 | * mips.cc (Mips_got_info::record_got_page_entry): Don't insert | |
7 | Got_page_entry for object's GOT. | |
8 | (Mips_got_info::add_got_page_entries): Add all pages from from's GOT. | |
9 | Rename to add_got_page_count. | |
10 | (Got_page_entry): Remove num_pages. | |
11 | ||
67faf1f4 JC |
12 | 2018-04-05 James Cowgill <james.cowgill@mips.com> |
13 | ||
14 | PR gold/22770 | |
15 | * mips.cc (Mips_got_info::record_got_page_entry): Fetch existing | |
16 | page entries for the object's GOT. | |
17 | ||
54483898 AM |
18 | 2018-04-05 Alan Modra <amodra@gmail.com> |
19 | ||
20 | * powerpc.cc (Target_powerpc::make_brlt_section): Make .branch_lt relro. | |
21 | ||
4fb0d2b9 NC |
22 | 2018-04-04 Nick Clifton <nickc@redhat.com> |
23 | ||
24 | * po/es.po: Updated Spanish translation. | |
25 | ||
bce5a025 CC |
26 | 2018-04-02 Cary Coutant <ccoutant@gmail.com> |
27 | ||
28 | PR gold/23016 | |
29 | * incremental.cc (can_incremental_update): Check for unwind section | |
30 | type. | |
31 | * layout.h (Layout::layout): Add sh_type parameter. | |
32 | * layout.cc (Layout::layout): Likewise. | |
33 | (Layout::layout_reloc): Create new output reloc section if data | |
34 | section does not already have one. | |
35 | (Layout::layout_eh_frame): Check for unwind section type. | |
36 | (Layout::make_eh_frame_section): Use unwind section type for .eh_frame | |
37 | and .eh_frame_hdr. | |
38 | * object.h (Sized_relobj_file::Shdr_write): New typedef. | |
39 | (Sized_relobj_file::layout_section): Add sh_type parameter. | |
40 | (Sized_relobj_file::Deferred_layout::Deferred_layout): Add sh_type | |
41 | parameter. | |
42 | * object.cc (Sized_relobj_file::check_eh_frame_flags): Check for | |
43 | unwind section type. | |
44 | (Sized_relobj_file::layout_section): Add sh_type parameter; pass it | |
45 | to Layout::layout. | |
46 | (Sized_relobj_file::do_layout): Make local copy of sh_type. | |
47 | Force .eh_frame sections to unwind section type. | |
48 | Pass sh_type to layout_section. | |
49 | (Sized_relobj_file<size, big_endian>::do_layout_deferred_sections): | |
50 | Pass sh_type to layout_section. | |
51 | * output.cc (Output_section::Output_section): Initialize reloc_section_. | |
52 | * output.h (Output_section::reloc_section): New method. | |
53 | (Output_section::set_reloc_section): New method. | |
54 | (Output_section::reloc_section_): New data member. | |
55 | * target.h (Target::unwind_section_type): New method. | |
56 | (Target::Target_info::unwind_section_type): New data member. | |
57 | ||
58 | * aarch64.cc (aarch64_info): Add unwind_section_type. | |
59 | * arm.cc (arm_info, arm_nacl_info): Likewise. | |
60 | * i386.cc (i386_info, i386_nacl_info, iamcu_info): Likewise. | |
61 | * mips.cc (mips_info, mips_nacl_info): Likewise. | |
62 | * powerpc.cc (powerpc_info): Likewise. | |
63 | * s390.cc (s390_info): Likewise. | |
64 | * sparc.cc (sparc_info): Likewise. | |
65 | * tilegx.cc (tilegx_info): Likewise. | |
66 | * x86_64.cc (x86_64_info, x86_64_nacl_info): Likewise. | |
67 | ||
68 | * testsuite/Makefile.am (pr23016_1, pr23016_2): New test cases. | |
69 | * testsuite/Makefile.in: Regenerate. | |
70 | * testsuite/testfile.cc: Add unwind_section_type. | |
71 | * testsuite/pr23016_1.sh: New test script. | |
72 | * testsuite/pr23016_1a.s: New source file. | |
73 | * testsuite/pr23016_1b.s: New source file. | |
74 | * testsuite/pr23016_2.sh: New test script. | |
75 | * testsuite/pr23016_2a.s: New source file. | |
76 | * testsuite/pr23016_2b.s: New source file. | |
77 | ||
24538276 CC |
78 | 2018-03-28 Cary Coutant <ccoutant@gmail.com> |
79 | ||
80 | PR gold/21423 | |
81 | PR gold/22500 | |
82 | * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS. | |
83 | Replace check for --enable-plugins with AC_PLUGINS. | |
84 | * options.cc (parse_plugin, parse_plugin_opt): Remove #ifdef. | |
85 | (General_options::finalize): Check if plugins enabled. | |
86 | * options.h (--plugin, --plugin-opt): Define even if plugins not | |
87 | enabled. | |
88 | * Makefile.in: Regenerate. | |
89 | * aclocal.m4: Regenerate. | |
90 | * configure: Regenerate. | |
91 | * testsuite/Makefile.in: Regenerate. | |
92 | ||
e82e6b2b CC |
93 | 2018-03-28 Cary Coutant <ccoutant@gmail.com> |
94 | ||
95 | PR gold/22969 | |
96 | * aarch64-reloc.def: Add TLSLE_LDST* relocations. | |
97 | * aarch64.cc (Target_aarch64::optimize_tls_reloc): Likewise. | |
98 | (Target_aarch64::Scan::local): Likewise. | |
99 | (Target_aarch64::Scan::global): Likewise. | |
100 | (Target_aarch64::Relocate::relocate): Likewise. | |
101 | (Target_aarch64::Relocate::relocate_tls): Likewise. | |
102 | ||
9c75b456 RM |
103 | 2018-03-27 Roland McGrath <mcgrathr@google.com> |
104 | ||
105 | * testsuite/split_x86_64.sh: Fix bad regexp. | |
106 | ||
0b7a4aa6 CC |
107 | 2018-03-26 Cary Coutant <ccoutant@gmail.com> |
108 | ||
0b7a4aa6 CC |
109 | PR gold/22868 |
110 | * plugin.cc (Sized_pluginobj::do_add_symbols): Use a real section | |
111 | index instead of SHN_ABS for defined symbols. | |
112 | * testsuite/Makefile.am (plugin_pr22868): New test case. | |
113 | * testsuite/Makefile.in: Regenerate | |
114 | * testsuite/plugin_pr22868.sh: New test script. | |
115 | * testsuite/plugin_pr22868_a.c: New source file. | |
116 | * testsuite/plugin_pr22868_b.c: New source file. | |
117 | ||
8da9a904 CC |
118 | 2018-03-23 Cary Coutant <ccoutant@gmail.com> |
119 | ||
120 | * plugin.cc (link_or_copy_file): Remove newlines from warning messages. | |
121 | Add pedantic check for return value from ::write. | |
122 | ||
3215deaa CC |
123 | 2018-03-23 Cary Coutant <ccoutant@gmail.com> |
124 | ||
125 | * debug.h (DEBUG_PLUGIN): New constant. | |
126 | (DEBUG_ALL): Add DEBUG_PLUGIN. | |
127 | (debug_string_to_enum): Likewise. | |
128 | * plugin.cc (make_sized_plugin_object): Add filename parameter. | |
129 | (Plugin_recorder): New class. | |
130 | (Plugin_manager::~Plugin_manager): Delete recorder_. | |
131 | (Plugin_manager::load_plugins): Create and initialize recorder_. | |
132 | (Plugin_manager::claim_file): Record claimed and unclaimed files. | |
133 | (Plugin_manager::make_plugin_object): Use object name as name for | |
134 | plugin object, if available. | |
135 | (Plugin_manager::add_input_file): Record replacement files. | |
136 | (Sized_pluginobj::do_add_symbols): Record plugin symbols. | |
137 | (Plugin_finish::run): Call Plugin_recorder::finish(). | |
138 | (make_sized_plugin_object): Add filename parameter and pass to | |
139 | Sized_pluginobj constructor. | |
140 | * plugin.h (Plugin::filename): New method. | |
141 | (Plugin::recorder): New method. | |
142 | (Plugin::recorder_): New data member. | |
143 | ||
779bdadb ST |
144 | 2018-03-07 Sriraman Tallam <tmsriram@google.com> |
145 | ||
146 | * layout.cc (Layout::default_section_order): Check for text section | |
147 | prefixes. | |
148 | (Layout::text_section_name_mapping): New static member. | |
149 | (Layout::text_section_name_mapping_count): New static member. | |
150 | (Layout::match_section_name): New static function. | |
151 | (Layout::output_section_name): Check for text section prefixes. | |
152 | * layout.h (Output_section_order::ORDER_TEXT_HOT): New enum value. | |
153 | (Output_section_order::ORDER_TEXT_STARTUP): New enum value. | |
154 | (Output_section_order::ORDER_TEXT_EXIT): New enum value. | |
155 | (Output_section_order::ORDER_TEXT_UNLIKELY): New enum value. | |
156 | (Layout::text_section_name_mapping): New static member. | |
157 | (Layout::text_section_name_mapping_count): New static member. | |
158 | (Layout::match_section_name): New static function. | |
159 | * options.h (keep_text_section_prefix): New -z option. | |
160 | * testsuite/Makefile.am (keep_text_section_prefix): New test. | |
161 | * testsuite/Makefile.in: Regenerate. | |
162 | * testsuite/keep_text_section_prefix.cc: New test source. | |
163 | * testsuite/keep_text_section_prefix.sh: New test script. | |
164 | ||
0b65c07b ST |
165 | 2018-02-22 Sriraman Tallam <tmsriram@google.com> |
166 | ||
167 | * plugin.cc (get_wrap_symbols): New plugin interface. | |
168 | (load): Add get_wrap_symbols to transfer vector. | |
169 | * plugin-api.h (ld_plugin_get_wrap_symbols): New plugin interface. | |
170 | * testsuite/plugin_test.c (onload): Call and check get_wrap_symbols | |
171 | interface. | |
172 | * testsuite/plugin_test_wrap_symbols.sh: New test script. | |
173 | * testsuite/plugin_test_wrap_symbols_1.cc: New file. | |
174 | * testsuite/plugin_test_wrap_symbols_2.cc: New file. | |
175 | * testsuite/Makefile.am (plugin_test_wrap_symbols): New test. | |
176 | * testsuite/Makefile.in: Regenerate. | |
177 | ||
3281b315 ST |
178 | 2018-02-07 Sriraman Tallam <tmsriram@google.com> |
179 | ||
180 | * expression.cc (Symbol_expression::set_expr_sym_in_real_elf): | |
181 | New method. | |
182 | (Unary_expression::set_expr_sym_in_real_elf): New method. | |
183 | (Binary_expression::set_expr_sym_in_real_elf): New method. | |
184 | (Trinary_expression::set_expr_sym_in_real_elf): New method. | |
185 | * plugin.cc (get_symbol_resolution_info): Fix symbol resolution if | |
186 | defined or used in defsyms. | |
187 | * plugin.h (Plugin_manager::is_defsym_def): New method. | |
188 | (Plugin_manager::Plugin_manager): Initialize defsym_defines_set_. | |
189 | (Plugin_manager::defsym_defines_set_): New member. | |
190 | (Plugin_manager::Defsym_defines_set): New typedef. | |
191 | * script.cc (Script_options::set_defsym_uses_in_real_elf): New method. | |
192 | (Script_options::find_defsym_defs): New method. | |
193 | * script.h (Expression::set_expr_sym_in_real_elf): New method. | |
194 | (Symbol_assignment::is_defsym): New method. | |
195 | (Symbol_assignment::value): New method. | |
196 | (Script_options::find_defsym_defs): New method. | |
197 | (Script_options::set_defsym_uses_in_real_elf): New method. | |
198 | * testsuite/Makefile.am (plugin_test_defsym): New test. | |
199 | * testsuite/Makefile.in: Regenerate. | |
200 | * testsuite/plugin_test.c: Check for new symbol resolution. | |
201 | * testsuite/plugin_test_defsym.sh: New script. | |
202 | * testsuite/plugin_test_defsym.c: New test source. | |
203 | ||
407aa07c AM |
204 | 2018-02-07 Alan Modra <amodra@gmail.com> |
205 | ||
206 | Revert 2018-01-17 Alan Modra <amodra@gmail.com> | |
207 | * options.h: Remove --speculate-indirect-jumps support. | |
208 | * powerpc.cc: Likewise. | |
209 | ||
c8334458 CC |
210 | 2018-02-02 Cary Coutant <ccoutant@gmail.com> |
211 | ||
212 | * PR gold/22776 | |
213 | * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog): Add | |
214 | support for DWARF-4 line number tables. | |
215 | * dwarf_reader.h (Sized_dwarf_line_info::max_ops_per_insn): New field. | |
216 | ||
691d2e9a AM |
217 | 2018-01-18 Alan Modra <amodra@gmail.com> |
218 | ||
219 | * powerpc.cc (param_plt_align): New function supplying default | |
220 | --plt-align values. Use it.. | |
221 | (Stub_table::plt_call_align): ..here, and.. | |
222 | (Output_data_glink::global_entry_align): ..here. | |
223 | (Stub_table::stub_align): Correct 32-bit minimum alignment. | |
224 | ||
1be5d8d3 AM |
225 | 2018-01-17 Alan Modra <amodra@gmail.com> |
226 | ||
227 | * options.h (speculate_indirect_jumps): New option. | |
228 | * powerpc.cc (beqctrm, beqctrlm, crseteq): New insn constants. | |
229 | (output_bctr): New function. | |
230 | (Stub_table::plt_call_size): Add space for speculation barrier. | |
231 | (Stub_table::branch_stub_size): Likewise. | |
232 | (Output_data_glink::pltresolve_size): Likewise. | |
233 | (Stub_table::do_write): Output speculation barriers. | |
234 | ||
9e390558 AM |
235 | 2018-01-17 Alan Modra <amodra@gmail.com> |
236 | ||
237 | * options.h (plt_align): Support for PowerPC32 too. | |
238 | * powerpc.cc (Stub_table::stub_align): Heed --plt-align for 32-bit. | |
239 | (Stub_table::plt_call_size, branch_stub_size): Tidy. | |
240 | (Stub_table::plt_call_align): Implement using stub_align. | |
241 | (Output_data_glink::global_entry_align): New function. | |
242 | (Output_data_glink::global_entry_off): New function. | |
243 | (Output_data_glink::global_entry_address): Use global_entry_off. | |
244 | (Output_data_glink::pltresolve_size): New function, replacing | |
245 | pltresolve_size_ constant. Update all uses. | |
246 | (Output_data_glink::add_global_entry): Align offset. | |
247 | (Output_data_glink::set_final_data_size): Use global_entry_align. | |
248 | (Stub_table::do_write): Don't pad __glink_PLTrelsolve with nops. | |
249 | Tidy stub output. Use global_entry_off. | |
250 | ||
930b5f8b CC |
251 | 2018-01-15 Cary Coutant <ccoutant@gmail.com> |
252 | ||
253 | PR gold/22694 | |
254 | * options.h (-fuse-ld): Add correct helparg. | |
255 | ||
616dcb87 NC |
256 | 2018-01-15 Nick Clifton <nickc@redhat.com> |
257 | ||
258 | * po/uk.po: Updated Ukranian translation. | |
259 | ||
3957a496 NC |
260 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
261 | ||
262 | * po/gold.pot: Regenerated. | |
263 | ||
faf766e3 NC |
264 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
265 | ||
266 | 2.30 branch created. | |
267 | ||
27f7b092 CC |
268 | 2018-01-12 Cary Coutant <ccoutant@gmail.com> |
269 | ||
270 | * NEWS: Add new features in 1.15. | |
271 | * version.cc (version_string): Bump to 1.15. | |
272 | ||
273 | 2018-01-12 Sterling Augustine <saugustine@google.com> | |
b4b07ef1 EC |
274 | |
275 | * cref.cc (Cref_inputs::Cref_table_compare::operator): Add | |
276 | conditionals and calls to is_forwarder. | |
277 | ||
219d1afa AM |
278 | 2018-01-03 Alan Modra <amodra@gmail.com> |
279 | ||
280 | Update year range in copyright notice of all files. | |
281 | ||
1e563868 | 282 | For older changes see ChangeLog-2017 |
3499769a | 283 | \f |
1e563868 | 284 | Copyright (C) 2018 Free Software Foundation, Inc. |
3499769a AM |
285 | |
286 | Copying and distribution of this file, with or without modification, | |
287 | are permitted in any medium without royalty provided the copyright | |
288 | notice and this notice are preserved. | |
289 | ||
290 | Local Variables: | |
291 | mode: change-log | |
292 | left-margin: 8 | |
293 | fill-column: 74 | |
294 | version-control: never | |
295 | End: |