1 2018-03-27 Roland McGrath <mcgrathr@google.com>
3 * testsuite/split_x86_64.sh: Fix bad regexp.
5 2018-03-26 Cary Coutant <ccoutant@gmail.com>
9 * plugin.cc (Sized_pluginobj::do_add_symbols): Use a real section
10 index instead of SHN_ABS for defined symbols.
11 * testsuite/Makefile.am (plugin_pr22868): New test case.
12 * testsuite/Makefile.in: Regenerate
13 * testsuite/plugin_pr22868.sh: New test script.
14 * testsuite/plugin_pr22868_a.c: New source file.
15 * testsuite/plugin_pr22868_b.c: New source file.
17 2018-03-23 Cary Coutant <ccoutant@gmail.com>
19 * plugin.cc (link_or_copy_file): Remove newlines from warning messages.
20 Add pedantic check for return value from ::write.
22 2018-03-23 Cary Coutant <ccoutant@gmail.com>
24 * debug.h (DEBUG_PLUGIN): New constant.
25 (DEBUG_ALL): Add DEBUG_PLUGIN.
26 (debug_string_to_enum): Likewise.
27 * plugin.cc (make_sized_plugin_object): Add filename parameter.
28 (Plugin_recorder): New class.
29 (Plugin_manager::~Plugin_manager): Delete recorder_.
30 (Plugin_manager::load_plugins): Create and initialize recorder_.
31 (Plugin_manager::claim_file): Record claimed and unclaimed files.
32 (Plugin_manager::make_plugin_object): Use object name as name for
33 plugin object, if available.
34 (Plugin_manager::add_input_file): Record replacement files.
35 (Sized_pluginobj::do_add_symbols): Record plugin symbols.
36 (Plugin_finish::run): Call Plugin_recorder::finish().
37 (make_sized_plugin_object): Add filename parameter and pass to
38 Sized_pluginobj constructor.
39 * plugin.h (Plugin::filename): New method.
40 (Plugin::recorder): New method.
41 (Plugin::recorder_): New data member.
43 2018-03-07 Sriraman Tallam <tmsriram@google.com>
45 * layout.cc (Layout::default_section_order): Check for text section
47 (Layout::text_section_name_mapping): New static member.
48 (Layout::text_section_name_mapping_count): New static member.
49 (Layout::match_section_name): New static function.
50 (Layout::output_section_name): Check for text section prefixes.
51 * layout.h (Output_section_order::ORDER_TEXT_HOT): New enum value.
52 (Output_section_order::ORDER_TEXT_STARTUP): New enum value.
53 (Output_section_order::ORDER_TEXT_EXIT): New enum value.
54 (Output_section_order::ORDER_TEXT_UNLIKELY): New enum value.
55 (Layout::text_section_name_mapping): New static member.
56 (Layout::text_section_name_mapping_count): New static member.
57 (Layout::match_section_name): New static function.
58 * options.h (keep_text_section_prefix): New -z option.
59 * testsuite/Makefile.am (keep_text_section_prefix): New test.
60 * testsuite/Makefile.in: Regenerate.
61 * testsuite/keep_text_section_prefix.cc: New test source.
62 * testsuite/keep_text_section_prefix.sh: New test script.
64 2018-02-22 Sriraman Tallam <tmsriram@google.com>
66 * plugin.cc (get_wrap_symbols): New plugin interface.
67 (load): Add get_wrap_symbols to transfer vector.
68 * plugin-api.h (ld_plugin_get_wrap_symbols): New plugin interface.
69 * testsuite/plugin_test.c (onload): Call and check get_wrap_symbols
71 * testsuite/plugin_test_wrap_symbols.sh: New test script.
72 * testsuite/plugin_test_wrap_symbols_1.cc: New file.
73 * testsuite/plugin_test_wrap_symbols_2.cc: New file.
74 * testsuite/Makefile.am (plugin_test_wrap_symbols): New test.
75 * testsuite/Makefile.in: Regenerate.
77 2018-02-07 Sriraman Tallam <tmsriram@google.com>
79 * expression.cc (Symbol_expression::set_expr_sym_in_real_elf):
81 (Unary_expression::set_expr_sym_in_real_elf): New method.
82 (Binary_expression::set_expr_sym_in_real_elf): New method.
83 (Trinary_expression::set_expr_sym_in_real_elf): New method.
84 * plugin.cc (get_symbol_resolution_info): Fix symbol resolution if
85 defined or used in defsyms.
86 * plugin.h (Plugin_manager::is_defsym_def): New method.
87 (Plugin_manager::Plugin_manager): Initialize defsym_defines_set_.
88 (Plugin_manager::defsym_defines_set_): New member.
89 (Plugin_manager::Defsym_defines_set): New typedef.
90 * script.cc (Script_options::set_defsym_uses_in_real_elf): New method.
91 (Script_options::find_defsym_defs): New method.
92 * script.h (Expression::set_expr_sym_in_real_elf): New method.
93 (Symbol_assignment::is_defsym): New method.
94 (Symbol_assignment::value): New method.
95 (Script_options::find_defsym_defs): New method.
96 (Script_options::set_defsym_uses_in_real_elf): New method.
97 * testsuite/Makefile.am (plugin_test_defsym): New test.
98 * testsuite/Makefile.in: Regenerate.
99 * testsuite/plugin_test.c: Check for new symbol resolution.
100 * testsuite/plugin_test_defsym.sh: New script.
101 * testsuite/plugin_test_defsym.c: New test source.
103 2018-02-07 Alan Modra <amodra@gmail.com>
105 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
106 * options.h: Remove --speculate-indirect-jumps support.
107 * powerpc.cc: Likewise.
109 2018-02-02 Cary Coutant <ccoutant@gmail.com>
112 * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog): Add
113 support for DWARF-4 line number tables.
114 * dwarf_reader.h (Sized_dwarf_line_info::max_ops_per_insn): New field.
116 2018-01-18 Alan Modra <amodra@gmail.com>
118 * powerpc.cc (param_plt_align): New function supplying default
119 --plt-align values. Use it..
120 (Stub_table::plt_call_align): ..here, and..
121 (Output_data_glink::global_entry_align): ..here.
122 (Stub_table::stub_align): Correct 32-bit minimum alignment.
124 2018-01-17 Alan Modra <amodra@gmail.com>
126 * options.h (speculate_indirect_jumps): New option.
127 * powerpc.cc (beqctrm, beqctrlm, crseteq): New insn constants.
128 (output_bctr): New function.
129 (Stub_table::plt_call_size): Add space for speculation barrier.
130 (Stub_table::branch_stub_size): Likewise.
131 (Output_data_glink::pltresolve_size): Likewise.
132 (Stub_table::do_write): Output speculation barriers.
134 2018-01-17 Alan Modra <amodra@gmail.com>
136 * options.h (plt_align): Support for PowerPC32 too.
137 * powerpc.cc (Stub_table::stub_align): Heed --plt-align for 32-bit.
138 (Stub_table::plt_call_size, branch_stub_size): Tidy.
139 (Stub_table::plt_call_align): Implement using stub_align.
140 (Output_data_glink::global_entry_align): New function.
141 (Output_data_glink::global_entry_off): New function.
142 (Output_data_glink::global_entry_address): Use global_entry_off.
143 (Output_data_glink::pltresolve_size): New function, replacing
144 pltresolve_size_ constant. Update all uses.
145 (Output_data_glink::add_global_entry): Align offset.
146 (Output_data_glink::set_final_data_size): Use global_entry_align.
147 (Stub_table::do_write): Don't pad __glink_PLTrelsolve with nops.
148 Tidy stub output. Use global_entry_off.
150 2018-01-15 Cary Coutant <ccoutant@gmail.com>
153 * options.h (-fuse-ld): Add correct helparg.
155 2018-01-15 Nick Clifton <nickc@redhat.com>
157 * po/uk.po: Updated Ukranian translation.
159 2018-01-13 Nick Clifton <nickc@redhat.com>
161 * po/gold.pot: Regenerated.
163 2018-01-13 Nick Clifton <nickc@redhat.com>
167 2018-01-12 Cary Coutant <ccoutant@gmail.com>
169 * NEWS: Add new features in 1.15.
170 * version.cc (version_string): Bump to 1.15.
172 2018-01-12 Sterling Augustine <saugustine@google.com>
174 * cref.cc (Cref_inputs::Cref_table_compare::operator): Add
175 conditionals and calls to is_forwarder.
177 2018-01-03 Alan Modra <amodra@gmail.com>
179 Update year range in copyright notice of all files.
181 For older changes see ChangeLog-2017
183 Copyright (C) 2018 Free Software Foundation, Inc.
185 Copying and distribution of this file, with or without modification,
186 are permitted in any medium without royalty provided the copyright
187 notice and this notice are preserved.
193 version-control: never