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