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