1 2018-02-17 H.J. Lu <hongjiu.lu@intel.com>
4 * ld-elf/eh4.d: Pass -z max-page-size=0x200000 -z noseparate-code
7 2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
9 * testsuite/ld-x86-64/bnd-branch-1-now.d: Add -z
10 max-page-size=0x200000 -z noseparate-code.
11 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
12 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
13 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
14 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
15 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
16 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
17 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
18 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
19 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
20 * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
21 * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise.
22 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
23 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
24 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
25 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
26 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
27 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
28 * testsuite/ld-x86-64/ibt-plt-3b-x32.d: Likewise.
29 * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise.
30 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
31 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
32 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
33 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
34 * testsuite/ld-x86-64/load1a.d: Likewise.
35 * testsuite/ld-x86-64/load1b.d: Likewise.
36 * testsuite/ld-x86-64/load1c.d: Likewise.
37 * testsuite/ld-x86-64/load1d.d: Likewise.
38 * testsuite/ld-x86-64/pie3.d: Likewise.
39 * testsuite/ld-x86-64/pr14207.d: Likewise.
40 * testsuite/ld-x86-64/pr17618.d: Likewise.
41 * testsuite/ld-x86-64/pr19162.d: Likewise.
42 * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
43 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
44 * testsuite/ld-x86-64/pr20253-1b.d: Likewise.
45 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
46 * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
47 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
48 * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
49 * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
50 * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
51 * testsuite/ld-x86-64/pr20830a.d: Likewise.
52 * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
53 * testsuite/ld-x86-64/pr20830b.d: Likewise.
54 * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
55 * testsuite/ld-x86-64/pr21038a.d: Likewise.
56 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
57 * testsuite/ld-x86-64/pr21038b.d: Likewise.
58 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
59 * testsuite/ld-x86-64/pr21038c.d: Likewise.
61 2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
63 * testsuite/ld-x86-64/bnd-ifunc-1.d: Updated.
64 * testsuite/ld-x86-64/ilp32-4.d: Likewise.
66 2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
68 * testsuite/ld-x86-64/mpx.exp: Add -z max-page-size=0x200000
71 2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
73 * testsuite/ld-x86-64/x86-64.exp: Add -z noseparate-code
74 -z max-page-size=0x200000, excluding NaCl target.
76 2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
78 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
79 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
80 * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
81 * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
82 * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
83 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
84 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
86 2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
88 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Add
89 -z max-page-size=0x200000 -z noseparate-code.
90 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
91 * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
92 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
93 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
94 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
95 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
97 2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
99 * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated for i386.
100 * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
101 * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
103 2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
105 * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
106 * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
107 * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
109 2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
111 * testsuite/ld-i386/ibt-plt-1.d: Add -z noseparate-code.
112 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
113 * testsuite/ld-i386/ibt-plt-2b.d: Likewise.
114 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
115 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
116 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
117 * testsuite/ld-i386/ibt-plt-3b.d: Likewise.
118 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
119 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
120 * testsuite/ld-i386/load1.d: Likewise.
121 * testsuite/ld-i386/pie1.d: Likewise.
122 * testsuite/ld-i386/pr20244-1a.d: Likewise.
123 * testsuite/ld-i386/pr20244-1b.d: Likewise.
124 * testsuite/ld-i386/pr20244-2a.d: Likewise.
125 * testsuite/ld-i386/pr20244-2b.d: Likewise.
126 * testsuite/ld-i386/pr20244-2c.d: Likewise.
127 * testsuite/ld-i386/pr20244-4a.d: Likewise.
128 * testsuite/ld-i386/pr20244-4b.d: Likewise.
129 * testsuite/ld-i386/pr20830.d: Likewise.
131 2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
133 * testsuite/ld-i386/pr19636-1a.d: Updated.
134 * testsuite/ld-i386/pr19636-1b.d: Likewise.
135 * testsuite/ld-i386/pr19636-1j.d: Likewise.
136 * testsuite/ld-i386/pr19636-1k.d: Likewise.
137 * testsuite/ld-i386/pr19636-2a.d: Likewise.
138 * testsuite/ld-i386/pr19636-2b.d: Likewise.
140 2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
142 * testsuite/ld-i386/i386.exp: Add -z noseparate-code.
144 2018-02-16 H.J. Lu <hongjiu.lu@intel.com>
146 * testsuite/ld-elf/pr19162.d: Add -z noseparate-code.
147 * testsuite/ld-elf/textaddr1.d: Likewise.
148 * testsuite/ld-elf/textaddr2.d: Likewise.
149 * testsuite/ld-elf/textaddr4.d: Likewise.
150 * testsuite/ld-elf/textaddr6.d: Likewise.
152 2018-02-15 Jim Wilson <jimw@sifive.com>
154 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run pcrel-lo-addend test.
155 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: New.
156 * testsuite/ld-riscv-elf/pcrel-lo-addend.s: New.
158 2018-02-14 H.J. Lu <hongjiu.lu@intel.com>
161 * testsuite/ld-i386/i386.exp: Run PR ld/22842 tests.
162 * testsuite/ld-x86-64/x86-64.exp: Likewise.
163 * testsuite/ld-i386/pr22842a.c: New file.
164 * testsuite/ld-i386/pr22842b.S: Likewise.
165 * testsuite/ld-x86-64/pr22842a.c: Likewise.
166 * testsuite/ld-x86-64/pr22842a.rd: Likewise.
167 * testsuite/ld-x86-64/pr22842b.S: Likewise.
168 * testsuite/ld-x86-64/pr22842b.rd: Likewise.
170 2018-02-14 Maciej W. Rozycki <macro@mips.com>
172 * ldlex.h (ldlex_command): Remove prototype.
174 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
176 * testsuite/ld-x86-64/x86-64.exp: Replace pr22393-2a.so and
177 pr22393-2a-now.so with pr22393-3a.so and pr22393-3a-now.so.
179 2018-02-14 H.J. Lu <hongjiu.lu@intel.com>
182 * testsuite/ld-elf/pr22836-1.s: New file.
183 * testsuite/ld-elf/pr22836-1a.d: Likewise.
184 * testsuite/ld-elf/pr22836-1b.d: Likewise.
186 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
189 * testsuite/ld-x86-64/mpx1c.rd: Updated.
190 * testsuite/ld-x86-64/pr22791-1.err: New file.
191 * testsuite/ld-x86-64/pr22791-1a.c: Likewise.
192 * testsuite/ld-x86-64/pr22791-1b.s: Likewise.
193 * testsuite/ld-x86-64/pr22791-2.rd: Likewise.
194 * testsuite/ld-x86-64/pr22791-2a.s: Likewise.
195 * testsuite/ld-x86-64/pr22791-2b.c: Likewise.
196 * testsuite/ld-x86-64/pr22791-2c.s: Likewise.
197 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/22791 tests.
199 2018-02-13 Alan Modra <amodra@gmail.com>
202 * testsuite/ld-elf/pr22836-2.d,
203 * testsuite/ld-elf/pr22836-2.s: New test.
205 2018-02-13 Alan Modra <amodra@gmail.com>
207 * testsuite/ld-x86-64/pr14207.d: Adjust relro p_filesz.
209 2018-02-07 Alan Modra <amodra@gmail.com>
211 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
212 * emultempl/ppc32elf.em: Remove --speculate-indirect-jumps support.
213 * emultempl/ppc64elf.em: Likesize
214 * ld.texinfo: Likewise
215 * testsuite/ld-powerpc/elfv2exe.d,
216 * testsuite/ld-powerpc/elfv2so.d,
217 * testsuite/ld-powerpc/relbrlt.d,
218 * testsuite/ld-powerpc/powerpc.exp: Likewise.
220 2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
222 * testsuite/ld-elf/tls.exp (AFLAGS_PIC): Define on SPARC.
223 (pr22263-1): Pass AFLAGS_PIC to the assembler.
224 * testsuite/ld-sparc/tlspie32.s: Add test for other 3 transitions.
225 * testsuite/ld-sparc/tlspie32.dd: Adjust to above.
226 * testsuite/ld-sparc/tlspie64.s: Add test for other 3 transitions.
227 * testsuite/ld-sparc/tlspie64.dd: Adjust to above.
229 2018-02-05 Renlin Li <renlin.li@arm.com>
232 * testsuite/ld-aarch64/emit-relocs-258.s: Define symbol as an address.
233 * testsuite/ld-aarch64/emit-relocs-259.s: Likewise.
234 * testsuite/ld-aarch64/pr22764.s: New.
235 * testsuite/ld-aarch64/pr22764.d: New.
237 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
240 * testsuite/ld-i386/discarded1.s: Replace mov with div.
241 * testsuite/ld-x86-64/discarded1.s: Likewise.
242 * testsuite/ld-i386/i386.exp: Run pr22782.
243 * testsuite/ld-i386/load1-nacl.d: Updated for removing
244 _GLOBAL_OFFSET_TABLE_ from output.
245 * testsuite/ld-i386/load1.d: Likewise.
246 * testsuite/ld-x86-64/load1a-nacl.d: Likewise.
247 * testsuite/ld-x86-64/load1a.d: Likewise.
248 * testsuite/ld-x86-64/load1b-nacl.d: Likewise.
249 * testsuite/ld-x86-64/load1b.d: Likewise.
250 * testsuite/ld-i386/pr22782.d: New file.
251 * testsuite/ld-i386/pr22782.s: Likewise.
252 * testsuite/ld-x86-64/pr22782.s: Likewise.
253 * testsuite/ld-x86-64/pr22782a.d: Likewise.
254 * testsuite/ld-x86-64/pr22782b.d: Likewise.
255 * testsuite/ld-x86-64/x86-64.exp: Run pr22782a and pr22782b.
257 2018-02-05 Nick Clifton <nickc@redhat.com>
259 * po/pt_BR.po: Updated Brazilian Portuguese translation.
261 2018-02-04 H.J. Lu <hongjiu.lu@intel.com>
263 * testsuite/ld-i386/lea1d.d: Replace -Sw with -SW.
264 * testsuite/ld-i386/lea1e.d: Likewise.
265 * testsuite/ld-i386/lea1f.d: Likewise.
266 * testsuite/ld-x86-64/lea1g.d: Likewise.
267 * testsuite/ld-x86-64/lea1h.d: Likewise.
268 * testsuite/ld-x86-64/lea1i.d: Likewise.
269 * testsuite/ld-x86-64/lea1j.d: Likewise.
270 * testsuite/ld-x86-64/lea1k.d: Likewise.
271 * testsuite/ld-x86-64/lea1l.d: Likewise.
273 2018-02-03 Nick Clifton <nickc@redhat.com>
276 * scripttempl/pe.sc: Remove PROVIDE()s from __CTOR_LIST__ and
277 __DTOR_LIST__ symbols. Add a comment explaining why this is
279 * scripttemp/pep.sc: Likewise.
280 * ld.texinfo (PROVIDE): Add a note about the effect of common
283 2018-02-03 Sandra Loosemore <sandra@codesourcery.com>
285 * emulparams/nios2elf.sh (GENERATE_SHLIB_SCRIPT): Don't set.
287 2018-02-02 Maciej W. Rozycki <macro@mips.com>
289 * testsuite/ld-elf/shared.exp: Add $AFLAGS_PIC throughout to PIC
290 assembly builds where missing and remove `tic6x-*-*' XFAIL
291 markings accordingly.
293 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
295 * ldexp.c (fold_name, exp_fold_tree_1): Avoid pointer arithmetic
298 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
300 * testsuite/ld-elf/pr21964-5.c (my_var): Mark as used.
302 2018-01-31 Maciej W. Rozycki <macro@mips.com>
304 * testsuite/ld-elf/shared.exp: Fix a typo s/scrip/script/.
306 2018-01-31 Maciej W. Rozycki <macro@mips.com>
308 * testsuite/ld-elf/comm-data.exp: Pass `-call_shared' to links
309 involving a shared library for `mips*vr4100*-*-elf*',
310 `mips*vr4300*-*-elf*' and `mips*vr5000*-*-elf*' targets.
311 * testsuite/ld-elf/provide-hidden.exp: Likewise.
312 * testsuite/ld-elf/shared.exp: Likewise.
313 * testsuite/ld-gc/gc.exp: Likewise.
314 * testsuite/ld-mips-elf/comm-data.exp: Likewise.
316 2018-01-31 Maciej W. Rozycki <macro@mips.com>
318 * testsuite/ld-elf/elf.exp: Move shared library tests over to...
319 * testsuite/ld-elf/shared.exp: ... here.
321 2018-01-31 Michael Matz <matz@suse.de>
323 * testsuite/ld-elf/pr21964-5.c: New test.
324 * testsuite/ld-elf/shared.exp: Run it.
326 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
329 * testsuite/ld-elf/pr21964-4.c: New file.
330 * testsuite/ld-elf/shared.exp: Run pr21964-4 test on Linux.
332 2018-01-30 Alan Modra <amodra@gmail.com>
334 * testsuite/ld-gc/stop.d,
335 * testsuite/ld-gc/stop.s: New test.
336 * testsuite/ld-gc/gc.exp: Run it.
338 2018-01-30 Maciej W. Rozycki <macro@mips.com>
341 * testsuite/ld-elf/pr22649-2ab-mips.msg: New stderr output.
342 * testsuite/ld-elf/pr22649-2cd-mips.msg: New stderr output.
343 * testsuite/ld-elf/shared.exp: Use the new outputs with
346 2018-01-30 Maciej W. Rozycki <macro@mips.com>
348 * testsuite/ld-elf/comm-data1.sd: Alternatively accept
349 `PRC[0xff02]' in place of a regular section index.
350 * testsuite/ld-elf/pr21703-shared.sd: Likewise `PRC[0xff01]'.
352 2018-01-29 Alan Modra <amodra@gmail.com>
354 * testsuite/ld-elf/pr21964-3a.c: New file.
355 * testsuite/ld-elf/pr21964-3c.c: New file.
356 * testsuite/ld-elf/shared.exp: Run new __start/__stop testcase.
358 2018-01-29 Eric Botcazou <ebotcazou@adacore.com>
360 * testsuite/ld-elf/shared.exp (AFLAGS_PIC): Define on SPARC.
361 (pr22269-1): Pass AFLAGS_PIC to the assembler.
363 2018-01-29 Eric Botcazou <ebotcazou@adacore.com>
365 * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.
367 2018-01-29 Maciej W. Rozycki <macro@mips.com>
369 * testsuite/ld-mips-elf/comm-data.exp: Correct support for
370 targets using non-traditional MIPS emulation or having a limited
371 selection of ABIs available. Don't force big endianness, use
374 2018-01-29 H.J. Lu <hongjiu.lu@intel.com>
377 * testsuite/config/default.exp (STATIC_LDFLAGS): New. Set to
378 "-static" if target compiler supports it.
379 * testsuite/ld-bootstrap/bootstrap.exp: Skip static executable
380 tests if target compiler doesn't support it.
381 * testsuite/ld-ifunc/ifunc.exp: Likewise.
382 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Likewise.
383 (run_cc_link_tests): Likewise.
385 2018-01-27 H.J. Lu <hongjiu.lu@intel.com>
388 * testsuite/config/default.exp (INT128_CFLAGS): New.
389 * testsuite/ld-plugin/lto.exp (INT128_CFLAGS): New.
391 * testsuite/ld-plugin/pr22751.c: New file.
392 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Add
395 2018-01-28 Alan Modra <amodra@gmail.com>
398 * ldlang.c (find_rescan_insertion): Look past bfds with claim_archive
401 2018-01-26 Maciej W. Rozycki <macro@mips.com>
403 * emulparams/elf32mipswindiss.sh (EXTRA_EM_FILE): Set to
406 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
408 * testsuite/ld-sparc/sparc.exp (32-bit: Helper shared library):
409 Link with a version script.
410 (32-bit: TLS -fpie): New test.
411 (64-bit: Helper shared library): Link with a version script.
412 (64-bit: TLS -fpie): New test.
413 (64-bit: GOTDATA relocations): Pass -Av9 to the assembler.
414 * testsuite/ld-sparc/tlslib.ver: New file.
415 * testsuite/ld-sparc/tlspie32.dd: Likewise.
416 * testsuite/ld-sparc/tlspie32.s: Likewise.
417 * testsuite/ld-sparc/tlspie64.dd: Likewise.
418 * testsuite/ld-sparc/tlspie64.s: Likewise.
419 * testsuite/ld-sparc/tlssunbin32.dd: Adjust for versioned symbol.
420 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
421 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
422 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
423 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
424 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
426 2018-01-24 Renlin Li <renlin.li@arm.com>
428 * testsuite/ld-aarch64/aarch64-elf.exp: Run new testes.
429 * testsuite/ld-aarch64/emit-relocs-287.s: Fix test case.
430 * testsuite/ld-aarch64/emit-relocs-287.d: Fix expected output.
431 * testsuite/ld-aarch64/emit-relocs-287-overflow.s: New.
432 * testsuite/ld-aarch64/emit-relocs-287-overflow.d: New.
433 * testsuite/ld-aarch64/emit-relocs-288.d: New.
434 * testsuite/ld-aarch64/emit-relocs-288.s: New.
435 * testsuite/ld-aarch64/emit-relocs-289.d: New.
436 * testsuite/ld-aarch64/emit-relocs-289.s: New.
437 * testsuite/ld-aarch64/emit-relocs-289-overflow.s: New.
438 * testsuite/ld-aarch64/emit-relocs-289-overflow.d: New.
439 * testsuite/ld-aarch64/emit-relocs-290.d: New.
440 * testsuite/ld-aarch64/emit-relocs-290.s: New.
441 * testsuite/ld-aarch64/emit-relocs-291.d: New.
442 * testsuite/ld-aarch64/emit-relocs-291.s: New.
443 * testsuite/ld-aarch64/emit-relocs-291-overflow.s: New.
444 * testsuite/ld-aarch64/emit-relocs-291-overflow.d: New.
445 * testsuite/ld-aarch64/emit-relocs-292.d: New.
446 * testsuite/ld-aarch64/emit-relocs-292.s: New.
447 * testsuite/ld-aarch64/emit-relocs-293.d: New.
448 * testsuite/ld-aarch64/emit-relocs-293.s: New.
450 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
453 * testsuite/ld-plugin/lto.exp: Run PR ld/22721 tests.
454 * testsuite/ld-plugin/pr22721.t: New file.
455 * testsuite/ld-plugin/pr22721a.s: Likewise.
456 * testsuite/ld-plugin/pr22721b.c: Likewise.
458 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
460 * testsuite/ld-elf/group1.d: Also xfail Solaris.
462 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
464 * testsuite/ld-elf/linkinfo1a.d: Updated for slightly different
465 PLT/GOT order/layout for Solaris/x86 targets.
466 * testsuite/ld-elf/linkinfo1b.d: Likewise.
468 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
471 * emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
473 (elf_solaris2_before_allocation): This.
474 (LDEMUL_AFTER_ALLOCATION): Removed.
476 2018-01-18 Alan Modra <amodra@gmail.com>
478 * emultempl/ppc32elf.em: Support optional --plt-align arg.
479 * emultempl/ppc64elf.em: Support negative --plt-align arg.
481 2018-01-17 Alan Modra <amodra@gmail.com>
483 * emultempl/ppc32elf.em (params): Init new field.
484 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
485 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
486 (PARSE_AND_LIST_LONGOPTS): Handle new options.
487 (PARSE_AND_LIST_ARGS_CASES): Likewise.
488 (PARSE_AND_LIST_OPTIONS): Likewise.
489 * emultempl/ppc64elf.em (params): Init new field.
490 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
491 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
492 (PARSE_AND_LIST_LONGOPTS): Handle --speculate-indirect-jumps.
493 (PARSE_AND_LIST_OPTIONS): Likewise.
494 (PARSE_AND_LIST_ARGS_CASES): Likewise.
495 * ld.texinfo (--no-plt-thread-safe): Correct itemx.
496 (--speculate-indirect-jumps): Document.
497 * testsuite/ld-powerpc/elfv2exe.d,
498 * testsuite/ld-powerpc/elfv2so.d,
499 * testsuite/ld-powerpc/relbrlt.d,
500 * testsuite/ld-powerpc/powerpc.exp: Disable plt alignment and
501 speculation barriers on various tests.
503 2018-01-17 Alan Modra <amodra@gmail.com>
505 * emultempl/ppc32elf.em (params): Init new field.
506 (enum ppc32_opt): New enum to define OPTION_* values. Add
507 OPTION_PLT_ALIGN and OPTION_NO_PLT_ALIGN.
508 (PARSE_AND_LIST_LONGOPTS): Handle new options.
509 (PARSE_AND_LIST_ARGS_CASES): Likewise.
510 (PARSE_AND_LIST_OPTIONS): Likewise. Break up help output.
511 * emultempl/ppc64elf.em (ppc_add_stub_section): Init alignment
512 correctly for negative --plt-stub-align.
513 * testsuite/ld-powerpc/elfv2exe.d,
514 * testsuite/ld-powerpc/elfv2so.d,
515 * testsuite/ld-powerpc/relbrlt.d,
516 * testsuite/ld-powerpc/relbrlt.s,
517 * testsuite/ld-powerpc/tlsexe.d,
518 * testsuite/ld-powerpc/tlsexe.r,
519 * testsuite/ld-powerpc/tlsexe32.d,
520 * testsuite/ld-powerpc/tlsexe32.g,
521 * testsuite/ld-powerpc/tlsexe32.r,
522 * testsuite/ld-powerpc/tlsexetoc.d,
523 * testsuite/ld-powerpc/tlsexetoc.r,
524 * testsuite/ld-powerpc/tlsopt5_32.d,
525 * testsuite/ld-powerpc/tlsso.d,
526 * testsuite/ld-powerpc/tlstocso.d: Update for changed stub order.
528 2018-01-16 Nick Clifton <nickc@redhat.com>
530 * po/pt_BR.po: Updated Brazilian Portuguese translation.
532 2018-01-15 Nick Clifton <nickc@redhat.com>
534 * po/uk.po: Updated Ukranian translation.
536 2018-01-13 Nick Clifton <nickc@redhat.com>
538 * po/ld.pot: Regenerated.
540 2018-01-13 Nick Clifton <nickc@redhat.com>
542 * configure: Regenerate.
544 2018-01-13 Nick Clifton <nickc@redhat.com>
547 * NEWS: Add marker for 2.30.
549 2018-01-12 Alan Modra <amodra@gmail.com>
551 * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
552 initialization" for currently failing targets.
554 2018-01-12 Alan Modra <amodra@gmail.com>
557 * testsuite/ld-elf/pr22649.msg: Allow other messages.
558 * testsuite/ld-elf/shared.exp: Check that --gc-sections is
559 supported before running ld/22649 tests.
561 2018-01-12 Nick Clifton <nickc@redhat.com>
563 * emultempl/elf32.em (_handle_option): Add support for "-z undefs"
564 as the opposite of "-z defs".
565 * ld.texinfo: Document the new option. Update the description of
566 the -z defs option to make it clear that it does generate an error
567 if an undefined symbol reference is found in an object file whilst
568 creating a shared library.
569 * NEWS: Document this new feature.
571 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
573 * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
575 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
576 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
577 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
579 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
582 * testsuite/ld-x86-64/pr22393-3a.c: New file.
583 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
584 * testsuite/ld-x86-64/pr22393-3b.c: Likewise.
585 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
586 * testsuite/ld-x86-64/x86-64.exp: Run tests for -z separate-code
587 -z max-page-size=0x1000.
589 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
592 * testsuite/ld-elf/pr16322.d: Add -z noseparate-code.
593 * testsuite/ld-elf/pr22393-1.s: New file.
594 * testsuite/ld-elf/pr22393-1a.d: Likewise.
595 * testsuite/ld-elf/pr22393-1b.d: Likewise.
596 * testsuite/ld-elf/pr22393-1c.d: Likewise.
597 * testsuite/ld-elf/pr22393-1d.d: Likewise.
598 * testsuite/ld-elf/pr22393-1e.d: Likewise.
599 * testsuite/ld-elf/pr22393-1f.d: Likewise.
600 * testsuite/ld-elf/pr22393-2a.c: Likewise.
601 * testsuite/ld-elf/pr22393-2a.rd: Likewise.
602 * testsuite/ld-elf/pr22393-2b.c: Likewise.
603 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
604 * testsuite/ld-elf/shared.exp: Run tests for -z separate-code.
606 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
609 * NEWS: Mention "-z separate-code".
610 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Get
611 builtin linker scripts and return linker scripts from disk for
613 (gld${EMULATION_NAME}_handle_option): Handle "-z separate-code"
614 and "-z noseparate-code".
615 * genscripts.sh: Generate linker scripts for "-z separate-code".
616 (LD_FLAG): Set to *textonly for "-z separate-code".
617 * ld.texinfo: Document "-z separate-code".
618 * lexsup.c (elf_shlib_list_options): Add linker help messsages
619 for "-z separate-code" and "-z noseparate-code".
620 * scripttempl/elf.sc (SEPARATE_TEXT): New
621 (TEXT_SEGMENT_ALIGN): Likewise.
622 Use ${TEXT_SEGMENT_ALIGN} to align and pad text segment to
625 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
628 * testsuite/ld-elf/pr22649-1.s: New file.
629 * testsuite/ld-elf/pr22649-2a.s: Likewise.
630 * testsuite/ld-elf/pr22649-2b.s: Likewise.
631 * testsuite/ld-elf/pr22649.msg: Likewise.
632 * testsuite/ld-elf/shared.exp: Run ld/22649 tests.
634 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
637 * scripttempl/elf.sc (PREINIT_ARRAY): New.
638 Don't add .preinit_array for ld -r.
639 * testsuite/ld-elf/pr22677.d: New file.
640 * testsuite/ld-elf/pr22677.s: Likewise.
642 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
644 * ldexp.h (union etree_union): Remove defsym field.
645 * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
647 (exp_assign): Remove passing of defsym parameter.
648 (exp_defsym): Likewise.
649 (exp_provide): Likewise.
651 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
653 * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide
654 nodes are ignored in the tree walk, and move the location at which
655 we change provide nodes into provided nodes.
656 (exp_init_os): Add etree_provided.
657 * testsuite/ld-scripts/provide-6.d: New file.
658 * testsuite/ld-scripts/provide-6.t: New file.
659 * testsuite/ld-scripts/provide-7.d: New file.
660 * testsuite/ld-scripts/provide-7.t: New file.
661 * testsuite/ld-scripts/provide-8.d: New file.
662 * testsuite/ld-scripts/provide-8.t: New file.
664 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
666 * testsuite/ld-scripts/provide-3.d: Add xfail directive.
667 * testsuite/ld-scripts/provide-4.d: Use new map file name.
668 * testsuite/ld-scripts/provide-5.d: Use new map file name.
669 * testsuite/ld-scripts/provide-4-map.d: Renamed to...
670 * testsuite/ld-scripts/provide-4.map: ...this.
671 * testsuite/ld-scripts/provide-5-map.d: Renamed to...
672 * testsuite/ld-scripts/provide-5.map: ...this.
673 * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d
674 file, and run tests in a loop.
676 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
678 * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
680 * testsuite/ld-scripts/provide-4.map: Update expected output.
681 * testsuite/ld-scripts/provide-5.map: Likewise.
683 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
686 * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
688 2018-01-09 Jim Wilson <jimw@sifive.com>
690 * testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete
691 (#alltargets): Renamed from #target. Add shared.
692 * testsuite/lib/ld-lib.exp (run_dump_test): Document shared target.
693 Document alltargets option. Add support for alltargets option.
694 (istarget): Add support for shared target.
696 2018-01-08 Jim Wilson <jimw@sifive.com>
698 * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
700 * testsuite/ld-riscv-elf/c-lui.s: Add _start label.
701 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$
702 tests, add call to check_shared_lib_support.
704 2018-01-05 Jim Wilson <jimw@sifive.com>
706 * testsuite/ld-riscv-elf/disas-jalr.d: New.
707 * testsuite/ld-riscv-elf/disas-jalr.s: New.
708 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase.
710 * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside
711 case on $target, and don't set for riscv*-elf targets.
712 (GENERATE_PIE_SCRIPT): Likewise.
714 2018-01-03 Alan Modra <amodra@gmail.com>
716 Update year range in copyright notice of all files.
718 For older changes see ChangeLog-2017
720 Copyright (C) 2018 Free Software Foundation, Inc.
722 Copying and distribution of this file, with or without modification,
723 are permitted in any medium without royalty provided the copyright
724 notice and this notice are preserved.
730 version-control: never