Use top-level config support for enabling plugins.
[deliverable/binutils-gdb.git] / gold / ChangeLog
CommitLineData
24538276
CC
12018-03-28 Cary Coutant <ccoutant@gmail.com>
2
3 PR gold/21423
4 PR gold/22500
5 * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS.
6 Replace check for --enable-plugins with AC_PLUGINS.
7 * options.cc (parse_plugin, parse_plugin_opt): Remove #ifdef.
8 (General_options::finalize): Check if plugins enabled.
9 * options.h (--plugin, --plugin-opt): Define even if plugins not
10 enabled.
11 * Makefile.in: Regenerate.
12 * aclocal.m4: Regenerate.
13 * configure: Regenerate.
14 * testsuite/Makefile.in: Regenerate.
15
e82e6b2b
CC
162018-03-28 Cary Coutant <ccoutant@gmail.com>
17
18 PR gold/22969
19 * aarch64-reloc.def: Add TLSLE_LDST* relocations.
20 * aarch64.cc (Target_aarch64::optimize_tls_reloc): Likewise.
21 (Target_aarch64::Scan::local): Likewise.
22 (Target_aarch64::Scan::global): Likewise.
23 (Target_aarch64::Relocate::relocate): Likewise.
24 (Target_aarch64::Relocate::relocate_tls): Likewise.
25
9c75b456
RM
262018-03-27 Roland McGrath <mcgrathr@google.com>
27
28 * testsuite/split_x86_64.sh: Fix bad regexp.
29
0b7a4aa6
CC
302018-03-26 Cary Coutant <ccoutant@gmail.com>
31
0b7a4aa6
CC
32 PR gold/22868
33 * plugin.cc (Sized_pluginobj::do_add_symbols): Use a real section
34 index instead of SHN_ABS for defined symbols.
35 * testsuite/Makefile.am (plugin_pr22868): New test case.
36 * testsuite/Makefile.in: Regenerate
37 * testsuite/plugin_pr22868.sh: New test script.
38 * testsuite/plugin_pr22868_a.c: New source file.
39 * testsuite/plugin_pr22868_b.c: New source file.
40
8da9a904
CC
412018-03-23 Cary Coutant <ccoutant@gmail.com>
42
43 * plugin.cc (link_or_copy_file): Remove newlines from warning messages.
44 Add pedantic check for return value from ::write.
45
3215deaa
CC
462018-03-23 Cary Coutant <ccoutant@gmail.com>
47
48 * debug.h (DEBUG_PLUGIN): New constant.
49 (DEBUG_ALL): Add DEBUG_PLUGIN.
50 (debug_string_to_enum): Likewise.
51 * plugin.cc (make_sized_plugin_object): Add filename parameter.
52 (Plugin_recorder): New class.
53 (Plugin_manager::~Plugin_manager): Delete recorder_.
54 (Plugin_manager::load_plugins): Create and initialize recorder_.
55 (Plugin_manager::claim_file): Record claimed and unclaimed files.
56 (Plugin_manager::make_plugin_object): Use object name as name for
57 plugin object, if available.
58 (Plugin_manager::add_input_file): Record replacement files.
59 (Sized_pluginobj::do_add_symbols): Record plugin symbols.
60 (Plugin_finish::run): Call Plugin_recorder::finish().
61 (make_sized_plugin_object): Add filename parameter and pass to
62 Sized_pluginobj constructor.
63 * plugin.h (Plugin::filename): New method.
64 (Plugin::recorder): New method.
65 (Plugin::recorder_): New data member.
66
779bdadb
ST
672018-03-07 Sriraman Tallam <tmsriram@google.com>
68
69 * layout.cc (Layout::default_section_order): Check for text section
70 prefixes.
71 (Layout::text_section_name_mapping): New static member.
72 (Layout::text_section_name_mapping_count): New static member.
73 (Layout::match_section_name): New static function.
74 (Layout::output_section_name): Check for text section prefixes.
75 * layout.h (Output_section_order::ORDER_TEXT_HOT): New enum value.
76 (Output_section_order::ORDER_TEXT_STARTUP): New enum value.
77 (Output_section_order::ORDER_TEXT_EXIT): New enum value.
78 (Output_section_order::ORDER_TEXT_UNLIKELY): New enum value.
79 (Layout::text_section_name_mapping): New static member.
80 (Layout::text_section_name_mapping_count): New static member.
81 (Layout::match_section_name): New static function.
82 * options.h (keep_text_section_prefix): New -z option.
83 * testsuite/Makefile.am (keep_text_section_prefix): New test.
84 * testsuite/Makefile.in: Regenerate.
85 * testsuite/keep_text_section_prefix.cc: New test source.
86 * testsuite/keep_text_section_prefix.sh: New test script.
87
0b65c07b
ST
882018-02-22 Sriraman Tallam <tmsriram@google.com>
89
90 * plugin.cc (get_wrap_symbols): New plugin interface.
91 (load): Add get_wrap_symbols to transfer vector.
92 * plugin-api.h (ld_plugin_get_wrap_symbols): New plugin interface.
93 * testsuite/plugin_test.c (onload): Call and check get_wrap_symbols
94 interface.
95 * testsuite/plugin_test_wrap_symbols.sh: New test script.
96 * testsuite/plugin_test_wrap_symbols_1.cc: New file.
97 * testsuite/plugin_test_wrap_symbols_2.cc: New file.
98 * testsuite/Makefile.am (plugin_test_wrap_symbols): New test.
99 * testsuite/Makefile.in: Regenerate.
100
3281b315
ST
1012018-02-07 Sriraman Tallam <tmsriram@google.com>
102
103 * expression.cc (Symbol_expression::set_expr_sym_in_real_elf):
104 New method.
105 (Unary_expression::set_expr_sym_in_real_elf): New method.
106 (Binary_expression::set_expr_sym_in_real_elf): New method.
107 (Trinary_expression::set_expr_sym_in_real_elf): New method.
108 * plugin.cc (get_symbol_resolution_info): Fix symbol resolution if
109 defined or used in defsyms.
110 * plugin.h (Plugin_manager::is_defsym_def): New method.
111 (Plugin_manager::Plugin_manager): Initialize defsym_defines_set_.
112 (Plugin_manager::defsym_defines_set_): New member.
113 (Plugin_manager::Defsym_defines_set): New typedef.
114 * script.cc (Script_options::set_defsym_uses_in_real_elf): New method.
115 (Script_options::find_defsym_defs): New method.
116 * script.h (Expression::set_expr_sym_in_real_elf): New method.
117 (Symbol_assignment::is_defsym): New method.
118 (Symbol_assignment::value): New method.
119 (Script_options::find_defsym_defs): New method.
120 (Script_options::set_defsym_uses_in_real_elf): New method.
121 * testsuite/Makefile.am (plugin_test_defsym): New test.
122 * testsuite/Makefile.in: Regenerate.
123 * testsuite/plugin_test.c: Check for new symbol resolution.
124 * testsuite/plugin_test_defsym.sh: New script.
125 * testsuite/plugin_test_defsym.c: New test source.
126
407aa07c
AM
1272018-02-07 Alan Modra <amodra@gmail.com>
128
129 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
130 * options.h: Remove --speculate-indirect-jumps support.
131 * powerpc.cc: Likewise.
132
c8334458
CC
1332018-02-02 Cary Coutant <ccoutant@gmail.com>
134
135 * PR gold/22776
136 * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog): Add
137 support for DWARF-4 line number tables.
138 * dwarf_reader.h (Sized_dwarf_line_info::max_ops_per_insn): New field.
139
691d2e9a
AM
1402018-01-18 Alan Modra <amodra@gmail.com>
141
142 * powerpc.cc (param_plt_align): New function supplying default
143 --plt-align values. Use it..
144 (Stub_table::plt_call_align): ..here, and..
145 (Output_data_glink::global_entry_align): ..here.
146 (Stub_table::stub_align): Correct 32-bit minimum alignment.
147
1be5d8d3
AM
1482018-01-17 Alan Modra <amodra@gmail.com>
149
150 * options.h (speculate_indirect_jumps): New option.
151 * powerpc.cc (beqctrm, beqctrlm, crseteq): New insn constants.
152 (output_bctr): New function.
153 (Stub_table::plt_call_size): Add space for speculation barrier.
154 (Stub_table::branch_stub_size): Likewise.
155 (Output_data_glink::pltresolve_size): Likewise.
156 (Stub_table::do_write): Output speculation barriers.
157
9e390558
AM
1582018-01-17 Alan Modra <amodra@gmail.com>
159
160 * options.h (plt_align): Support for PowerPC32 too.
161 * powerpc.cc (Stub_table::stub_align): Heed --plt-align for 32-bit.
162 (Stub_table::plt_call_size, branch_stub_size): Tidy.
163 (Stub_table::plt_call_align): Implement using stub_align.
164 (Output_data_glink::global_entry_align): New function.
165 (Output_data_glink::global_entry_off): New function.
166 (Output_data_glink::global_entry_address): Use global_entry_off.
167 (Output_data_glink::pltresolve_size): New function, replacing
168 pltresolve_size_ constant. Update all uses.
169 (Output_data_glink::add_global_entry): Align offset.
170 (Output_data_glink::set_final_data_size): Use global_entry_align.
171 (Stub_table::do_write): Don't pad __glink_PLTrelsolve with nops.
172 Tidy stub output. Use global_entry_off.
173
930b5f8b
CC
1742018-01-15 Cary Coutant <ccoutant@gmail.com>
175
176 PR gold/22694
177 * options.h (-fuse-ld): Add correct helparg.
178
616dcb87
NC
1792018-01-15 Nick Clifton <nickc@redhat.com>
180
181 * po/uk.po: Updated Ukranian translation.
182
3957a496
NC
1832018-01-13 Nick Clifton <nickc@redhat.com>
184
185 * po/gold.pot: Regenerated.
186
faf766e3
NC
1872018-01-13 Nick Clifton <nickc@redhat.com>
188
189 2.30 branch created.
190
27f7b092
CC
1912018-01-12 Cary Coutant <ccoutant@gmail.com>
192
193 * NEWS: Add new features in 1.15.
194 * version.cc (version_string): Bump to 1.15.
195
1962018-01-12 Sterling Augustine <saugustine@google.com>
b4b07ef1
EC
197
198 * cref.cc (Cref_inputs::Cref_table_compare::operator): Add
199 conditionals and calls to is_forwarder.
200
219d1afa
AM
2012018-01-03 Alan Modra <amodra@gmail.com>
202
203 Update year range in copyright notice of all files.
204
1e563868 205For older changes see ChangeLog-2017
3499769a 206\f
1e563868 207Copyright (C) 2018 Free Software Foundation, Inc.
3499769a
AM
208
209Copying and distribution of this file, with or without modification,
210are permitted in any medium without royalty provided the copyright
211notice and this notice are preserved.
212
213Local Variables:
214mode: change-log
215left-margin: 8
216fill-column: 74
217version-control: never
218End:
This page took 0.160163 seconds and 4 git commands to generate.