[BFD, LD, AArch64, 2/3] Add --force-bti to enable BTI and to select BTI enabled PLTs
[external/binutils.git] / ld / ChangeLog
1 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
2             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3
4         * NEWS: Document --force-bti.
5         * emultempl/aarch64elf.em (plt_type, bti_type, OPTION_FORCE_BTI): New.
6         (PARSE_AND_LIST_SHORTOPTS, PARSE_AND_LIST_OPTIONS): Add force-bti.
7         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FORCE_BTI.
8         * testsuite/ld-aarch64/aarch64-elf.exp: Add all the tests below.
9         * testsuite/ld-aarch64/bti-plt-1.d: New test.
10         * testsuite/ld-aarch64/bti-plt-1.s: New test.
11         * testsuite/ld-aarch64/bti-plt-2.d: New test.
12         * testsuite/ld-aarch64/bti-plt-3.d: New test.
13         * testsuite/ld-aarch64/bti-plt-4.d: New test.
14         * testsuite/ld-aarch64/bti-plt-5.d: New test.
15         * testsuite/ld-aarch64/bti-plt-6.d: New test.
16         * testsuite/ld-aarch64/bti-plt-7.d: New test.
17         * testsuite/ld-aarch64/bti-plt-so.s: New test.
18         * testsuite/ld-aarch64/bti-plt.ld: New test.
19
20 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
21
22         * NEWS: Document GNU_PROPERTY_AARCH64_FEATURE_1_BTI and
23         GNU_PROPERTY_AARCH64_FEATURE_1_PAC.
24         * testsuite/ld-aarch64/aarch64-elf.exp: Add run commands for new tests.
25         * testsuite/ld-aarch64/property-bti-pac1.d: New test.
26         * testsuite/ld-aarch64/property-bti-pac1.s: New test.
27         * testsuite/ld-aarch64/property-bti-pac2.d: New test.
28         * testsuite/ld-aarch64/property-bti-pac2.s: New test.
29         * testsuite/ld-aarch64/property-bti-pac3.d: New test.
30
31 2019-03-13  H.J. Lu  <hongjiu.lu@intel.com>
32
33         PR ld/24322
34         * testsuite/ld-i386/i386.exp: Run PR ld/24322 tests.
35         * testsuite/ld-x86-64/x86-64.exp: Likewise.
36         * testsuite/ld-i386/pr24322a.d: New file.
37         * testsuite/ld-i386/pr24322b.d: Likewise.
38         * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
39         * testsuite/ld-x86-64/pr24322a.d: Likewise.
40         * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
41         * testsuite/ld-x86-64/pr24322b.d: Likewise.
42         * testsuite/ld-x86-64/pr24322a.s: Likewise.
43         * testsuite/ld-x86-64/pr24322b.s: Likewise.
44         * testsuite/ld-x86-64/pr24322c.s: Likewise.
45
46 2019-03-06  Nick Bowler  <nbowler@draconx.ca>
47
48         PR 24289
49         * ldexp.c (fold_name): Allow lookups of the LENGTH and ORIGIN
50         attributes during the first phase.
51
52 2019-03-01  Andreas Krebbel  <krebbel@linux.ibm.com>
53
54         This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
55         2019-01-14  Maamoun Tarsha  <maamountk@hotmail.com>
56
57         PR 20113
58         * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
59         * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
60         * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
61         * testsuite/ld-s390/tlsbin.dd: Likewise.
62         * testsuite/ld-s390/tlsbin.rd: Likewise.
63         * testsuite/ld-s390/tlsbin.sd: Likewise.
64         * testsuite/ld-s390/tlsbin_64.dd: Likewise.
65         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
66         * testsuite/ld-s390/tlsbin_64.sd: Likewise.
67         * testsuite/ld-s390/tlspic.dd: Likewise.
68         * testsuite/ld-s390/tlspic.rd: Likewise.
69         * testsuite/ld-s390/tlspic.sd: Likewise.
70         * testsuite/ld-s390/tlspic_64.dd: Likewise.
71         * testsuite/ld-s390/tlspic_64.rd: Likewise.
72         * testsuite/ld-s390/tlspic_64.sd: Likewise.
73         * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
74
75 2019-02-27  H.J. Lu  <hongjiu.lu@intel.com>
76
77         PR ld/24276
78         * testsuite/ld-i386/i386.exp: Run PR ld/24276 test.
79         * testsuite/ld-x86-64/x86-64.exp: Likewise.
80         * testsuite/ld-i386/pr24276.dso: New file.
81         * testsuite/ld-i386/pr24276.warn: Likewise.
82         * testsuite/ld-x86-64/pr24276.dso: Likewise.
83         * testsuite/ld-x86-64/pr24276.warn: Likewise.
84
85 2019-02-20  Eric Tsai  <erictsai@cadence.com>
86
87         * testsuite/ld-xtensa/call_overflow.d: New test definition.
88         * testsuite/ld-xtensa/call_overflow1.s: New test source.
89         * testsuite/ld-xtensa/call_overflow2.s: New test source.
90         * testsuite/ld-xtensa/call_overflow3.s: New test source.
91         * testsuite/ld-xtensa/xtensa.exp: Add call_overflow test.
92
93 2019-02-14  Thomas Schwinge  <thomas@codesourcery.com>
94
95         * testsuite/ld-elf/elf.exp: Remove Hurd XFAILs.
96
97 2019-02-12  Nick Clifton  <nickc@redhat.com>
98
99         * po/fr.po: Updated French translation.
100
101 2019-02-09  Vineet Gupta  <vgupta@synopsys.com>
102
103         * emultempl/arclinux.em: Delete special INIT/FINI handling.
104
105 2019-02-07  Nick Clifton  <nickc@redhat.com>
106
107         PR 24175
108         * ld.texi (Options): Add missing word to the description of the
109         --start-group option.
110
111 2019-02-06  Alan Modra  <amodra@gmail.com>
112
113         PR ld/24008
114         * testsuite/ld-scripts/pr24008.d: Pass with extra target
115         defined symbols.
116
117 2019-02-05  H.J. Lu  <hongjiu.lu@intel.com>
118
119         PR ld/24151
120         * testsuite/ld-x86-64/pr24151a-x32.d: New file.
121         * testsuite/ld-x86-64/pr24151a.d: Likewise.
122         * testsuite/ld-x86-64/pr24151a.s: Likewise.
123         * testsuite/ld-x86-64/x86-64.exp: Run pr24151a and pr24151a-x32.
124
125 2019-01-31  Alan Modra  <amodra@gmail.com>
126
127         * NEWS: Mention -t change.
128         * ld.texi (--trace/-t): Expand documentation a little.
129
130 2019-01-29  H.J. Lu  <hongjiu.lu@intel.com>
131
132         PR ld/24008
133         * testsuite/ld-scripts/defined.exp: Run pr24008.
134         * testsuite/ld-scripts/pr24008.d: New file.
135         * testsuite/ld-scripts/pr24008.map: Likewise.
136         * testsuite/ld-scripts/pr24008.s: Likewise.
137         * testsuite/ld-scripts/pr24008.t: Likewise.
138
139 2019-01-29  Eric Botcazou  <ebotcazou@adacore.com>
140
141         * testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.
142
143 2019-01-28  Alan Modra  <amodra@gmail.com>
144
145         PR 24008
146         * ldexp.h (lang_phase_type): Add lang_fixed_phase_enum.
147         * ldexp.c (fold_name): Move expld.assign_name check later to
148         avoid an extra lookup.
149         (exp_fold_tree_1): When lang_fixed_phase_enum, don't change symbol
150         values, and don't clear expld.assign_name.
151         * ldlang.c (lang_map): Set expld.phase to lang_fixed_phase_enum.
152         (print_assignment): Resolve entire assignment expression.
153         Don't access symbol u.def unless symbol is defined.
154
155 2019-01-25  Nick Clifton  <nickc@redhat.com>
156
157         * po/bg.po: Updated Bulgarian translation.
158
159 2019-01-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
160
161         * ld.texi (--wrap): Add warning that LTO may make this feature
162         ineffective.
163
164 2019-01-21  Nick Clifton  <nickc@redhat.com>
165
166         * po/uk.po: Updated Ukranian translation.
167         * po/pr_BR.po: Updated Brazilian Portuguese translation.
168
169 2019-01-21  Nick Clifton  <nickc@redhat.com>
170
171         PR 24108
172         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update
173         expected error message.
174
175 2019-01-19  Nick Clifton  <nickc@redhat.com>
176
177         * configure: Regenerate.
178         * po/ld.pot: Regenerate.
179
180 2018-06-24  Nick Clifton  <nickc@redhat.com>
181
182         2.32 branch created.
183
184 2019-01-16  Kito Cheng  <kito@andestech.com>
185
186         * testsuite/ld-elf/orphan-region.d: XFAIL for RISC-V, because add new
187         section.
188         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Add new tests.
189         * testsuite/ld-riscv-elf/attr-merge-arch-01.d: New test.
190         * testsuite/ld-riscv-elf/attr-merge-arch-01a.s: Likewise.
191         * testsuite/ld-riscv-elf/attr-merge-arch-01b.s: Likewise.
192         * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
193         * testsuite/ld-riscv-elf/attr-merge-arch-02a.s: Likewise.
194         * testsuite/ld-riscv-elf/attr-merge-arch-02b.s: Likewise.
195         * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
196         * testsuite/ld-riscv-elf/attr-merge-arch-03a.s: Likewise.
197         * testsuite/ld-riscv-elf/attr-merge-arch-03b.s: Likewise.
198         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
199         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
200         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
201         * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
202         * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
203         * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
204         * testsuite/ld-riscv-elf/attr-merge-stack-align-a.s: Likewise.
205         * testsuite/ld-riscv-elf/attr-merge-stack-align-b.s: Likewise.
206         * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-a.s: Likewise.
207         * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-b.s: Likewise.
208         * testsuite/ld-riscv-elf/attr-merge-stack-align-failed.d: Likewise.
209         * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
210         * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
211         * testsuite/ld-riscv-elf/attr-merge-strict-align-01a.s: Likewise.
212         * testsuite/ld-riscv-elf/attr-merge-strict-align-01b.s: Likewise.
213         * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
214         * testsuite/ld-riscv-elf/attr-merge-strict-align-02a.s: Likewise.
215         * testsuite/ld-riscv-elf/attr-merge-strict-align-02b.s: Likewise.
216         * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
217         * testsuite/ld-riscv-elf/attr-merge-strict-align-03a.s: Likewise.
218         * testsuite/ld-riscv-elf/attr-merge-strict-align-03b.s: Likewise.
219         * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
220         * testsuite/ld-riscv-elf/attr-merge-strict-align-04a.s: Likewise.
221         * testsuite/ld-riscv-elf/attr-merge-strict-align-04b.s: Likewise.
222         * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
223         * testsuite/ld-riscv-elf/attr-merge-strict-align-05a.s: Likewise.
224         * testsuite/ld-riscv-elf/attr-merge-strict-align-05b.s: Likewise.
225
226 2019-01-14  Maamoun Tarsha  <maamountk@hotmail.com>
227
228         PR 20113
229         * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
230         * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
231         * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
232         * testsuite/ld-s390/tlsbin.dd: Likewise.
233         * testsuite/ld-s390/tlsbin.rd: Likewise.
234         * testsuite/ld-s390/tlsbin.sd: Likewise.
235         * testsuite/ld-s390/tlsbin_64.dd: Likewise.
236         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
237         * testsuite/ld-s390/tlsbin_64.sd: Likewise.
238         * testsuite/ld-s390/tlspic.dd: Likewise.
239         * testsuite/ld-s390/tlspic.rd: Likewise.
240         * testsuite/ld-s390/tlspic.sd: Likewise.
241         * testsuite/ld-s390/tlspic_64.dd: Likewise.
242         * testsuite/ld-s390/tlspic_64.rd: Likewise.
243         * testsuite/ld-s390/tlspic_64.sd: Likewise.
244         * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
245
246 2019-01-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
247
248         * ld.texi (--wrap): Add example to emphasise that only undefined
249         references are replaced by the linker.
250
251 2019-01-09  Nick Clifton  <nickc@redhat.com>
252
253         * po/es.po: Updated Spanish translation.
254
255 2019-01-09  Andrew Paprocki  <andrew@ishiboo.com>
256
257         * configure: Regenerate.
258
259 2019-01-08  Alan Modra  <amodra@gmail.com>
260
261         * testsuite/ld-elf/sec64k.exp: Use . rather than $objdir in
262         generated source file names.
263         * testsuite/ld-m68k/m68k-got.exp: Likewise.
264
265 2019-01-01  Alan Modra  <amodra@gmail.com>
266
267         Update year range in copyright notice of all files.
268
269 For older changes see ChangeLog-2018
270 \f
271 Copyright (C) 2019 Free Software Foundation, Inc.
272
273 Copying and distribution of this file, with or without modification,
274 are permitted in any medium without royalty provided the copyright
275 notice and this notice are preserved.
276
277 Local Variables:
278 mode: change-log
279 left-margin: 8
280 fill-column: 74
281 version-control: never
282 End: