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