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