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