1 2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
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.
7 2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
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.
29 2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
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.
38 2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
40 * testsuite/ld-i386/i386.exp: Add -z noseparate-code.
42 2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
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.
50 2018-02-15 Jim Wilson <jimw@sifive.com>
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.
56 2018-02-14 H.J. Lu <hongjiu.lu@intel.com>
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.
68 2018-02-14 Maciej W. Rozycki <macro@mips.com>
70 * ldlex.h (ldlex_command): Remove prototype.
72 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
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.
77 2018-02-14 H.J. Lu <hongjiu.lu@intel.com>
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.
84 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
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.
97 2018-02-13 Alan Modra <amodra@gmail.com>
100 * testsuite/ld-elf/pr22836-2.d,
101 * testsuite/ld-elf/pr22836-2.s: New test.
103 2018-02-13 Alan Modra <amodra@gmail.com>
105 * testsuite/ld-x86-64/pr14207.d: Adjust relro p_filesz.
107 2018-02-07 Alan Modra <amodra@gmail.com>
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.
118 2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
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.
127 2018-02-05 Renlin Li <renlin.li@arm.com>
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.
135 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
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.
155 2018-02-05 Nick Clifton <nickc@redhat.com>
157 * po/pt_BR.po: Updated Brazilian Portuguese translation.
159 2018-02-04 H.J. Lu <hongjiu.lu@intel.com>
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.
171 2018-02-03 Nick Clifton <nickc@redhat.com>
174 * scripttempl/pe.sc: Remove PROVIDE()s from __CTOR_LIST__ and
175 __DTOR_LIST__ symbols. Add a comment explaining why this is
177 * scripttemp/pep.sc: Likewise.
178 * ld.texinfo (PROVIDE): Add a note about the effect of common
181 2018-02-03 Sandra Loosemore <sandra@codesourcery.com>
183 * emulparams/nios2elf.sh (GENERATE_SHLIB_SCRIPT): Don't set.
185 2018-02-02 Maciej W. Rozycki <macro@mips.com>
187 * testsuite/ld-elf/shared.exp: Add $AFLAGS_PIC throughout to PIC
188 assembly builds where missing and remove `tic6x-*-*' XFAIL
189 markings accordingly.
191 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
193 * ldexp.c (fold_name, exp_fold_tree_1): Avoid pointer arithmetic
196 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
198 * testsuite/ld-elf/pr21964-5.c (my_var): Mark as used.
200 2018-01-31 Maciej W. Rozycki <macro@mips.com>
202 * testsuite/ld-elf/shared.exp: Fix a typo s/scrip/script/.
204 2018-01-31 Maciej W. Rozycki <macro@mips.com>
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.
214 2018-01-31 Maciej W. Rozycki <macro@mips.com>
216 * testsuite/ld-elf/elf.exp: Move shared library tests over to...
217 * testsuite/ld-elf/shared.exp: ... here.
219 2018-01-31 Michael Matz <matz@suse.de>
221 * testsuite/ld-elf/pr21964-5.c: New test.
222 * testsuite/ld-elf/shared.exp: Run it.
224 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
227 * testsuite/ld-elf/pr21964-4.c: New file.
228 * testsuite/ld-elf/shared.exp: Run pr21964-4 test on Linux.
230 2018-01-30 Alan Modra <amodra@gmail.com>
232 * testsuite/ld-gc/stop.d,
233 * testsuite/ld-gc/stop.s: New test.
234 * testsuite/ld-gc/gc.exp: Run it.
236 2018-01-30 Maciej W. Rozycki <macro@mips.com>
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
244 2018-01-30 Maciej W. Rozycki <macro@mips.com>
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]'.
250 2018-01-29 Alan Modra <amodra@gmail.com>
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.
256 2018-01-29 Eric Botcazou <ebotcazou@adacore.com>
258 * testsuite/ld-elf/shared.exp (AFLAGS_PIC): Define on SPARC.
259 (pr22269-1): Pass AFLAGS_PIC to the assembler.
261 2018-01-29 Eric Botcazou <ebotcazou@adacore.com>
263 * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.
265 2018-01-29 Maciej W. Rozycki <macro@mips.com>
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
272 2018-01-29 H.J. Lu <hongjiu.lu@intel.com>
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.
283 2018-01-27 H.J. Lu <hongjiu.lu@intel.com>
286 * testsuite/config/default.exp (INT128_CFLAGS): New.
287 * testsuite/ld-plugin/lto.exp (INT128_CFLAGS): New.
289 * testsuite/ld-plugin/pr22751.c: New file.
290 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Add
293 2018-01-28 Alan Modra <amodra@gmail.com>
296 * ldlang.c (find_rescan_insertion): Look past bfds with claim_archive
299 2018-01-26 Maciej W. Rozycki <macro@mips.com>
301 * emulparams/elf32mipswindiss.sh (EXTRA_EM_FILE): Set to
304 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
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.
324 2018-01-24 Renlin Li <renlin.li@arm.com>
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.
348 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
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.
356 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
358 * testsuite/ld-elf/group1.d: Also xfail Solaris.
360 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
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.
366 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
369 * emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
371 (elf_solaris2_before_allocation): This.
372 (LDEMUL_AFTER_ALLOCATION): Removed.
374 2018-01-18 Alan Modra <amodra@gmail.com>
376 * emultempl/ppc32elf.em: Support optional --plt-align arg.
377 * emultempl/ppc64elf.em: Support negative --plt-align arg.
379 2018-01-17 Alan Modra <amodra@gmail.com>
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.
401 2018-01-17 Alan Modra <amodra@gmail.com>
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.
426 2018-01-16 Nick Clifton <nickc@redhat.com>
428 * po/pt_BR.po: Updated Brazilian Portuguese translation.
430 2018-01-15 Nick Clifton <nickc@redhat.com>
432 * po/uk.po: Updated Ukranian translation.
434 2018-01-13 Nick Clifton <nickc@redhat.com>
436 * po/ld.pot: Regenerated.
438 2018-01-13 Nick Clifton <nickc@redhat.com>
440 * configure: Regenerate.
442 2018-01-13 Nick Clifton <nickc@redhat.com>
445 * NEWS: Add marker for 2.30.
447 2018-01-12 Alan Modra <amodra@gmail.com>
449 * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
450 initialization" for currently failing targets.
452 2018-01-12 Alan Modra <amodra@gmail.com>
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.
459 2018-01-12 Nick Clifton <nickc@redhat.com>
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.
469 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
471 * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
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.
477 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
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.
487 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
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.
504 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
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
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
523 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
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.
532 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
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.
540 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
542 * ldexp.h (union etree_union): Remove defsym field.
543 * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
545 (exp_assign): Remove passing of defsym parameter.
546 (exp_defsym): Likewise.
547 (exp_provide): Likewise.
549 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
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.
562 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
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.
574 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
576 * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
578 * testsuite/ld-scripts/provide-4.map: Update expected output.
579 * testsuite/ld-scripts/provide-5.map: Likewise.
581 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
584 * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
586 2018-01-09 Jim Wilson <jimw@sifive.com>
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.
594 2018-01-08 Jim Wilson <jimw@sifive.com>
596 * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
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.
602 2018-01-05 Jim Wilson <jimw@sifive.com>
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.
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.
612 2018-01-03 Alan Modra <amodra@gmail.com>
614 Update year range in copyright notice of all files.
616 For older changes see ChangeLog-2017
618 Copyright (C) 2018 Free Software Foundation, Inc.
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.
628 version-control: never