PR16794, gold ignores R_386_GOTOFF addend
[deliverable/binutils-gdb.git] / gold / ChangeLog
1 2019-09-28 Alan Modra <amodra@gmail.com>
2
3 PR 16794
4 * i386.cc (Target_i386::Relocate::relocate <R_386_GOTOFF>): Don't
5 ignore addend, apply using pcrel32.
6 * x86_64.cc (Target_x86_64::Relocate::relocate <R_X86_64_GOTOFF64>):
7 Similarly use pcrel64.
8
9 2019-09-24 Nick Clifton <nickc@redhat.com>
10
11 * descriptors.cc: Include <string>
12
13 2019-09-23 Alan Modra <amodra@gmail.com>
14
15 * testsuite/plugin_new_section_layout.c (new_input_hook): Correct
16 return status enum values.
17
18 2019-09-20 Alan Modra <amodra@gmail.com>
19
20 PR 24768
21 * layout.cc (Layout::Layout): Init lto_slim_object_.
22 * object.cc (Sized_relobj_file::do_layout): Wrap overlong line.
23 Don't use C cast. Validate section size. Don't copy contents.
24
25 2019-09-20 Alan Modra <amodra@gmail.com>
26
27 * powerpc.cc (Target_powerpc::Scan::check_non_pic): Move REL24
28 to 32-bit supported.
29
30 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
31
32 * testsuite/Makefile.in: Re-generate.
33
34 2019-09-09 Phil Blundell <pb@pbcl.net>
35
36 binutils 2.33 branch created.
37
38 2019-08-16 Martin Liska <mliska@suse.cz>
39
40 PR ld/24912
41 * object.cc (big_endian>::do_layout): Do not report error,
42 but only set a flag.
43 (big_endian>::do_add_symbols): Report error only for when
44 relocatable.
45
46 2019-08-02 Alan Modra <amodra@gmail.com>
47
48 * powerpc.cc (Target_powerpc::Scan::get_reference_flags): Set
49 flags for new relocations, and some missing older relocs.
50 (Target_powerpc::Scan::local): Handle new pcrel tls relocs.
51 Call set_has_static_tls for tprel relocs.
52 (Target_powerpc::Scan::global): Likewise.
53 (Target_powerpc::Relocate::relocate): Handle new pcrel tls relocs.
54
55 2019-08-02 Alan Modra <amodra@gmail.com>
56
57 * powerpc.cc (Powerpc_relocate_functions::rela, rela_ua): Perform
58 signed right shift for signed overflow check.
59
60 2019-07-29 Martin Liska <mliska@suse.cz>
61
62 PR 24768
63 * layout.h (class Layout): Add is_lto_slim_object and
64 set_lto_slim_object.
65 * object.cc (struct lto_section): Add lto_slim_object_.
66 (big_endian>::do_layout): Parse content of
67 .gnu_lto_.lto section.
68 (big_endian>::do_add_symbols): Report error for a missing
69 LTO plugin.
70
71 2019-07-13 Alan Modra <amodra@gmail.com>
72
73 * powerpc.cc (xlate_pcrel_opt): New function.
74 (Target_powerpc::Relocate::relocate): Optimise PCREL34 and
75 GOT_PCREL34 sequences marked with PCREL_OPT.
76
77 2019-07-13 Alan Modra <amodra@gmail.com>
78
79 * powerpc.cc (Powerpc_relobj::make_got_relative): New function.
80 (relative_value_is_known): New functions.
81 (Target_powerpc::Relocate::relocate): Edit code using
82 GOT16_HA, GOT16_LO_DS, and GOT_PCREL34 relocs.
83
84 2019-07-13 Alan Modra <amodra@gmail.com>
85
86 * powerpc.cc (Target_powerpc): Add powerxx_stubs_ and accessor
87 functions.
88 (Target_powerpc::maybe_skip_tls_get_addr_call): Handle PLT_PCREL34
89 and PLT_PCREL34_NOTOC relocs.
90 (Powerpc_relocate_functions): Add addr34, addr34_hi, addr34_ha,
91 addr28, addr16_higher34, addr16_highera34, addr16_highest34,
92 addr16_highest34a functions.
93 (li_11_0, ori_11_11_0, sldi_11_11_34): Define.
94 (paddi_12_pc, pld_12_pc, pnop): Define.
95 (d34, ha34): New inline functions.
96 (Stub_table::add_plt_call_entry): Handle powerxx_stubs.
97 (Stub_table::add_eh_frame): Likewise.
98 (build_powerxx_offset): New function.
99 (Stub_table::plt_call_size): Handle powerxx_stubs.
100 (Stub_table::branch_stub_size): Likewise.
101 (Stub_table::do_write): Likewise.
102 (Target_powerpc::Scan::get_reference_flags): Handle new relocs.
103 (Target_powerpc::Scan::reloc_needs_plt_for_ifunc: Likewise.
104 (Target_powerpc::Scan::local, global, relocate): Likewise.
105
106 2019-07-13 Alan Modra <amodra@gmail.com>
107
108 * ehframe.cc (Fde::operator==): Delete.
109 (Cie::remove_fde): Delete.
110 (Eh_frame::remove_ehframe_for_plt): Delete fde_data and fde_length
111 parameters. Remove all post-map plt FDEs.
112 * ehframe.h (Fde:post_map): Make const, add variant to compare plt.
113 (Fde::operator==): Delete.
114 (Cie::remove_fde): Implement here.
115 (Cie::last_fde): New accessor.
116 (Eh_frame::remove_ehframe_for_plt): Update prototype.
117 * layout.cc (Layout::remove_eh_frame_for_plt): Delete fde_data and
118 fde_length parameters.
119 * layout.h (Layout::remove_eh_frame_for_plt): Update prototype.
120 * powerpc.cc (Stub_table::tls_get_addr_opt_bctrl_): Delete.
121 (Stub_table::plt_fde_len_, plt_fde_, init_plt_fde): Delete.
122 (Stub_table::add_plt_call_entry): Don't set tls_get_addr_opt_bctrl_.
123 (eh_advance): New function.
124 (stub_sort): New function.
125 (Stub_table::add_eh_frame): Emit eh_frame for notoc plt calls and
126 branches as well as __tls_get_addr_opt plt call stub.
127 (Stub_table::remove_eh_frame): Update to suit.
128
129 2019-07-13 Alan Modra <amodra@gmail.com>
130
131 * powerpc.cc (Target_powerpc::maybe_skip_tls_get_addr_call): Handle
132 notoc calls.
133 (is_branch_reloc): Template on size. Return true for REL24_NOTOC.
134 Update all callers.
135 (max_branch_delta): Likewise.
136 (Target_powerpc::Branch_info::make_stub): Add a stub for notoc
137 calls to functions needing a valid toc pointer.
138 (Target_powerpc::do_relax): Layout stubs again if any need resize.
139 (add_12_11_12, addi_12_11, addis_12_11, ldx_12_11_12, ori_12_12_0),
140 (oris_12_12_0, sldi_12_12_32): Define.
141 (Stub_table::Plt_stub_ent): Add notoc_ and iter_ fields.
142 (Stub_table::Branch_stub_key, Branch_stub_key_hash): Rename from
143 Branch_stub_ent and Branch_stub_ent hash. Remove save_res_ from key.
144 (Stub_table::Branch_stub_ent): New struct.
145 (class Stub_table): Add need_resize and resizing vars.
146 (Stub_table::need_resize, branch_size): New accessors.
147 (Stub_table::set_resizing): New function.
148 (Stub_table::add_plt_call_entry): Handle notoc calls and resizing
149 on seeing such or a tocsave stubs after a normal stub using the
150 same sym.
151 (Stub_table::add_long_branch_entry): Similarly.
152 (Stub_table::find_long_branch_entry): Return a Branch_stub_ent*.
153 (Stub_table::define_stub_syms): Adjust
154 (Stub_table::build_tls_opt_head, build_tls_opt_tail): New functions.
155 (build_notoc_offset): New function.
156 (Stub_table::plt_call_size): Move out of line. Handle notoc calls.
157 (Stub_table::branch_stub_size): Similarly.
158 (Stub_table::do_write): Separate loop for ELFv2 stubs, handling
159 notoc calls. Simplify ELFv1 loop. Output notoc branch stubs.
160 Use build_tls_opt_head and build_tls_opt_tail.
161 (Target_powerpc::Scan::get_reference_flags): Handle REL24_NOTOC.
162 (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Likewise,
163 and PLTSEQ_NOTOC and PLTCALL_NOTOC.
164 (Target_powerpc::Scan::local, global, relocate): Likewise.
165
166 2019-06-28 Alan Modra <amodra@gmail.com>
167
168 * powerpc.cc (Target_powerpc::Relocate::relocate): Don't look
169 at next/previous reloc when relnum is -1.
170
171 2019-06-28 Alan Modra <amodra@gmail.com>
172
173 * powerpc.cc (Stub_table::plt_error): New function.
174 (Stub_table::do_write): Use it.
175 (Output_data_glink::do_write): Don't segfault emitting linkage
176 table error.
177
178 2019-06-28 Alan Modra <amodra@gmail.com>
179
180 * powerpc.cc (Target_powerpc::Scan::get_reference_flags): Handle
181 REL16_HIGH* relocs.
182 (Target_powerpc::Scan::local): Likewise.
183 (Target_powerpc::Scan::global): Likewise.
184 (Target_powerpc::Relocate::relocate): Likewise.
185
186 2019-06-10 Martin Liska <mliska@suse.cz>
187
188 * errors.h: Include string.
189
190 2019-05-10 Joshua Oreman <oremanj@hudson-trading.com>
191
192 PR gold/21066
193 * gc.h (gc_process_relocs): Track relocations in .eh_frame sections
194 when ICF is enabled, even though the .eh_frame sections themselves
195 are not foldable.
196 * icf.cc (get_section_contents): Change arguments to permit operation
197 on just part of a section. Include extra identity regions in the
198 referring section's contents recursively.
199 (match_sections): Lock object here instead of in get_section_contents
200 so that get_section_contents can operate recursively.
201 (Icf::add_ehframe_links): New method.
202 (Icf::find_identical_sections): Pass .eh_frame sections to
203 add_ehframe_links(). Increase default iteration count from 2 to 3
204 because handling exception info typically requires one extra iteration.
205 * icf.h (Icf::extra_identity_list_): New data member with accessor.
206 (is_section_foldable_candidate): Include .gcc_except_table sections.
207 * options.h: Update documentation for new default ICF iteration count.
208 * testsuite/Makefile.am (icf_test_pr21066): New test case.
209 * testsuite/Makefile.in: Regenerate.
210 * testsuite/icf_test_pr21066.cc: New source file.
211 * testsuite/icf_test_pr21066.sh: New test script.
212
213 2019-02-19 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
214
215 PR gold/23870
216 * aarch64.cc (Target_aarch64::Scan::global): Check if a symbol with
217 R_AARCH64_MOVW_.ABS_* relocations requires a PLT entry.
218 * testsuite/Makefile.am: Add aarch64_pr23870 test case.
219 * testsuite/Makefile.in: Regenerate.
220 * testsuite/aarch64_pr23870_bar.c: New file.
221 * testsuite/aarch64_pr23870_foo.c: New file.
222 * testsuite/aarch64_pr23870_main.S: New file.
223
224 2019-02-12 Nick Clifton <nickc@redhat.com>
225
226 * po/fr.po: Updated French translation.
227
228 2019-01-21 Nick Clifton <nickc@redhat.com>
229
230 * po/uk.po: Updated Ukranian translation.
231
232 2019-01-19 Nick Clifton <nickc@redhat.com>
233
234 * po/gold.pot: Regenerate.
235
236 2018-06-24 Nick Clifton <nickc@redhat.com>
237
238 2.32 branch created.
239
240 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
241
242 * configure: Regenerate.
243
244 2019-01-01 Alan Modra <amodra@gmail.com>
245
246 Update year range in copyright notice of all files.
247
248 For older changes see ChangeLog-2018
249 \f
250 Copyright (C) 2019 Free Software Foundation, Inc.
251
252 Copying and distribution of this file, with or without modification,
253 are permitted in any medium without royalty provided the copyright
254 notice and this notice are preserved.
255
256 Local Variables:
257 mode: change-log
258 left-margin: 8
259 fill-column: 74
260 version-control: never
261 End:
This page took 0.034619 seconds and 5 git commands to generate.