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