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