ld-elf/ehdr_start: Pass --build-id to ld
[external/binutils.git] / ld / ChangeLog
1 2018-02-17  H.J. Lu  <hongjiu.lu@intel.com>
2
3         PR ld/22845
4         * testsuite/ld-elf/ehdr_start.d: Pass --build-id to ld.
5
6 2018-02-17  H.J. Lu  <hongjiu.lu@intel.com>
7
8         PR ld/22845
9         * testsuite/ld-elf/binutils.exp (tls_opts): Add tests for
10         "-z noseparate-code" and "-z separate-code".
11
12 2018-02-17  H.J. Lu  <hongjiu.lu@intel.com>
13
14         PR ld/22845
15         * ld-elf/eh4.d: Pass -z max-page-size=0x200000 -z noseparate-code
16         to ld.
17
18 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
19
20         * testsuite/ld-x86-64/bnd-branch-1-now.d: Add  -z
21         max-page-size=0x200000 -z noseparate-code.
22         * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
23         * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
24         * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
25         * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
26         * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
27         * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
28         * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
29         * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
30         * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
31         * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
32         * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise.
33         * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
34         * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
35         * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
36         * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
37         * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
38         * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
39         * testsuite/ld-x86-64/ibt-plt-3b-x32.d: Likewise.
40         * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise.
41         * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
42         * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
43         * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
44         * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
45         * testsuite/ld-x86-64/load1a.d: Likewise.
46         * testsuite/ld-x86-64/load1b.d: Likewise.
47         * testsuite/ld-x86-64/load1c.d: Likewise.
48         * testsuite/ld-x86-64/load1d.d: Likewise.
49         * testsuite/ld-x86-64/pie3.d: Likewise.
50         * testsuite/ld-x86-64/pr14207.d: Likewise.
51         * testsuite/ld-x86-64/pr17618.d: Likewise.
52         * testsuite/ld-x86-64/pr19162.d: Likewise.
53         * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
54         * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
55         * testsuite/ld-x86-64/pr20253-1b.d: Likewise.
56         * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
57         * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
58         * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
59         * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
60         * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
61         * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
62         * testsuite/ld-x86-64/pr20830a.d: Likewise.
63         * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
64         * testsuite/ld-x86-64/pr20830b.d: Likewise.
65         * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
66         * testsuite/ld-x86-64/pr21038a.d: Likewise.
67         * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
68         * testsuite/ld-x86-64/pr21038b.d: Likewise.
69         * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
70         * testsuite/ld-x86-64/pr21038c.d: Likewise.
71
72 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
73
74         * testsuite/ld-x86-64/bnd-ifunc-1.d: Updated.
75         * testsuite/ld-x86-64/ilp32-4.d: Likewise.
76
77 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
78
79         * testsuite/ld-x86-64/mpx.exp: Add -z max-page-size=0x200000
80         -z noseparate-code.
81
82 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
83
84         * testsuite/ld-x86-64/x86-64.exp: Add -z noseparate-code
85         -z max-page-size=0x200000, excluding NaCl target.
86
87 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
88
89         * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
90         * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
91         * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
92         * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
93         * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
94         * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
95         * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
96
97 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
98
99         * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Add
100          -z max-page-size=0x200000 -z noseparate-code.
101         * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
102         * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
103         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
104         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
105         * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
106         * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
107
108 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
109
110         * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated for i386.
111         * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
112         * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
113
114 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
115
116         * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
117         * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
118         * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
119
120 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
121
122         * testsuite/ld-i386/ibt-plt-1.d: Add -z noseparate-code.
123         * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
124         * testsuite/ld-i386/ibt-plt-2b.d: Likewise.
125         * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
126         * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
127         * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
128         * testsuite/ld-i386/ibt-plt-3b.d: Likewise.
129         * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
130         * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
131         * testsuite/ld-i386/load1.d: Likewise.
132         * testsuite/ld-i386/pie1.d: Likewise.
133         * testsuite/ld-i386/pr20244-1a.d: Likewise.
134         * testsuite/ld-i386/pr20244-1b.d: Likewise.
135         * testsuite/ld-i386/pr20244-2a.d: Likewise.
136         * testsuite/ld-i386/pr20244-2b.d: Likewise.
137         * testsuite/ld-i386/pr20244-2c.d: Likewise.
138         * testsuite/ld-i386/pr20244-4a.d: Likewise.
139         * testsuite/ld-i386/pr20244-4b.d: Likewise.
140         * testsuite/ld-i386/pr20830.d: Likewise.
141
142 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
143
144         * testsuite/ld-i386/pr19636-1a.d: Updated.
145         * testsuite/ld-i386/pr19636-1b.d: Likewise.
146         * testsuite/ld-i386/pr19636-1j.d: Likewise.
147         * testsuite/ld-i386/pr19636-1k.d: Likewise.
148         * testsuite/ld-i386/pr19636-2a.d: Likewise.
149         * testsuite/ld-i386/pr19636-2b.d: Likewise.
150
151 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
152
153         * testsuite/ld-i386/i386.exp: Add -z noseparate-code.
154
155 2018-02-16  H.J. Lu  <hongjiu.lu@intel.com>
156
157         * testsuite/ld-elf/pr19162.d: Add -z noseparate-code.
158         * testsuite/ld-elf/textaddr1.d: Likewise.
159         * testsuite/ld-elf/textaddr2.d: Likewise.
160         * testsuite/ld-elf/textaddr4.d: Likewise.
161         * testsuite/ld-elf/textaddr6.d: Likewise.
162
163 2018-02-15  Jim Wilson  <jimw@sifive.com>
164
165         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run pcrel-lo-addend test.
166         * testsuite/ld-riscv-elf/pcrel-lo-addend.d: New.
167         * testsuite/ld-riscv-elf/pcrel-lo-addend.s: New.
168
169 2018-02-14  H.J. Lu  <hongjiu.lu@intel.com>
170
171         PR ld/22842
172         * testsuite/ld-i386/i386.exp: Run PR ld/22842 tests.
173         * testsuite/ld-x86-64/x86-64.exp: Likewise.
174         * testsuite/ld-i386/pr22842a.c: New file.
175         * testsuite/ld-i386/pr22842b.S: Likewise.
176         * testsuite/ld-x86-64/pr22842a.c: Likewise.
177         * testsuite/ld-x86-64/pr22842a.rd: Likewise.
178         * testsuite/ld-x86-64/pr22842b.S: Likewise.
179         * testsuite/ld-x86-64/pr22842b.rd: Likewise.
180
181 2018-02-14  Maciej W. Rozycki  <macro@mips.com>
182
183         * ldlex.h (ldlex_command): Remove prototype.
184
185 2018-02-13  H.J. Lu  <hongjiu.lu@intel.com>
186
187         * testsuite/ld-x86-64/x86-64.exp: Replace pr22393-2a.so and
188         pr22393-2a-now.so with pr22393-3a.so and pr22393-3a-now.so.
189
190 2018-02-14  H.J. Lu  <hongjiu.lu@intel.com>
191
192         PR 22836
193         * testsuite/ld-elf/pr22836-1.s: New file.
194         * testsuite/ld-elf/pr22836-1a.d: Likewise.
195         * testsuite/ld-elf/pr22836-1b.d: Likewise.
196
197 2018-02-13  H.J. Lu  <hongjiu.lu@intel.com>
198
199         PR gas/22791
200         * testsuite/ld-x86-64/mpx1c.rd: Updated.
201         * testsuite/ld-x86-64/pr22791-1.err: New file.
202         * testsuite/ld-x86-64/pr22791-1a.c: Likewise.
203         * testsuite/ld-x86-64/pr22791-1b.s: Likewise.
204         * testsuite/ld-x86-64/pr22791-2.rd: Likewise.
205         * testsuite/ld-x86-64/pr22791-2a.s: Likewise.
206         * testsuite/ld-x86-64/pr22791-2b.c: Likewise.
207         * testsuite/ld-x86-64/pr22791-2c.s: Likewise.
208         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/22791 tests.
209
210 2018-02-13  Alan Modra  <amodra@gmail.com>
211
212         PR 22836
213         * testsuite/ld-elf/pr22836-2.d,
214         * testsuite/ld-elf/pr22836-2.s: New test.
215
216 2018-02-13  Alan Modra  <amodra@gmail.com>
217
218         * testsuite/ld-x86-64/pr14207.d: Adjust relro p_filesz.
219
220 2018-02-07  Alan Modra  <amodra@gmail.com>
221
222         Revert 2018-01-17  Alan Modra  <amodra@gmail.com>
223         * emultempl/ppc32elf.em: Remove --speculate-indirect-jumps support.
224         * emultempl/ppc64elf.em: Likesize
225         * ld.texinfo: Likewise
226         * testsuite/ld-powerpc/elfv2exe.d,
227         * testsuite/ld-powerpc/elfv2so.d,
228         * testsuite/ld-powerpc/relbrlt.d,
229         * testsuite/ld-powerpc/powerpc.exp: Likewise.
230
231 2018-02-06  Eric Botcazou  <ebotcazou@adacore.com>
232
233         * testsuite/ld-elf/tls.exp (AFLAGS_PIC): Define on SPARC.
234         (pr22263-1): Pass AFLAGS_PIC to the assembler.
235         * testsuite/ld-sparc/tlspie32.s: Add test for other 3 transitions.
236         * testsuite/ld-sparc/tlspie32.dd: Adjust to above.
237         * testsuite/ld-sparc/tlspie64.s: Add test for other 3 transitions.
238         * testsuite/ld-sparc/tlspie64.dd: Adjust to above.
239
240 2018-02-05  Renlin Li  <renlin.li@arm.com>
241
242         PR ld/22764
243         * testsuite/ld-aarch64/emit-relocs-258.s: Define symbol as an address.
244         * testsuite/ld-aarch64/emit-relocs-259.s: Likewise.
245         * testsuite/ld-aarch64/pr22764.s: New.
246         * testsuite/ld-aarch64/pr22764.d: New.
247
248 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
249
250         PR ld/22782
251         * testsuite/ld-i386/discarded1.s: Replace mov with div.
252         * testsuite/ld-x86-64/discarded1.s: Likewise.
253         * testsuite/ld-i386/i386.exp: Run pr22782.
254         * testsuite/ld-i386/load1-nacl.d: Updated for removing
255         _GLOBAL_OFFSET_TABLE_ from output.
256         * testsuite/ld-i386/load1.d: Likewise.
257         * testsuite/ld-x86-64/load1a-nacl.d: Likewise.
258         * testsuite/ld-x86-64/load1a.d: Likewise.
259         * testsuite/ld-x86-64/load1b-nacl.d: Likewise.
260         * testsuite/ld-x86-64/load1b.d: Likewise.
261         * testsuite/ld-i386/pr22782.d: New file.
262         * testsuite/ld-i386/pr22782.s: Likewise.
263         * testsuite/ld-x86-64/pr22782.s: Likewise.
264         * testsuite/ld-x86-64/pr22782a.d: Likewise.
265         * testsuite/ld-x86-64/pr22782b.d: Likewise.
266         * testsuite/ld-x86-64/x86-64.exp: Run pr22782a and pr22782b.
267
268 2018-02-05  Nick Clifton  <nickc@redhat.com>
269
270         * po/pt_BR.po: Updated Brazilian Portuguese translation.
271
272 2018-02-04  H.J. Lu  <hongjiu.lu@intel.com>
273
274         * testsuite/ld-i386/lea1d.d: Replace -Sw with -SW.
275         * testsuite/ld-i386/lea1e.d: Likewise.
276         * testsuite/ld-i386/lea1f.d: Likewise.
277         * testsuite/ld-x86-64/lea1g.d: Likewise.
278         * testsuite/ld-x86-64/lea1h.d: Likewise.
279         * testsuite/ld-x86-64/lea1i.d: Likewise.
280         * testsuite/ld-x86-64/lea1j.d: Likewise.
281         * testsuite/ld-x86-64/lea1k.d: Likewise.
282         * testsuite/ld-x86-64/lea1l.d: Likewise.
283
284 2018-02-03  Nick Clifton  <nickc@redhat.com>
285
286         PR 22762
287         * scripttempl/pe.sc: Remove PROVIDE()s from __CTOR_LIST__ and
288         __DTOR_LIST__ symbols.  Add a comment explaining why this is
289         necessary.
290         * scripttemp/pep.sc: Likewise.
291         * ld.texinfo (PROVIDE): Add a note about the effect of common
292         symbols.
293
294 2018-02-03  Sandra Loosemore  <sandra@codesourcery.com>
295
296         * emulparams/nios2elf.sh (GENERATE_SHLIB_SCRIPT): Don't set.
297
298 2018-02-02  Maciej W. Rozycki  <macro@mips.com>
299
300         * testsuite/ld-elf/shared.exp: Add $AFLAGS_PIC throughout to PIC
301         assembly builds where missing and remove `tic6x-*-*' XFAIL
302         markings accordingly.
303
304 2018-02-01  Simon Marchi  <simon.marchi@ericsson.com>
305
306         * ldexp.c (fold_name, exp_fold_tree_1): Avoid pointer arithmetic
307         on NULL pointer.
308
309 2018-01-31  H.J. Lu  <hongjiu.lu@intel.com>
310
311         * testsuite/ld-elf/pr21964-5.c (my_var): Mark as used.
312
313 2018-01-31  Maciej W. Rozycki  <macro@mips.com>
314
315         * testsuite/ld-elf/shared.exp: Fix a typo s/scrip/script/.
316
317 2018-01-31  Maciej W. Rozycki  <macro@mips.com>
318
319         * testsuite/ld-elf/comm-data.exp: Pass `-call_shared' to links
320         involving a shared library for `mips*vr4100*-*-elf*',
321         `mips*vr4300*-*-elf*' and `mips*vr5000*-*-elf*' targets.
322         * testsuite/ld-elf/provide-hidden.exp: Likewise.
323         * testsuite/ld-elf/shared.exp: Likewise.
324         * testsuite/ld-gc/gc.exp: Likewise.
325         * testsuite/ld-mips-elf/comm-data.exp: Likewise.
326
327 2018-01-31  Maciej W. Rozycki  <macro@mips.com>
328
329         * testsuite/ld-elf/elf.exp: Move shared library tests over to...
330         * testsuite/ld-elf/shared.exp: ... here.
331
332 2018-01-31  Michael Matz  <matz@suse.de>
333
334         * testsuite/ld-elf/pr21964-5.c: New test.
335         * testsuite/ld-elf/shared.exp: Run it.
336
337 2018-01-31  H.J. Lu  <hongjiu.lu@intel.com>
338
339         PR ld/21964
340         * testsuite/ld-elf/pr21964-4.c: New file.
341         * testsuite/ld-elf/shared.exp: Run pr21964-4 test on Linux.
342
343 2018-01-30  Alan Modra  <amodra@gmail.com>
344
345         * testsuite/ld-gc/stop.d,
346         * testsuite/ld-gc/stop.s: New test.
347         * testsuite/ld-gc/gc.exp: Run it.
348
349 2018-01-30  Maciej W. Rozycki  <macro@mips.com>
350
351         PR ld/22649
352         * testsuite/ld-elf/pr22649-2ab-mips.msg: New stderr output.
353         * testsuite/ld-elf/pr22649-2cd-mips.msg: New stderr output.
354         * testsuite/ld-elf/shared.exp: Use the new outputs with
355         `mips*-*-*' targets.
356
357 2018-01-30  Maciej W. Rozycki  <macro@mips.com>
358
359         * testsuite/ld-elf/comm-data1.sd: Alternatively accept
360         `PRC[0xff02]' in place of a regular section index.
361         * testsuite/ld-elf/pr21703-shared.sd: Likewise `PRC[0xff01]'.
362
363 2018-01-29  Alan Modra  <amodra@gmail.com>
364
365         * testsuite/ld-elf/pr21964-3a.c: New file.
366         * testsuite/ld-elf/pr21964-3c.c: New file.
367         * testsuite/ld-elf/shared.exp: Run new __start/__stop testcase.
368
369 2018-01-29  Eric Botcazou  <ebotcazou@adacore.com>
370
371         * testsuite/ld-elf/shared.exp (AFLAGS_PIC): Define on SPARC.
372         (pr22269-1): Pass AFLAGS_PIC to the assembler.
373
374 2018-01-29  Eric Botcazou  <ebotcazou@adacore.com>
375
376         * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.
377
378 2018-01-29  Maciej W. Rozycki  <macro@mips.com>
379
380         * testsuite/ld-mips-elf/comm-data.exp: Correct support for
381         targets using non-traditional MIPS emulation or having a limited
382         selection of ABIs available.  Don't force big endianness, use
383         defaults.
384
385 2018-01-29  H.J. Lu  <hongjiu.lu@intel.com>
386
387         PR ld/22732
388         * testsuite/config/default.exp (STATIC_LDFLAGS): New.  Set to
389         "-static" if target compiler supports it.
390         * testsuite/ld-bootstrap/bootstrap.exp: Skip static executable
391         tests if target compiler doesn't support it.
392         * testsuite/ld-ifunc/ifunc.exp: Likewise.
393         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Likewise.
394         (run_cc_link_tests): Likewise.
395
396 2018-01-27  H.J. Lu  <hongjiu.lu@intel.com>
397
398         PR ld/22751
399         * testsuite/config/default.exp (INT128_CFLAGS): New.
400         * testsuite/ld-plugin/lto.exp (INT128_CFLAGS): New.
401         Run ld/22751 tests.
402         * testsuite/ld-plugin/pr22751.c: New file.
403         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Add
404         ld trailing options.
405
406 2018-01-28  Alan Modra  <amodra@gmail.com>
407
408         PR 22751
409         * ldlang.c (find_rescan_insertion): Look past bfds with claim_archive
410         set.
411
412 2018-01-26  Maciej W. Rozycki  <macro@mips.com>
413
414         * emulparams/elf32mipswindiss.sh (EXTRA_EM_FILE): Set to
415         `mipself'.
416
417 2018-01-25  Eric Botcazou  <ebotcazou@adacore.com>
418
419         * testsuite/ld-sparc/sparc.exp (32-bit: Helper shared library):
420         Link with a version script.
421         (32-bit: TLS -fpie): New test.
422         (64-bit: Helper shared library): Link with a version script.
423         (64-bit: TLS -fpie): New test.
424         (64-bit: GOTDATA relocations): Pass -Av9 to the assembler.
425         * testsuite/ld-sparc/tlslib.ver: New file.
426         * testsuite/ld-sparc/tlspie32.dd: Likewise.
427         * testsuite/ld-sparc/tlspie32.s: Likewise.
428         * testsuite/ld-sparc/tlspie64.dd: Likewise.
429         * testsuite/ld-sparc/tlspie64.s: Likewise.
430         * testsuite/ld-sparc/tlssunbin32.dd: Adjust for versioned symbol.
431         * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
432         * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
433         * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
434         * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
435         * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
436
437 2018-01-24  Renlin Li  <renlin.li@arm.com>
438
439         * testsuite/ld-aarch64/aarch64-elf.exp: Run new testes.
440         * testsuite/ld-aarch64/emit-relocs-287.s: Fix test case.
441         * testsuite/ld-aarch64/emit-relocs-287.d: Fix expected output.
442         * testsuite/ld-aarch64/emit-relocs-287-overflow.s: New.
443         * testsuite/ld-aarch64/emit-relocs-287-overflow.d: New.
444         * testsuite/ld-aarch64/emit-relocs-288.d: New.
445         * testsuite/ld-aarch64/emit-relocs-288.s: New.
446         * testsuite/ld-aarch64/emit-relocs-289.d: New.
447         * testsuite/ld-aarch64/emit-relocs-289.s: New.
448         * testsuite/ld-aarch64/emit-relocs-289-overflow.s: New.
449         * testsuite/ld-aarch64/emit-relocs-289-overflow.d: New.
450         * testsuite/ld-aarch64/emit-relocs-290.d: New.
451         * testsuite/ld-aarch64/emit-relocs-290.s: New.
452         * testsuite/ld-aarch64/emit-relocs-291.d: New.
453         * testsuite/ld-aarch64/emit-relocs-291.s: New.
454         * testsuite/ld-aarch64/emit-relocs-291-overflow.s: New.
455         * testsuite/ld-aarch64/emit-relocs-291-overflow.d: New.
456         * testsuite/ld-aarch64/emit-relocs-292.d: New.
457         * testsuite/ld-aarch64/emit-relocs-292.s: New.
458         * testsuite/ld-aarch64/emit-relocs-293.d: New.
459         * testsuite/ld-aarch64/emit-relocs-293.s: New.
460
461 2018-01-20  H.J. Lu  <hongjiu.lu@intel.com>
462
463         PR ld/22721
464         * testsuite/ld-plugin/lto.exp: Run PR ld/22721 tests.
465         * testsuite/ld-plugin/pr22721.t: New file.
466         * testsuite/ld-plugin/pr22721a.s: Likewise.
467         * testsuite/ld-plugin/pr22721b.c: Likewise.
468
469 2018-01-18  H.J. Lu  <hongjiu.lu@intel.com>
470
471         * testsuite/ld-elf/group1.d: Also xfail Solaris.
472
473 2018-01-18  H.J. Lu  <hongjiu.lu@intel.com>
474
475         * testsuite/ld-elf/linkinfo1a.d: Updated for slightly different
476         PLT/GOT order/layout for Solaris/x86 targets.
477         * testsuite/ld-elf/linkinfo1b.d: Likewise.
478
479 2018-01-18  H.J. Lu  <hongjiu.lu@intel.com>
480
481         PR ld/22728
482         * emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
483         into ...
484         (elf_solaris2_before_allocation): This.
485         (LDEMUL_AFTER_ALLOCATION): Removed.
486
487 2018-01-18  Alan Modra  <amodra@gmail.com>
488
489         * emultempl/ppc32elf.em: Support optional --plt-align arg.
490         * emultempl/ppc64elf.em: Support negative --plt-align arg.
491
492 2018-01-17  Alan Modra  <amodra@gmail.com>
493
494         * emultempl/ppc32elf.em (params): Init new field.
495         (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
496         (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
497         (PARSE_AND_LIST_LONGOPTS): Handle new options.
498         (PARSE_AND_LIST_ARGS_CASES): Likewise.
499         (PARSE_AND_LIST_OPTIONS): Likewise.
500         * emultempl/ppc64elf.em (params): Init new field.
501         (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
502         (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
503         (PARSE_AND_LIST_LONGOPTS): Handle --speculate-indirect-jumps.
504         (PARSE_AND_LIST_OPTIONS): Likewise.
505         (PARSE_AND_LIST_ARGS_CASES): Likewise.
506         * ld.texinfo (--no-plt-thread-safe): Correct itemx.
507         (--speculate-indirect-jumps): Document.
508         * testsuite/ld-powerpc/elfv2exe.d,
509         * testsuite/ld-powerpc/elfv2so.d,
510         * testsuite/ld-powerpc/relbrlt.d,
511         * testsuite/ld-powerpc/powerpc.exp: Disable plt alignment and
512         speculation barriers on various tests.
513
514 2018-01-17  Alan Modra  <amodra@gmail.com>
515
516         * emultempl/ppc32elf.em (params): Init new field.
517         (enum ppc32_opt): New enum to define OPTION_* values.  Add
518         OPTION_PLT_ALIGN and OPTION_NO_PLT_ALIGN.
519         (PARSE_AND_LIST_LONGOPTS): Handle new options.
520         (PARSE_AND_LIST_ARGS_CASES): Likewise.
521         (PARSE_AND_LIST_OPTIONS): Likewise.  Break up help output.
522         * emultempl/ppc64elf.em (ppc_add_stub_section): Init alignment
523         correctly for negative --plt-stub-align.
524         * testsuite/ld-powerpc/elfv2exe.d,
525         * testsuite/ld-powerpc/elfv2so.d,
526         * testsuite/ld-powerpc/relbrlt.d,
527         * testsuite/ld-powerpc/relbrlt.s,
528         * testsuite/ld-powerpc/tlsexe.d,
529         * testsuite/ld-powerpc/tlsexe.r,
530         * testsuite/ld-powerpc/tlsexe32.d,
531         * testsuite/ld-powerpc/tlsexe32.g,
532         * testsuite/ld-powerpc/tlsexe32.r,
533         * testsuite/ld-powerpc/tlsexetoc.d,
534         * testsuite/ld-powerpc/tlsexetoc.r,
535         * testsuite/ld-powerpc/tlsopt5_32.d,
536         * testsuite/ld-powerpc/tlsso.d,
537         * testsuite/ld-powerpc/tlstocso.d: Update for changed stub order.
538
539 2018-01-16  Nick Clifton  <nickc@redhat.com>
540
541         * po/pt_BR.po: Updated Brazilian Portuguese translation.
542
543 2018-01-15  Nick Clifton  <nickc@redhat.com>
544
545         * po/uk.po: Updated Ukranian translation.
546
547 2018-01-13  Nick Clifton  <nickc@redhat.com>
548
549         * po/ld.pot: Regenerated.
550
551 2018-01-13  Nick Clifton  <nickc@redhat.com>
552
553         * configure: Regenerate.
554
555 2018-01-13  Nick Clifton  <nickc@redhat.com>
556
557         2.30 branch created.
558         * NEWS: Add marker for 2.30.
559
560 2018-01-12  Alan Modra  <amodra@gmail.com>
561
562         * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
563         initialization" for currently failing targets.
564
565 2018-01-12  Alan Modra  <amodra@gmail.com>
566
567         PR ld/22649
568         * testsuite/ld-elf/pr22649.msg: Allow other messages.
569         * testsuite/ld-elf/shared.exp: Check that --gc-sections is
570         supported before running ld/22649 tests.
571
572 2018-01-12  Nick Clifton  <nickc@redhat.com>
573
574         * emultempl/elf32.em (_handle_option): Add support for "-z undefs"
575         as the opposite of "-z defs".
576         * ld.texinfo: Document the new option.  Update the description of
577         the -z defs option to make it clear that it does generate an error
578         if an undefined symbol reference is found in an object file whilst
579         creating a shared library.
580         * NEWS: Document this new feature.
581
582 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
583
584         * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
585         "-z separate-code".
586         * testsuite/ld-elf/pr22393-2b.rd: Likewise.
587         * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
588         * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
589
590 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
591
592         PR ld/22393
593         * testsuite/ld-x86-64/pr22393-3a.c: New file.
594         * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
595         * testsuite/ld-x86-64/pr22393-3b.c: Likewise.
596         * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
597         * testsuite/ld-x86-64/x86-64.exp: Run tests for -z separate-code
598         -z max-page-size=0x1000.
599
600 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
601
602         PR ld/22393
603         * testsuite/ld-elf/pr16322.d: Add -z noseparate-code.
604         * testsuite/ld-elf/pr22393-1.s: New file.
605         * testsuite/ld-elf/pr22393-1a.d: Likewise.
606         * testsuite/ld-elf/pr22393-1b.d: Likewise.
607         * testsuite/ld-elf/pr22393-1c.d: Likewise.
608         * testsuite/ld-elf/pr22393-1d.d: Likewise.
609         * testsuite/ld-elf/pr22393-1e.d: Likewise.
610         * testsuite/ld-elf/pr22393-1f.d: Likewise.
611         * testsuite/ld-elf/pr22393-2a.c: Likewise.
612         * testsuite/ld-elf/pr22393-2a.rd: Likewise.
613         * testsuite/ld-elf/pr22393-2b.c: Likewise.
614         * testsuite/ld-elf/pr22393-2b.rd: Likewise.
615         * testsuite/ld-elf/shared.exp: Run tests for -z separate-code.
616
617 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
618
619         PR ld/22393
620         * NEWS: Mention "-z separate-code".
621         * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Get
622         builtin linker scripts and return linker scripts from disk for
623         "-z separate-code".
624         (gld${EMULATION_NAME}_handle_option): Handle "-z separate-code"
625         and "-z noseparate-code".
626         * genscripts.sh: Generate linker scripts for "-z separate-code".
627         (LD_FLAG): Set to *textonly for "-z separate-code".
628         * ld.texinfo: Document "-z separate-code".
629         * lexsup.c (elf_shlib_list_options): Add linker help messsages
630         for "-z separate-code" and "-z noseparate-code".
631         * scripttempl/elf.sc (SEPARATE_TEXT): New
632         (TEXT_SEGMENT_ALIGN): Likewise.
633         Use ${TEXT_SEGMENT_ALIGN} to align and pad text segment to
634         ${MAXPAGESIZE}.
635
636 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
637
638         PR ld/22649
639         * testsuite/ld-elf/pr22649-1.s: New file.
640         * testsuite/ld-elf/pr22649-2a.s: Likewise.
641         * testsuite/ld-elf/pr22649-2b.s: Likewise.
642         * testsuite/ld-elf/pr22649.msg: Likewise.
643         * testsuite/ld-elf/shared.exp: Run ld/22649 tests.
644
645 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
646
647         PR ld/22677
648         * scripttempl/elf.sc (PREINIT_ARRAY): New.
649         Don't add .preinit_array for ld -r.
650         * testsuite/ld-elf/pr22677.d: New file.
651         * testsuite/ld-elf/pr22677.s: Likewise.
652
653 2018-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
654
655         * ldexp.h (union etree_union): Remove defsym field.
656         * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
657         parameter.
658         (exp_assign): Remove passing of defsym parameter.
659         (exp_defsym): Likewise.
660         (exp_provide): Likewise.
661
662 2018-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
663
664         * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide
665         nodes are ignored in the tree walk, and move the location at which
666         we change provide nodes into provided nodes.
667         (exp_init_os): Add etree_provided.
668         * testsuite/ld-scripts/provide-6.d: New file.
669         * testsuite/ld-scripts/provide-6.t: New file.
670         * testsuite/ld-scripts/provide-7.d: New file.
671         * testsuite/ld-scripts/provide-7.t: New file.
672         * testsuite/ld-scripts/provide-8.d: New file.
673         * testsuite/ld-scripts/provide-8.t: New file.
674
675 2018-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
676
677         * testsuite/ld-scripts/provide-3.d: Add xfail directive.
678         * testsuite/ld-scripts/provide-4.d: Use new map file name.
679         * testsuite/ld-scripts/provide-5.d: Use new map file name.
680         * testsuite/ld-scripts/provide-4-map.d: Renamed to...
681         * testsuite/ld-scripts/provide-4.map: ...this.
682         * testsuite/ld-scripts/provide-5-map.d: Renamed to...
683         * testsuite/ld-scripts/provide-5.map: ...this.
684         * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d
685         file, and run tests in a loop.
686
687 2018-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
688
689         * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
690         PROVIDE statements.
691         * testsuite/ld-scripts/provide-4.map: Update expected output.
692         * testsuite/ld-scripts/provide-5.map: Likewise.
693
694 2018-01-11  H.J. Lu  <hongjiu.lu@intel.com>
695
696         PR ld/22696
697         * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
698
699 2018-01-09  Jim Wilson  <jimw@sifive.com>
700
701         * testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete
702         (#alltargets): Renamed from #target.  Add shared.
703         * testsuite/lib/ld-lib.exp (run_dump_test): Document shared target.
704         Document alltargets option.  Add support for alltargets option.
705         (istarget): Add support for shared target.
706
707 2018-01-08  Jim Wilson  <jimw@sifive.com>
708
709         * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared.  Check for _start
710         instead of .text.
711         * testsuite/ld-riscv-elf/c-lui.s: Add _start label.
712         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$
713         tests, add call to check_shared_lib_support.
714
715 2018-01-05  Jim Wilson  <jimw@sifive.com>
716
717         * testsuite/ld-riscv-elf/disas-jalr.d: New.
718         * testsuite/ld-riscv-elf/disas-jalr.s: New.
719         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase.
720
721         * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside
722         case on $target, and don't set for riscv*-elf targets.
723         (GENERATE_PIE_SCRIPT): Likewise.
724
725 2018-01-03  Alan Modra  <amodra@gmail.com>
726
727         Update year range in copyright notice of all files.
728
729 For older changes see ChangeLog-2017
730 \f
731 Copyright (C) 2018 Free Software Foundation, Inc.
732
733 Copying and distribution of this file, with or without modification,
734 are permitted in any medium without royalty provided the copyright
735 notice and this notice are preserved.
736
737 Local Variables:
738 mode: change-log
739 left-margin: 8
740 fill-column: 74
741 version-control: never
742 End: