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