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