i386: Update tests for -z separate-code
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
75bd00e8
L
12018-02-16 H.J. Lu <hongjiu.lu@intel.com>
2
3 * testsuite/ld-i386/pr19636-1a.d: Updated.
4 * testsuite/ld-i386/pr19636-1b.d: Likewise.
5 * testsuite/ld-i386/pr19636-1j.d: Likewise.
6 * testsuite/ld-i386/pr19636-1k.d: Likewise.
7 * testsuite/ld-i386/pr19636-2a.d: Likewise.
8 * testsuite/ld-i386/pr19636-2b.d: Likewise.
9
760b2893
L
102018-02-16 H.J. Lu <hongjiu.lu@intel.com>
11
12 * testsuite/ld-i386/i386.exp: Add -z noseparate-code.
13
75cdede0
L
142018-02-16 H.J. Lu <hongjiu.lu@intel.com>
15
16 * testsuite/ld-elf/pr19162.d: Add -z noseparate-code.
17 * testsuite/ld-elf/textaddr1.d: Likewise.
18 * testsuite/ld-elf/textaddr2.d: Likewise.
19 * testsuite/ld-elf/textaddr4.d: Likewise.
20 * testsuite/ld-elf/textaddr6.d: Likewise.
21
2a0d9853
JW
222018-02-15 Jim Wilson <jimw@sifive.com>
23
24 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run pcrel-lo-addend test.
25 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: New.
26 * testsuite/ld-riscv-elf/pcrel-lo-addend.s: New.
27
451875b4
L
282018-02-14 H.J. Lu <hongjiu.lu@intel.com>
29
30 PR ld/22842
31 * testsuite/ld-i386/i386.exp: Run PR ld/22842 tests.
32 * testsuite/ld-x86-64/x86-64.exp: Likewise.
33 * testsuite/ld-i386/pr22842a.c: New file.
34 * testsuite/ld-i386/pr22842b.S: Likewise.
35 * testsuite/ld-x86-64/pr22842a.c: Likewise.
36 * testsuite/ld-x86-64/pr22842a.rd: Likewise.
37 * testsuite/ld-x86-64/pr22842b.S: Likewise.
38 * testsuite/ld-x86-64/pr22842b.rd: Likewise.
39
d4dd94f8
MR
402018-02-14 Maciej W. Rozycki <macro@mips.com>
41
42 * ldlex.h (ldlex_command): Remove prototype.
43
85f2093d
L
442018-02-13 H.J. Lu <hongjiu.lu@intel.com>
45
46 * testsuite/ld-x86-64/x86-64.exp: Replace pr22393-2a.so and
47 pr22393-2a-now.so with pr22393-3a.so and pr22393-3a-now.so.
48
60f763ee
AM
492018-02-14 H.J. Lu <hongjiu.lu@intel.com>
50
51 PR 22836
52 * testsuite/ld-elf/pr22836-1.s: New file.
53 * testsuite/ld-elf/pr22836-1a.d: Likewise.
54 * testsuite/ld-elf/pr22836-1b.d: Likewise.
55
bd7ab16b
L
562018-02-13 H.J. Lu <hongjiu.lu@intel.com>
57
58 PR gas/22791
59 * testsuite/ld-x86-64/mpx1c.rd: Updated.
60 * testsuite/ld-x86-64/pr22791-1.err: New file.
61 * testsuite/ld-x86-64/pr22791-1a.c: Likewise.
62 * testsuite/ld-x86-64/pr22791-1b.s: Likewise.
63 * testsuite/ld-x86-64/pr22791-2.rd: Likewise.
64 * testsuite/ld-x86-64/pr22791-2a.s: Likewise.
65 * testsuite/ld-x86-64/pr22791-2b.c: Likewise.
66 * testsuite/ld-x86-64/pr22791-2c.s: Likewise.
67 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/22791 tests.
68
6e5e9d58
AM
692018-02-13 Alan Modra <amodra@gmail.com>
70
71 PR 22836
72 * testsuite/ld-elf/pr22836-2.d,
73 * testsuite/ld-elf/pr22836-2.s: New test.
74
f2731e0c
AM
752018-02-13 Alan Modra <amodra@gmail.com>
76
77 * testsuite/ld-x86-64/pr14207.d: Adjust relro p_filesz.
78
407aa07c
AM
792018-02-07 Alan Modra <amodra@gmail.com>
80
81 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
82 * emultempl/ppc32elf.em: Remove --speculate-indirect-jumps support.
83 * emultempl/ppc64elf.em: Likesize
84 * ld.texinfo: Likewise
85 * testsuite/ld-powerpc/elfv2exe.d,
86 * testsuite/ld-powerpc/elfv2so.d,
87 * testsuite/ld-powerpc/relbrlt.d,
88 * testsuite/ld-powerpc/powerpc.exp: Likewise.
89
c20c30f6
EB
902018-02-06 Eric Botcazou <ebotcazou@adacore.com>
91
92 * testsuite/ld-elf/tls.exp (AFLAGS_PIC): Define on SPARC.
93 (pr22263-1): Pass AFLAGS_PIC to the assembler.
94 * testsuite/ld-sparc/tlspie32.s: Add test for other 3 transitions.
95 * testsuite/ld-sparc/tlspie32.dd: Adjust to above.
96 * testsuite/ld-sparc/tlspie64.s: Add test for other 3 transitions.
97 * testsuite/ld-sparc/tlspie64.dd: Adjust to above.
98
279b2f94
RL
992018-02-05 Renlin Li <renlin.li@arm.com>
100
101 PR ld/22764
102 * testsuite/ld-aarch64/emit-relocs-258.s: Define symbol as an address.
103 * testsuite/ld-aarch64/emit-relocs-259.s: Likewise.
104 * testsuite/ld-aarch64/pr22764.s: New.
105 * testsuite/ld-aarch64/pr22764.d: New.
106
cd048363
L
1072018-02-05 H.J. Lu <hongjiu.lu@intel.com>
108
109 PR ld/22782
110 * testsuite/ld-i386/discarded1.s: Replace mov with div.
111 * testsuite/ld-x86-64/discarded1.s: Likewise.
112 * testsuite/ld-i386/i386.exp: Run pr22782.
113 * testsuite/ld-i386/load1-nacl.d: Updated for removing
114 _GLOBAL_OFFSET_TABLE_ from output.
115 * testsuite/ld-i386/load1.d: Likewise.
116 * testsuite/ld-x86-64/load1a-nacl.d: Likewise.
117 * testsuite/ld-x86-64/load1a.d: Likewise.
118 * testsuite/ld-x86-64/load1b-nacl.d: Likewise.
119 * testsuite/ld-x86-64/load1b.d: Likewise.
120 * testsuite/ld-i386/pr22782.d: New file.
121 * testsuite/ld-i386/pr22782.s: Likewise.
122 * testsuite/ld-x86-64/pr22782.s: Likewise.
123 * testsuite/ld-x86-64/pr22782a.d: Likewise.
124 * testsuite/ld-x86-64/pr22782b.d: Likewise.
125 * testsuite/ld-x86-64/x86-64.exp: Run pr22782a and pr22782b.
126
f174ef9f
NC
1272018-02-05 Nick Clifton <nickc@redhat.com>
128
129 * po/pt_BR.po: Updated Brazilian Portuguese translation.
130
9f7393d8
L
1312018-02-04 H.J. Lu <hongjiu.lu@intel.com>
132
133 * testsuite/ld-i386/lea1d.d: Replace -Sw with -SW.
134 * testsuite/ld-i386/lea1e.d: Likewise.
135 * testsuite/ld-i386/lea1f.d: Likewise.
136 * testsuite/ld-x86-64/lea1g.d: Likewise.
137 * testsuite/ld-x86-64/lea1h.d: Likewise.
138 * testsuite/ld-x86-64/lea1i.d: Likewise.
139 * testsuite/ld-x86-64/lea1j.d: Likewise.
140 * testsuite/ld-x86-64/lea1k.d: Likewise.
141 * testsuite/ld-x86-64/lea1l.d: Likewise.
142
b0daac83
NC
1432018-02-03 Nick Clifton <nickc@redhat.com>
144
145 PR 22762
146 * scripttempl/pe.sc: Remove PROVIDE()s from __CTOR_LIST__ and
147 __DTOR_LIST__ symbols. Add a comment explaining why this is
148 necessary.
149 * scripttemp/pep.sc: Likewise.
150 * ld.texinfo (PROVIDE): Add a note about the effect of common
151 symbols.
152
138a158f
SL
1532018-02-03 Sandra Loosemore <sandra@codesourcery.com>
154
155 * emulparams/nios2elf.sh (GENERATE_SHLIB_SCRIPT): Don't set.
156
e54d3c94
MR
1572018-02-02 Maciej W. Rozycki <macro@mips.com>
158
159 * testsuite/ld-elf/shared.exp: Add $AFLAGS_PIC throughout to PIC
160 assembly builds where missing and remove `tic6x-*-*' XFAIL
161 markings accordingly.
162
e99955cd
SM
1632018-02-01 Simon Marchi <simon.marchi@ericsson.com>
164
165 * ldexp.c (fold_name, exp_fold_tree_1): Avoid pointer arithmetic
166 on NULL pointer.
167
f000c2b9
L
1682018-01-31 H.J. Lu <hongjiu.lu@intel.com>
169
170 * testsuite/ld-elf/pr21964-5.c (my_var): Mark as used.
171
450b6317
MR
1722018-01-31 Maciej W. Rozycki <macro@mips.com>
173
174 * testsuite/ld-elf/shared.exp: Fix a typo s/scrip/script/.
175
8988502d
MR
1762018-01-31 Maciej W. Rozycki <macro@mips.com>
177
178 * testsuite/ld-elf/comm-data.exp: Pass `-call_shared' to links
179 involving a shared library for `mips*vr4100*-*-elf*',
180 `mips*vr4300*-*-elf*' and `mips*vr5000*-*-elf*' targets.
181 * testsuite/ld-elf/provide-hidden.exp: Likewise.
182 * testsuite/ld-elf/shared.exp: Likewise.
183 * testsuite/ld-gc/gc.exp: Likewise.
184 * testsuite/ld-mips-elf/comm-data.exp: Likewise.
185
f3a9baf1
MR
1862018-01-31 Maciej W. Rozycki <macro@mips.com>
187
188 * testsuite/ld-elf/elf.exp: Move shared library tests over to...
189 * testsuite/ld-elf/shared.exp: ... here.
190
bf3077a6
MM
1912018-01-31 Michael Matz <matz@suse.de>
192
193 * testsuite/ld-elf/pr21964-5.c: New test.
194 * testsuite/ld-elf/shared.exp: Run it.
195
823143c6
L
1962018-01-31 H.J. Lu <hongjiu.lu@intel.com>
197
198 PR ld/21964
199 * testsuite/ld-elf/pr21964-4.c: New file.
200 * testsuite/ld-elf/shared.exp: Run pr21964-4 test on Linux.
201
040b4a9e
AM
2022018-01-30 Alan Modra <amodra@gmail.com>
203
204 * testsuite/ld-gc/stop.d,
205 * testsuite/ld-gc/stop.s: New test.
206 * testsuite/ld-gc/gc.exp: Run it.
207
af667f22
MR
2082018-01-30 Maciej W. Rozycki <macro@mips.com>
209
210 PR ld/22649
211 * testsuite/ld-elf/pr22649-2ab-mips.msg: New stderr output.
212 * testsuite/ld-elf/pr22649-2cd-mips.msg: New stderr output.
213 * testsuite/ld-elf/shared.exp: Use the new outputs with
214 `mips*-*-*' targets.
215
82252033
MR
2162018-01-30 Maciej W. Rozycki <macro@mips.com>
217
218 * testsuite/ld-elf/comm-data1.sd: Alternatively accept
219 `PRC[0xff02]' in place of a regular section index.
220 * testsuite/ld-elf/pr21703-shared.sd: Likewise `PRC[0xff01]'.
221
36b8fda5
AM
2222018-01-29 Alan Modra <amodra@gmail.com>
223
224 * testsuite/ld-elf/pr21964-3a.c: New file.
225 * testsuite/ld-elf/pr21964-3c.c: New file.
226 * testsuite/ld-elf/shared.exp: Run new __start/__stop testcase.
227
185cdb8c
EB
2282018-01-29 Eric Botcazou <ebotcazou@adacore.com>
229
230 * testsuite/ld-elf/shared.exp (AFLAGS_PIC): Define on SPARC.
231 (pr22269-1): Pass AFLAGS_PIC to the assembler.
232
d85815e2
EB
2332018-01-29 Eric Botcazou <ebotcazou@adacore.com>
234
235 * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.
236
86b24e15
MR
2372018-01-29 Maciej W. Rozycki <macro@mips.com>
238
239 * testsuite/ld-mips-elf/comm-data.exp: Correct support for
240 targets using non-traditional MIPS emulation or having a limited
241 selection of ABIs available. Don't force big endianness, use
242 defaults.
243
98d72909
L
2442018-01-29 H.J. Lu <hongjiu.lu@intel.com>
245
246 PR ld/22732
247 * testsuite/config/default.exp (STATIC_LDFLAGS): New. Set to
248 "-static" if target compiler supports it.
249 * testsuite/ld-bootstrap/bootstrap.exp: Skip static executable
250 tests if target compiler doesn't support it.
251 * testsuite/ld-ifunc/ifunc.exp: Likewise.
252 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Likewise.
253 (run_cc_link_tests): Likewise.
254
fef75122
L
2552018-01-27 H.J. Lu <hongjiu.lu@intel.com>
256
257 PR ld/22751
258 * testsuite/config/default.exp (INT128_CFLAGS): New.
259 * testsuite/ld-plugin/lto.exp (INT128_CFLAGS): New.
260 Run ld/22751 tests.
261 * testsuite/ld-plugin/pr22751.c: New file.
262 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Add
263 ld trailing options.
264
d580dcc7
AM
2652018-01-28 Alan Modra <amodra@gmail.com>
266
267 PR 22751
268 * ldlang.c (find_rescan_insertion): Look past bfds with claim_archive
269 set.
270
2ebd05b8
MR
2712018-01-26 Maciej W. Rozycki <macro@mips.com>
272
273 * emulparams/elf32mipswindiss.sh (EXTRA_EM_FILE): Set to
274 `mipself'.
275
bb363086
EB
2762018-01-25 Eric Botcazou <ebotcazou@adacore.com>
277
278 * testsuite/ld-sparc/sparc.exp (32-bit: Helper shared library):
279 Link with a version script.
280 (32-bit: TLS -fpie): New test.
281 (64-bit: Helper shared library): Link with a version script.
282 (64-bit: TLS -fpie): New test.
283 (64-bit: GOTDATA relocations): Pass -Av9 to the assembler.
284 * testsuite/ld-sparc/tlslib.ver: New file.
285 * testsuite/ld-sparc/tlspie32.dd: Likewise.
286 * testsuite/ld-sparc/tlspie32.s: Likewise.
287 * testsuite/ld-sparc/tlspie64.dd: Likewise.
288 * testsuite/ld-sparc/tlspie64.s: Likewise.
289 * testsuite/ld-sparc/tlssunbin32.dd: Adjust for versioned symbol.
290 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
291 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
292 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
293 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
294 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
295
1daf502a
RL
2962018-01-24 Renlin Li <renlin.li@arm.com>
297
298 * testsuite/ld-aarch64/aarch64-elf.exp: Run new testes.
299 * testsuite/ld-aarch64/emit-relocs-287.s: Fix test case.
300 * testsuite/ld-aarch64/emit-relocs-287.d: Fix expected output.
301 * testsuite/ld-aarch64/emit-relocs-287-overflow.s: New.
302 * testsuite/ld-aarch64/emit-relocs-287-overflow.d: New.
303 * testsuite/ld-aarch64/emit-relocs-288.d: New.
304 * testsuite/ld-aarch64/emit-relocs-288.s: New.
305 * testsuite/ld-aarch64/emit-relocs-289.d: New.
306 * testsuite/ld-aarch64/emit-relocs-289.s: New.
307 * testsuite/ld-aarch64/emit-relocs-289-overflow.s: New.
308 * testsuite/ld-aarch64/emit-relocs-289-overflow.d: New.
309 * testsuite/ld-aarch64/emit-relocs-290.d: New.
310 * testsuite/ld-aarch64/emit-relocs-290.s: New.
311 * testsuite/ld-aarch64/emit-relocs-291.d: New.
312 * testsuite/ld-aarch64/emit-relocs-291.s: New.
313 * testsuite/ld-aarch64/emit-relocs-291-overflow.s: New.
314 * testsuite/ld-aarch64/emit-relocs-291-overflow.d: New.
315 * testsuite/ld-aarch64/emit-relocs-292.d: New.
316 * testsuite/ld-aarch64/emit-relocs-292.s: New.
317 * testsuite/ld-aarch64/emit-relocs-293.d: New.
318 * testsuite/ld-aarch64/emit-relocs-293.s: New.
319
8a1b824a
L
3202018-01-20 H.J. Lu <hongjiu.lu@intel.com>
321
322 PR ld/22721
323 * testsuite/ld-plugin/lto.exp: Run PR ld/22721 tests.
324 * testsuite/ld-plugin/pr22721.t: New file.
325 * testsuite/ld-plugin/pr22721a.s: Likewise.
326 * testsuite/ld-plugin/pr22721b.c: Likewise.
327
1ebfa86a
L
3282018-01-18 H.J. Lu <hongjiu.lu@intel.com>
329
330 * testsuite/ld-elf/group1.d: Also xfail Solaris.
331
f7968f08
L
3322018-01-18 H.J. Lu <hongjiu.lu@intel.com>
333
334 * testsuite/ld-elf/linkinfo1a.d: Updated for slightly different
335 PLT/GOT order/layout for Solaris/x86 targets.
336 * testsuite/ld-elf/linkinfo1b.d: Likewise.
337
c5bdb022
L
3382018-01-18 H.J. Lu <hongjiu.lu@intel.com>
339
340 PR ld/22728
341 * emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
342 into ...
343 (elf_solaris2_before_allocation): This.
344 (LDEMUL_AFTER_ALLOCATION): Removed.
345
691d2e9a
AM
3462018-01-18 Alan Modra <amodra@gmail.com>
347
348 * emultempl/ppc32elf.em: Support optional --plt-align arg.
349 * emultempl/ppc64elf.em: Support negative --plt-align arg.
350
1be5d8d3
AM
3512018-01-17 Alan Modra <amodra@gmail.com>
352
353 * emultempl/ppc32elf.em (params): Init new field.
354 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
355 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
356 (PARSE_AND_LIST_LONGOPTS): Handle new options.
357 (PARSE_AND_LIST_ARGS_CASES): Likewise.
358 (PARSE_AND_LIST_OPTIONS): Likewise.
359 * emultempl/ppc64elf.em (params): Init new field.
360 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
361 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
362 (PARSE_AND_LIST_LONGOPTS): Handle --speculate-indirect-jumps.
363 (PARSE_AND_LIST_OPTIONS): Likewise.
364 (PARSE_AND_LIST_ARGS_CASES): Likewise.
365 * ld.texinfo (--no-plt-thread-safe): Correct itemx.
366 (--speculate-indirect-jumps): Document.
367 * testsuite/ld-powerpc/elfv2exe.d,
368 * testsuite/ld-powerpc/elfv2so.d,
369 * testsuite/ld-powerpc/relbrlt.d,
370 * testsuite/ld-powerpc/powerpc.exp: Disable plt alignment and
371 speculation barriers on various tests.
372
9e390558
AM
3732018-01-17 Alan Modra <amodra@gmail.com>
374
375 * emultempl/ppc32elf.em (params): Init new field.
376 (enum ppc32_opt): New enum to define OPTION_* values. Add
377 OPTION_PLT_ALIGN and OPTION_NO_PLT_ALIGN.
378 (PARSE_AND_LIST_LONGOPTS): Handle new options.
379 (PARSE_AND_LIST_ARGS_CASES): Likewise.
380 (PARSE_AND_LIST_OPTIONS): Likewise. Break up help output.
381 * emultempl/ppc64elf.em (ppc_add_stub_section): Init alignment
382 correctly for negative --plt-stub-align.
383 * testsuite/ld-powerpc/elfv2exe.d,
384 * testsuite/ld-powerpc/elfv2so.d,
385 * testsuite/ld-powerpc/relbrlt.d,
386 * testsuite/ld-powerpc/relbrlt.s,
387 * testsuite/ld-powerpc/tlsexe.d,
388 * testsuite/ld-powerpc/tlsexe.r,
389 * testsuite/ld-powerpc/tlsexe32.d,
390 * testsuite/ld-powerpc/tlsexe32.g,
391 * testsuite/ld-powerpc/tlsexe32.r,
392 * testsuite/ld-powerpc/tlsexetoc.d,
393 * testsuite/ld-powerpc/tlsexetoc.r,
394 * testsuite/ld-powerpc/tlsopt5_32.d,
395 * testsuite/ld-powerpc/tlsso.d,
396 * testsuite/ld-powerpc/tlstocso.d: Update for changed stub order.
397
f6efed01
NC
3982018-01-16 Nick Clifton <nickc@redhat.com>
399
f174ef9f 400 * po/pt_BR.po: Updated Brazilian Portuguese translation.
f6efed01 401
616dcb87
NC
4022018-01-15 Nick Clifton <nickc@redhat.com>
403
404 * po/uk.po: Updated Ukranian translation.
405
3957a496
NC
4062018-01-13 Nick Clifton <nickc@redhat.com>
407
408 * po/ld.pot: Regenerated.
409
769c7ea5
NC
4102018-01-13 Nick Clifton <nickc@redhat.com>
411
412 * configure: Regenerate.
413
9176ac5b
NC
4142018-01-13 Nick Clifton <nickc@redhat.com>
415
faf766e3 416 2.30 branch created.
9176ac5b
NC
417 * NEWS: Add marker for 2.30.
418
5ae5d3fd
AM
4192018-01-12 Alan Modra <amodra@gmail.com>
420
421 * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
422 initialization" for currently failing targets.
423
87e79a65
AM
4242018-01-12 Alan Modra <amodra@gmail.com>
425
426 PR ld/22649
427 * testsuite/ld-elf/pr22649.msg: Allow other messages.
428 * testsuite/ld-elf/shared.exp: Check that --gc-sections is
429 supported before running ld/22649 tests.
430
97a232d7
NC
4312018-01-12 Nick Clifton <nickc@redhat.com>
432
433 * emultempl/elf32.em (_handle_option): Add support for "-z undefs"
434 as the opposite of "-z defs".
435 * ld.texinfo: Document the new option. Update the description of
436 the -z defs option to make it clear that it does generate an error
437 if an undefined symbol reference is found in an object file whilst
438 creating a shared library.
439 * NEWS: Document this new feature.
440
33eff4ce
L
4412018-01-11 H.J. Lu <hongjiu.lu@intel.com>
442
443 * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
444 "-z separate-code".
445 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
446 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
447 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
448
cf9e7f1f
L
4492018-01-11 H.J. Lu <hongjiu.lu@intel.com>
450
451 PR ld/22393
452 * testsuite/ld-x86-64/pr22393-3a.c: New file.
453 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
454 * testsuite/ld-x86-64/pr22393-3b.c: Likewise.
455 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
456 * testsuite/ld-x86-64/x86-64.exp: Run tests for -z separate-code
457 -z max-page-size=0x1000.
458
d346bb27
L
4592018-01-11 H.J. Lu <hongjiu.lu@intel.com>
460
461 PR ld/22393
462 * testsuite/ld-elf/pr16322.d: Add -z noseparate-code.
463 * testsuite/ld-elf/pr22393-1.s: New file.
464 * testsuite/ld-elf/pr22393-1a.d: Likewise.
465 * testsuite/ld-elf/pr22393-1b.d: Likewise.
466 * testsuite/ld-elf/pr22393-1c.d: Likewise.
467 * testsuite/ld-elf/pr22393-1d.d: Likewise.
468 * testsuite/ld-elf/pr22393-1e.d: Likewise.
469 * testsuite/ld-elf/pr22393-1f.d: Likewise.
470 * testsuite/ld-elf/pr22393-2a.c: Likewise.
471 * testsuite/ld-elf/pr22393-2a.rd: Likewise.
472 * testsuite/ld-elf/pr22393-2b.c: Likewise.
473 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
474 * testsuite/ld-elf/shared.exp: Run tests for -z separate-code.
475
47acac12
L
4762018-01-11 H.J. Lu <hongjiu.lu@intel.com>
477
478 PR ld/22393
479 * NEWS: Mention "-z separate-code".
480 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Get
481 builtin linker scripts and return linker scripts from disk for
482 "-z separate-code".
483 (gld${EMULATION_NAME}_handle_option): Handle "-z separate-code"
484 and "-z noseparate-code".
485 * genscripts.sh: Generate linker scripts for "-z separate-code".
486 (LD_FLAG): Set to *textonly for "-z separate-code".
487 * ld.texinfo: Document "-z separate-code".
488 * lexsup.c (elf_shlib_list_options): Add linker help messsages
489 for "-z separate-code" and "-z noseparate-code".
490 * scripttempl/elf.sc (SEPARATE_TEXT): New
491 (TEXT_SEGMENT_ALIGN): Likewise.
492 Use ${TEXT_SEGMENT_ALIGN} to align and pad text segment to
493 ${MAXPAGESIZE}.
494
d664fd41
L
4952018-01-11 H.J. Lu <hongjiu.lu@intel.com>
496
497 PR ld/22649
498 * testsuite/ld-elf/pr22649-1.s: New file.
499 * testsuite/ld-elf/pr22649-2a.s: Likewise.
500 * testsuite/ld-elf/pr22649-2b.s: Likewise.
501 * testsuite/ld-elf/pr22649.msg: Likewise.
502 * testsuite/ld-elf/shared.exp: Run ld/22649 tests.
503
8b6f4cd3
L
5042018-01-11 H.J. Lu <hongjiu.lu@intel.com>
505
506 PR ld/22677
507 * scripttempl/elf.sc (PREINIT_ARRAY): New.
508 Don't add .preinit_array for ld -r.
509 * testsuite/ld-elf/pr22677.d: New file.
510 * testsuite/ld-elf/pr22677.s: Likewise.
511
65f14869
AB
5122018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
513
514 * ldexp.h (union etree_union): Remove defsym field.
515 * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
516 parameter.
517 (exp_assign): Remove passing of defsym parameter.
518 (exp_defsym): Likewise.
519 (exp_provide): Likewise.
520
eab62f2f
AB
5212018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
522
523 * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide
524 nodes are ignored in the tree walk, and move the location at which
525 we change provide nodes into provided nodes.
526 (exp_init_os): Add etree_provided.
527 * testsuite/ld-scripts/provide-6.d: New file.
528 * testsuite/ld-scripts/provide-6.t: New file.
529 * testsuite/ld-scripts/provide-7.d: New file.
530 * testsuite/ld-scripts/provide-7.t: New file.
531 * testsuite/ld-scripts/provide-8.d: New file.
532 * testsuite/ld-scripts/provide-8.t: New file.
533
8be965c5
AB
5342018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
535
536 * testsuite/ld-scripts/provide-3.d: Add xfail directive.
537 * testsuite/ld-scripts/provide-4.d: Use new map file name.
538 * testsuite/ld-scripts/provide-5.d: Use new map file name.
539 * testsuite/ld-scripts/provide-4-map.d: Renamed to...
540 * testsuite/ld-scripts/provide-4.map: ...this.
541 * testsuite/ld-scripts/provide-5-map.d: Renamed to...
542 * testsuite/ld-scripts/provide-5.map: ...this.
543 * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d
544 file, and run tests in a loop.
545
b3b9f8d3
AB
5462018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
547
548 * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
549 PROVIDE statements.
550 * testsuite/ld-scripts/provide-4.map: Update expected output.
551 * testsuite/ld-scripts/provide-5.map: Likewise.
552
6bd0a312
L
5532018-01-11 H.J. Lu <hongjiu.lu@intel.com>
554
555 PR ld/22696
556 * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
557
74ccf6db
JW
5582018-01-09 Jim Wilson <jimw@sifive.com>
559
560 * testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete
561 (#alltargets): Renamed from #target. Add shared.
562 * testsuite/lib/ld-lib.exp (run_dump_test): Document shared target.
563 Document alltargets option. Add support for alltargets option.
564 (istarget): Add support for shared target.
565
7615ca1d
JW
5662018-01-08 Jim Wilson <jimw@sifive.com>
567
568 * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
569 instead of .text.
570 * testsuite/ld-riscv-elf/c-lui.s: Add _start label.
571 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$
572 tests, add call to check_shared_lib_support.
573
be1dce26
JW
5742018-01-05 Jim Wilson <jimw@sifive.com>
575
35eeb78f
JW
576 * testsuite/ld-riscv-elf/disas-jalr.d: New.
577 * testsuite/ld-riscv-elf/disas-jalr.s: New.
578 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase.
579
be1dce26
JW
580 * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside
581 case on $target, and don't set for riscv*-elf targets.
582 (GENERATE_PIE_SCRIPT): Likewise.
583
219d1afa
AM
5842018-01-03 Alan Modra <amodra@gmail.com>
585
586 Update year range in copyright notice of all files.
587
1e563868 588For older changes see ChangeLog-2017
3499769a 589\f
1e563868 590Copyright (C) 2018 Free Software Foundation, Inc.
3499769a
AM
591
592Copying and distribution of this file, with or without modification,
593are permitted in any medium without royalty provided the copyright
594notice and this notice are preserved.
595
596Local Variables:
597mode: change-log
598left-margin: 8
599fill-column: 74
600version-control: never
601End:
This page took 0.17669 seconds and 4 git commands to generate.