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