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