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