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