1 2018-03-28 Cary Coutant <ccoutant@gmail.com>
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
11 * Makefile.in: Regenerate.
12 * aclocal.m4: Regenerate.
13 * configure: Regenerate.
14 * testsuite/Makefile.in: Regenerate.
16 2018-03-28 Cary Coutant <ccoutant@gmail.com>
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.
26 2018-03-27 Roland McGrath <mcgrathr@google.com>
28 * testsuite/split_x86_64.sh: Fix bad regexp.
30 2018-03-26 Cary Coutant <ccoutant@gmail.com>
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.
41 2018-03-23 Cary Coutant <ccoutant@gmail.com>
43 * plugin.cc (link_or_copy_file): Remove newlines from warning messages.
44 Add pedantic check for return value from ::write.
46 2018-03-23 Cary Coutant <ccoutant@gmail.com>
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.
67 2018-03-07 Sriraman Tallam <tmsriram@google.com>
69 * layout.cc (Layout::default_section_order): Check for text section
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.
88 2018-02-22 Sriraman Tallam <tmsriram@google.com>
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
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.
101 2018-02-07 Sriraman Tallam <tmsriram@google.com>
103 * expression.cc (Symbol_expression::set_expr_sym_in_real_elf):
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.
127 2018-02-07 Alan Modra <amodra@gmail.com>
129 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
130 * options.h: Remove --speculate-indirect-jumps support.
131 * powerpc.cc: Likewise.
133 2018-02-02 Cary Coutant <ccoutant@gmail.com>
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.
140 2018-01-18 Alan Modra <amodra@gmail.com>
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.
148 2018-01-17 Alan Modra <amodra@gmail.com>
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.
158 2018-01-17 Alan Modra <amodra@gmail.com>
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.
174 2018-01-15 Cary Coutant <ccoutant@gmail.com>
177 * options.h (-fuse-ld): Add correct helparg.
179 2018-01-15 Nick Clifton <nickc@redhat.com>
181 * po/uk.po: Updated Ukranian translation.
183 2018-01-13 Nick Clifton <nickc@redhat.com>
185 * po/gold.pot: Regenerated.
187 2018-01-13 Nick Clifton <nickc@redhat.com>
191 2018-01-12 Cary Coutant <ccoutant@gmail.com>
193 * NEWS: Add new features in 1.15.
194 * version.cc (version_string): Bump to 1.15.
196 2018-01-12 Sterling Augustine <saugustine@google.com>
198 * cref.cc (Cref_inputs::Cref_table_compare::operator): Add
199 conditionals and calls to is_forwarder.
201 2018-01-03 Alan Modra <amodra@gmail.com>
203 Update year range in copyright notice of all files.
205 For older changes see ChangeLog-2017
207 Copyright (C) 2018 Free Software Foundation, Inc.
209 Copying and distribution of this file, with or without modification,
210 are permitted in any medium without royalty provided the copyright
211 notice and this notice are preserved.
217 version-control: never