LD/testsuite: Move ELF shared library tests from elf.exp to shared.exp
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
f3a9baf1
MR
12018-01-31 Maciej W. Rozycki <macro@mips.com>
2
3 * testsuite/ld-elf/elf.exp: Move shared library tests over to...
4 * testsuite/ld-elf/shared.exp: ... here.
5
bf3077a6
MM
62018-01-31 Michael Matz <matz@suse.de>
7
8 * testsuite/ld-elf/pr21964-5.c: New test.
9 * testsuite/ld-elf/shared.exp: Run it.
10
823143c6
L
112018-01-31 H.J. Lu <hongjiu.lu@intel.com>
12
13 PR ld/21964
14 * testsuite/ld-elf/pr21964-4.c: New file.
15 * testsuite/ld-elf/shared.exp: Run pr21964-4 test on Linux.
16
040b4a9e
AM
172018-01-30 Alan Modra <amodra@gmail.com>
18
19 * testsuite/ld-gc/stop.d,
20 * testsuite/ld-gc/stop.s: New test.
21 * testsuite/ld-gc/gc.exp: Run it.
22
af667f22
MR
232018-01-30 Maciej W. Rozycki <macro@mips.com>
24
25 PR ld/22649
26 * testsuite/ld-elf/pr22649-2ab-mips.msg: New stderr output.
27 * testsuite/ld-elf/pr22649-2cd-mips.msg: New stderr output.
28 * testsuite/ld-elf/shared.exp: Use the new outputs with
29 `mips*-*-*' targets.
30
82252033
MR
312018-01-30 Maciej W. Rozycki <macro@mips.com>
32
33 * testsuite/ld-elf/comm-data1.sd: Alternatively accept
34 `PRC[0xff02]' in place of a regular section index.
35 * testsuite/ld-elf/pr21703-shared.sd: Likewise `PRC[0xff01]'.
36
36b8fda5
AM
372018-01-29 Alan Modra <amodra@gmail.com>
38
39 * testsuite/ld-elf/pr21964-3a.c: New file.
40 * testsuite/ld-elf/pr21964-3c.c: New file.
41 * testsuite/ld-elf/shared.exp: Run new __start/__stop testcase.
42
185cdb8c
EB
432018-01-29 Eric Botcazou <ebotcazou@adacore.com>
44
45 * testsuite/ld-elf/shared.exp (AFLAGS_PIC): Define on SPARC.
46 (pr22269-1): Pass AFLAGS_PIC to the assembler.
47
d85815e2
EB
482018-01-29 Eric Botcazou <ebotcazou@adacore.com>
49
50 * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.
51
86b24e15
MR
522018-01-29 Maciej W. Rozycki <macro@mips.com>
53
54 * testsuite/ld-mips-elf/comm-data.exp: Correct support for
55 targets using non-traditional MIPS emulation or having a limited
56 selection of ABIs available. Don't force big endianness, use
57 defaults.
58
98d72909
L
592018-01-29 H.J. Lu <hongjiu.lu@intel.com>
60
61 PR ld/22732
62 * testsuite/config/default.exp (STATIC_LDFLAGS): New. Set to
63 "-static" if target compiler supports it.
64 * testsuite/ld-bootstrap/bootstrap.exp: Skip static executable
65 tests if target compiler doesn't support it.
66 * testsuite/ld-ifunc/ifunc.exp: Likewise.
67 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Likewise.
68 (run_cc_link_tests): Likewise.
69
fef75122
L
702018-01-27 H.J. Lu <hongjiu.lu@intel.com>
71
72 PR ld/22751
73 * testsuite/config/default.exp (INT128_CFLAGS): New.
74 * testsuite/ld-plugin/lto.exp (INT128_CFLAGS): New.
75 Run ld/22751 tests.
76 * testsuite/ld-plugin/pr22751.c: New file.
77 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Add
78 ld trailing options.
79
d580dcc7
AM
802018-01-28 Alan Modra <amodra@gmail.com>
81
82 PR 22751
83 * ldlang.c (find_rescan_insertion): Look past bfds with claim_archive
84 set.
85
2ebd05b8
MR
862018-01-26 Maciej W. Rozycki <macro@mips.com>
87
88 * emulparams/elf32mipswindiss.sh (EXTRA_EM_FILE): Set to
89 `mipself'.
90
bb363086
EB
912018-01-25 Eric Botcazou <ebotcazou@adacore.com>
92
93 * testsuite/ld-sparc/sparc.exp (32-bit: Helper shared library):
94 Link with a version script.
95 (32-bit: TLS -fpie): New test.
96 (64-bit: Helper shared library): Link with a version script.
97 (64-bit: TLS -fpie): New test.
98 (64-bit: GOTDATA relocations): Pass -Av9 to the assembler.
99 * testsuite/ld-sparc/tlslib.ver: New file.
100 * testsuite/ld-sparc/tlspie32.dd: Likewise.
101 * testsuite/ld-sparc/tlspie32.s: Likewise.
102 * testsuite/ld-sparc/tlspie64.dd: Likewise.
103 * testsuite/ld-sparc/tlspie64.s: Likewise.
104 * testsuite/ld-sparc/tlssunbin32.dd: Adjust for versioned symbol.
105 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
106 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
107 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
108 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
109 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
110
1daf502a
RL
1112018-01-24 Renlin Li <renlin.li@arm.com>
112
113 * testsuite/ld-aarch64/aarch64-elf.exp: Run new testes.
114 * testsuite/ld-aarch64/emit-relocs-287.s: Fix test case.
115 * testsuite/ld-aarch64/emit-relocs-287.d: Fix expected output.
116 * testsuite/ld-aarch64/emit-relocs-287-overflow.s: New.
117 * testsuite/ld-aarch64/emit-relocs-287-overflow.d: New.
118 * testsuite/ld-aarch64/emit-relocs-288.d: New.
119 * testsuite/ld-aarch64/emit-relocs-288.s: New.
120 * testsuite/ld-aarch64/emit-relocs-289.d: New.
121 * testsuite/ld-aarch64/emit-relocs-289.s: New.
122 * testsuite/ld-aarch64/emit-relocs-289-overflow.s: New.
123 * testsuite/ld-aarch64/emit-relocs-289-overflow.d: New.
124 * testsuite/ld-aarch64/emit-relocs-290.d: New.
125 * testsuite/ld-aarch64/emit-relocs-290.s: New.
126 * testsuite/ld-aarch64/emit-relocs-291.d: New.
127 * testsuite/ld-aarch64/emit-relocs-291.s: New.
128 * testsuite/ld-aarch64/emit-relocs-291-overflow.s: New.
129 * testsuite/ld-aarch64/emit-relocs-291-overflow.d: New.
130 * testsuite/ld-aarch64/emit-relocs-292.d: New.
131 * testsuite/ld-aarch64/emit-relocs-292.s: New.
132 * testsuite/ld-aarch64/emit-relocs-293.d: New.
133 * testsuite/ld-aarch64/emit-relocs-293.s: New.
134
8a1b824a
L
1352018-01-20 H.J. Lu <hongjiu.lu@intel.com>
136
137 PR ld/22721
138 * testsuite/ld-plugin/lto.exp: Run PR ld/22721 tests.
139 * testsuite/ld-plugin/pr22721.t: New file.
140 * testsuite/ld-plugin/pr22721a.s: Likewise.
141 * testsuite/ld-plugin/pr22721b.c: Likewise.
142
1ebfa86a
L
1432018-01-18 H.J. Lu <hongjiu.lu@intel.com>
144
145 * testsuite/ld-elf/group1.d: Also xfail Solaris.
146
f7968f08
L
1472018-01-18 H.J. Lu <hongjiu.lu@intel.com>
148
149 * testsuite/ld-elf/linkinfo1a.d: Updated for slightly different
150 PLT/GOT order/layout for Solaris/x86 targets.
151 * testsuite/ld-elf/linkinfo1b.d: Likewise.
152
c5bdb022
L
1532018-01-18 H.J. Lu <hongjiu.lu@intel.com>
154
155 PR ld/22728
156 * emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
157 into ...
158 (elf_solaris2_before_allocation): This.
159 (LDEMUL_AFTER_ALLOCATION): Removed.
160
691d2e9a
AM
1612018-01-18 Alan Modra <amodra@gmail.com>
162
163 * emultempl/ppc32elf.em: Support optional --plt-align arg.
164 * emultempl/ppc64elf.em: Support negative --plt-align arg.
165
1be5d8d3
AM
1662018-01-17 Alan Modra <amodra@gmail.com>
167
168 * emultempl/ppc32elf.em (params): Init new field.
169 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
170 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
171 (PARSE_AND_LIST_LONGOPTS): Handle new options.
172 (PARSE_AND_LIST_ARGS_CASES): Likewise.
173 (PARSE_AND_LIST_OPTIONS): Likewise.
174 * emultempl/ppc64elf.em (params): Init new field.
175 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
176 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
177 (PARSE_AND_LIST_LONGOPTS): Handle --speculate-indirect-jumps.
178 (PARSE_AND_LIST_OPTIONS): Likewise.
179 (PARSE_AND_LIST_ARGS_CASES): Likewise.
180 * ld.texinfo (--no-plt-thread-safe): Correct itemx.
181 (--speculate-indirect-jumps): Document.
182 * testsuite/ld-powerpc/elfv2exe.d,
183 * testsuite/ld-powerpc/elfv2so.d,
184 * testsuite/ld-powerpc/relbrlt.d,
185 * testsuite/ld-powerpc/powerpc.exp: Disable plt alignment and
186 speculation barriers on various tests.
187
9e390558
AM
1882018-01-17 Alan Modra <amodra@gmail.com>
189
190 * emultempl/ppc32elf.em (params): Init new field.
191 (enum ppc32_opt): New enum to define OPTION_* values. Add
192 OPTION_PLT_ALIGN and OPTION_NO_PLT_ALIGN.
193 (PARSE_AND_LIST_LONGOPTS): Handle new options.
194 (PARSE_AND_LIST_ARGS_CASES): Likewise.
195 (PARSE_AND_LIST_OPTIONS): Likewise. Break up help output.
196 * emultempl/ppc64elf.em (ppc_add_stub_section): Init alignment
197 correctly for negative --plt-stub-align.
198 * testsuite/ld-powerpc/elfv2exe.d,
199 * testsuite/ld-powerpc/elfv2so.d,
200 * testsuite/ld-powerpc/relbrlt.d,
201 * testsuite/ld-powerpc/relbrlt.s,
202 * testsuite/ld-powerpc/tlsexe.d,
203 * testsuite/ld-powerpc/tlsexe.r,
204 * testsuite/ld-powerpc/tlsexe32.d,
205 * testsuite/ld-powerpc/tlsexe32.g,
206 * testsuite/ld-powerpc/tlsexe32.r,
207 * testsuite/ld-powerpc/tlsexetoc.d,
208 * testsuite/ld-powerpc/tlsexetoc.r,
209 * testsuite/ld-powerpc/tlsopt5_32.d,
210 * testsuite/ld-powerpc/tlsso.d,
211 * testsuite/ld-powerpc/tlstocso.d: Update for changed stub order.
212
f6efed01
NC
2132018-01-16 Nick Clifton <nickc@redhat.com>
214
215 * po/pt_BR.po: Updated Brazilian Portugese translation.
216
616dcb87
NC
2172018-01-15 Nick Clifton <nickc@redhat.com>
218
219 * po/uk.po: Updated Ukranian translation.
220
3957a496
NC
2212018-01-13 Nick Clifton <nickc@redhat.com>
222
223 * po/ld.pot: Regenerated.
224
769c7ea5
NC
2252018-01-13 Nick Clifton <nickc@redhat.com>
226
227 * configure: Regenerate.
228
9176ac5b
NC
2292018-01-13 Nick Clifton <nickc@redhat.com>
230
faf766e3 231 2.30 branch created.
9176ac5b
NC
232 * NEWS: Add marker for 2.30.
233
5ae5d3fd
AM
2342018-01-12 Alan Modra <amodra@gmail.com>
235
236 * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
237 initialization" for currently failing targets.
238
87e79a65
AM
2392018-01-12 Alan Modra <amodra@gmail.com>
240
241 PR ld/22649
242 * testsuite/ld-elf/pr22649.msg: Allow other messages.
243 * testsuite/ld-elf/shared.exp: Check that --gc-sections is
244 supported before running ld/22649 tests.
245
97a232d7
NC
2462018-01-12 Nick Clifton <nickc@redhat.com>
247
248 * emultempl/elf32.em (_handle_option): Add support for "-z undefs"
249 as the opposite of "-z defs".
250 * ld.texinfo: Document the new option. Update the description of
251 the -z defs option to make it clear that it does generate an error
252 if an undefined symbol reference is found in an object file whilst
253 creating a shared library.
254 * NEWS: Document this new feature.
255
33eff4ce
L
2562018-01-11 H.J. Lu <hongjiu.lu@intel.com>
257
258 * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
259 "-z separate-code".
260 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
261 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
262 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
263
cf9e7f1f
L
2642018-01-11 H.J. Lu <hongjiu.lu@intel.com>
265
266 PR ld/22393
267 * testsuite/ld-x86-64/pr22393-3a.c: New file.
268 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
269 * testsuite/ld-x86-64/pr22393-3b.c: Likewise.
270 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
271 * testsuite/ld-x86-64/x86-64.exp: Run tests for -z separate-code
272 -z max-page-size=0x1000.
273
d346bb27
L
2742018-01-11 H.J. Lu <hongjiu.lu@intel.com>
275
276 PR ld/22393
277 * testsuite/ld-elf/pr16322.d: Add -z noseparate-code.
278 * testsuite/ld-elf/pr22393-1.s: New file.
279 * testsuite/ld-elf/pr22393-1a.d: Likewise.
280 * testsuite/ld-elf/pr22393-1b.d: Likewise.
281 * testsuite/ld-elf/pr22393-1c.d: Likewise.
282 * testsuite/ld-elf/pr22393-1d.d: Likewise.
283 * testsuite/ld-elf/pr22393-1e.d: Likewise.
284 * testsuite/ld-elf/pr22393-1f.d: Likewise.
285 * testsuite/ld-elf/pr22393-2a.c: Likewise.
286 * testsuite/ld-elf/pr22393-2a.rd: Likewise.
287 * testsuite/ld-elf/pr22393-2b.c: Likewise.
288 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
289 * testsuite/ld-elf/shared.exp: Run tests for -z separate-code.
290
47acac12
L
2912018-01-11 H.J. Lu <hongjiu.lu@intel.com>
292
293 PR ld/22393
294 * NEWS: Mention "-z separate-code".
295 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Get
296 builtin linker scripts and return linker scripts from disk for
297 "-z separate-code".
298 (gld${EMULATION_NAME}_handle_option): Handle "-z separate-code"
299 and "-z noseparate-code".
300 * genscripts.sh: Generate linker scripts for "-z separate-code".
301 (LD_FLAG): Set to *textonly for "-z separate-code".
302 * ld.texinfo: Document "-z separate-code".
303 * lexsup.c (elf_shlib_list_options): Add linker help messsages
304 for "-z separate-code" and "-z noseparate-code".
305 * scripttempl/elf.sc (SEPARATE_TEXT): New
306 (TEXT_SEGMENT_ALIGN): Likewise.
307 Use ${TEXT_SEGMENT_ALIGN} to align and pad text segment to
308 ${MAXPAGESIZE}.
309
d664fd41
L
3102018-01-11 H.J. Lu <hongjiu.lu@intel.com>
311
312 PR ld/22649
313 * testsuite/ld-elf/pr22649-1.s: New file.
314 * testsuite/ld-elf/pr22649-2a.s: Likewise.
315 * testsuite/ld-elf/pr22649-2b.s: Likewise.
316 * testsuite/ld-elf/pr22649.msg: Likewise.
317 * testsuite/ld-elf/shared.exp: Run ld/22649 tests.
318
8b6f4cd3
L
3192018-01-11 H.J. Lu <hongjiu.lu@intel.com>
320
321 PR ld/22677
322 * scripttempl/elf.sc (PREINIT_ARRAY): New.
323 Don't add .preinit_array for ld -r.
324 * testsuite/ld-elf/pr22677.d: New file.
325 * testsuite/ld-elf/pr22677.s: Likewise.
326
65f14869
AB
3272018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
328
329 * ldexp.h (union etree_union): Remove defsym field.
330 * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
331 parameter.
332 (exp_assign): Remove passing of defsym parameter.
333 (exp_defsym): Likewise.
334 (exp_provide): Likewise.
335
eab62f2f
AB
3362018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
337
338 * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide
339 nodes are ignored in the tree walk, and move the location at which
340 we change provide nodes into provided nodes.
341 (exp_init_os): Add etree_provided.
342 * testsuite/ld-scripts/provide-6.d: New file.
343 * testsuite/ld-scripts/provide-6.t: New file.
344 * testsuite/ld-scripts/provide-7.d: New file.
345 * testsuite/ld-scripts/provide-7.t: New file.
346 * testsuite/ld-scripts/provide-8.d: New file.
347 * testsuite/ld-scripts/provide-8.t: New file.
348
8be965c5
AB
3492018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
350
351 * testsuite/ld-scripts/provide-3.d: Add xfail directive.
352 * testsuite/ld-scripts/provide-4.d: Use new map file name.
353 * testsuite/ld-scripts/provide-5.d: Use new map file name.
354 * testsuite/ld-scripts/provide-4-map.d: Renamed to...
355 * testsuite/ld-scripts/provide-4.map: ...this.
356 * testsuite/ld-scripts/provide-5-map.d: Renamed to...
357 * testsuite/ld-scripts/provide-5.map: ...this.
358 * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d
359 file, and run tests in a loop.
360
b3b9f8d3
AB
3612018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
362
363 * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
364 PROVIDE statements.
365 * testsuite/ld-scripts/provide-4.map: Update expected output.
366 * testsuite/ld-scripts/provide-5.map: Likewise.
367
6bd0a312
L
3682018-01-11 H.J. Lu <hongjiu.lu@intel.com>
369
370 PR ld/22696
371 * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
372
74ccf6db
JW
3732018-01-09 Jim Wilson <jimw@sifive.com>
374
375 * testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete
376 (#alltargets): Renamed from #target. Add shared.
377 * testsuite/lib/ld-lib.exp (run_dump_test): Document shared target.
378 Document alltargets option. Add support for alltargets option.
379 (istarget): Add support for shared target.
380
7615ca1d
JW
3812018-01-08 Jim Wilson <jimw@sifive.com>
382
383 * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
384 instead of .text.
385 * testsuite/ld-riscv-elf/c-lui.s: Add _start label.
386 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$
387 tests, add call to check_shared_lib_support.
388
be1dce26
JW
3892018-01-05 Jim Wilson <jimw@sifive.com>
390
35eeb78f
JW
391 * testsuite/ld-riscv-elf/disas-jalr.d: New.
392 * testsuite/ld-riscv-elf/disas-jalr.s: New.
393 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase.
394
be1dce26
JW
395 * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside
396 case on $target, and don't set for riscv*-elf targets.
397 (GENERATE_PIE_SCRIPT): Likewise.
398
219d1afa
AM
3992018-01-03 Alan Modra <amodra@gmail.com>
400
401 Update year range in copyright notice of all files.
402
1e563868 403For older changes see ChangeLog-2017
3499769a 404\f
1e563868 405Copyright (C) 2018 Free Software Foundation, Inc.
3499769a
AM
406
407Copying and distribution of this file, with or without modification,
408are permitted in any medium without royalty provided the copyright
409notice and this notice are preserved.
410
411Local Variables:
412mode: change-log
413left-margin: 8
414fill-column: 74
415version-control: never
416End:
This page took 0.15232 seconds and 4 git commands to generate.