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