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