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