Adjust test for PR ld/22269.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
185cdb8c
EB
12018-01-29 Eric Botcazou <ebotcazou@adacore.com>
2
3 * testsuite/ld-elf/shared.exp (AFLAGS_PIC): Define on SPARC.
4 (pr22269-1): Pass AFLAGS_PIC to the assembler.
5
d85815e2
EB
62018-01-29 Eric Botcazou <ebotcazou@adacore.com>
7
8 * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.
9
86b24e15
MR
102018-01-29 Maciej W. Rozycki <macro@mips.com>
11
12 * testsuite/ld-mips-elf/comm-data.exp: Correct support for
13 targets using non-traditional MIPS emulation or having a limited
14 selection of ABIs available. Don't force big endianness, use
15 defaults.
16
98d72909
L
172018-01-29 H.J. Lu <hongjiu.lu@intel.com>
18
19 PR ld/22732
20 * testsuite/config/default.exp (STATIC_LDFLAGS): New. Set to
21 "-static" if target compiler supports it.
22 * testsuite/ld-bootstrap/bootstrap.exp: Skip static executable
23 tests if target compiler doesn't support it.
24 * testsuite/ld-ifunc/ifunc.exp: Likewise.
25 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Likewise.
26 (run_cc_link_tests): Likewise.
27
fef75122
L
282018-01-27 H.J. Lu <hongjiu.lu@intel.com>
29
30 PR ld/22751
31 * testsuite/config/default.exp (INT128_CFLAGS): New.
32 * testsuite/ld-plugin/lto.exp (INT128_CFLAGS): New.
33 Run ld/22751 tests.
34 * testsuite/ld-plugin/pr22751.c: New file.
35 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Add
36 ld trailing options.
37
d580dcc7
AM
382018-01-28 Alan Modra <amodra@gmail.com>
39
40 PR 22751
41 * ldlang.c (find_rescan_insertion): Look past bfds with claim_archive
42 set.
43
2ebd05b8
MR
442018-01-26 Maciej W. Rozycki <macro@mips.com>
45
46 * emulparams/elf32mipswindiss.sh (EXTRA_EM_FILE): Set to
47 `mipself'.
48
bb363086
EB
492018-01-25 Eric Botcazou <ebotcazou@adacore.com>
50
51 * testsuite/ld-sparc/sparc.exp (32-bit: Helper shared library):
52 Link with a version script.
53 (32-bit: TLS -fpie): New test.
54 (64-bit: Helper shared library): Link with a version script.
55 (64-bit: TLS -fpie): New test.
56 (64-bit: GOTDATA relocations): Pass -Av9 to the assembler.
57 * testsuite/ld-sparc/tlslib.ver: New file.
58 * testsuite/ld-sparc/tlspie32.dd: Likewise.
59 * testsuite/ld-sparc/tlspie32.s: Likewise.
60 * testsuite/ld-sparc/tlspie64.dd: Likewise.
61 * testsuite/ld-sparc/tlspie64.s: Likewise.
62 * testsuite/ld-sparc/tlssunbin32.dd: Adjust for versioned symbol.
63 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
64 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
65 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
66 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
67 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
68
1daf502a
RL
692018-01-24 Renlin Li <renlin.li@arm.com>
70
71 * testsuite/ld-aarch64/aarch64-elf.exp: Run new testes.
72 * testsuite/ld-aarch64/emit-relocs-287.s: Fix test case.
73 * testsuite/ld-aarch64/emit-relocs-287.d: Fix expected output.
74 * testsuite/ld-aarch64/emit-relocs-287-overflow.s: New.
75 * testsuite/ld-aarch64/emit-relocs-287-overflow.d: New.
76 * testsuite/ld-aarch64/emit-relocs-288.d: New.
77 * testsuite/ld-aarch64/emit-relocs-288.s: New.
78 * testsuite/ld-aarch64/emit-relocs-289.d: New.
79 * testsuite/ld-aarch64/emit-relocs-289.s: New.
80 * testsuite/ld-aarch64/emit-relocs-289-overflow.s: New.
81 * testsuite/ld-aarch64/emit-relocs-289-overflow.d: New.
82 * testsuite/ld-aarch64/emit-relocs-290.d: New.
83 * testsuite/ld-aarch64/emit-relocs-290.s: New.
84 * testsuite/ld-aarch64/emit-relocs-291.d: New.
85 * testsuite/ld-aarch64/emit-relocs-291.s: New.
86 * testsuite/ld-aarch64/emit-relocs-291-overflow.s: New.
87 * testsuite/ld-aarch64/emit-relocs-291-overflow.d: New.
88 * testsuite/ld-aarch64/emit-relocs-292.d: New.
89 * testsuite/ld-aarch64/emit-relocs-292.s: New.
90 * testsuite/ld-aarch64/emit-relocs-293.d: New.
91 * testsuite/ld-aarch64/emit-relocs-293.s: New.
92
8a1b824a
L
932018-01-20 H.J. Lu <hongjiu.lu@intel.com>
94
95 PR ld/22721
96 * testsuite/ld-plugin/lto.exp: Run PR ld/22721 tests.
97 * testsuite/ld-plugin/pr22721.t: New file.
98 * testsuite/ld-plugin/pr22721a.s: Likewise.
99 * testsuite/ld-plugin/pr22721b.c: Likewise.
100
1ebfa86a
L
1012018-01-18 H.J. Lu <hongjiu.lu@intel.com>
102
103 * testsuite/ld-elf/group1.d: Also xfail Solaris.
104
f7968f08
L
1052018-01-18 H.J. Lu <hongjiu.lu@intel.com>
106
107 * testsuite/ld-elf/linkinfo1a.d: Updated for slightly different
108 PLT/GOT order/layout for Solaris/x86 targets.
109 * testsuite/ld-elf/linkinfo1b.d: Likewise.
110
c5bdb022
L
1112018-01-18 H.J. Lu <hongjiu.lu@intel.com>
112
113 PR ld/22728
114 * emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
115 into ...
116 (elf_solaris2_before_allocation): This.
117 (LDEMUL_AFTER_ALLOCATION): Removed.
118
691d2e9a
AM
1192018-01-18 Alan Modra <amodra@gmail.com>
120
121 * emultempl/ppc32elf.em: Support optional --plt-align arg.
122 * emultempl/ppc64elf.em: Support negative --plt-align arg.
123
1be5d8d3
AM
1242018-01-17 Alan Modra <amodra@gmail.com>
125
126 * emultempl/ppc32elf.em (params): Init new field.
127 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
128 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
129 (PARSE_AND_LIST_LONGOPTS): Handle new options.
130 (PARSE_AND_LIST_ARGS_CASES): Likewise.
131 (PARSE_AND_LIST_OPTIONS): Likewise.
132 * emultempl/ppc64elf.em (params): Init new field.
133 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
134 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
135 (PARSE_AND_LIST_LONGOPTS): Handle --speculate-indirect-jumps.
136 (PARSE_AND_LIST_OPTIONS): Likewise.
137 (PARSE_AND_LIST_ARGS_CASES): Likewise.
138 * ld.texinfo (--no-plt-thread-safe): Correct itemx.
139 (--speculate-indirect-jumps): Document.
140 * testsuite/ld-powerpc/elfv2exe.d,
141 * testsuite/ld-powerpc/elfv2so.d,
142 * testsuite/ld-powerpc/relbrlt.d,
143 * testsuite/ld-powerpc/powerpc.exp: Disable plt alignment and
144 speculation barriers on various tests.
145
9e390558
AM
1462018-01-17 Alan Modra <amodra@gmail.com>
147
148 * emultempl/ppc32elf.em (params): Init new field.
149 (enum ppc32_opt): New enum to define OPTION_* values. Add
150 OPTION_PLT_ALIGN and OPTION_NO_PLT_ALIGN.
151 (PARSE_AND_LIST_LONGOPTS): Handle new options.
152 (PARSE_AND_LIST_ARGS_CASES): Likewise.
153 (PARSE_AND_LIST_OPTIONS): Likewise. Break up help output.
154 * emultempl/ppc64elf.em (ppc_add_stub_section): Init alignment
155 correctly for negative --plt-stub-align.
156 * testsuite/ld-powerpc/elfv2exe.d,
157 * testsuite/ld-powerpc/elfv2so.d,
158 * testsuite/ld-powerpc/relbrlt.d,
159 * testsuite/ld-powerpc/relbrlt.s,
160 * testsuite/ld-powerpc/tlsexe.d,
161 * testsuite/ld-powerpc/tlsexe.r,
162 * testsuite/ld-powerpc/tlsexe32.d,
163 * testsuite/ld-powerpc/tlsexe32.g,
164 * testsuite/ld-powerpc/tlsexe32.r,
165 * testsuite/ld-powerpc/tlsexetoc.d,
166 * testsuite/ld-powerpc/tlsexetoc.r,
167 * testsuite/ld-powerpc/tlsopt5_32.d,
168 * testsuite/ld-powerpc/tlsso.d,
169 * testsuite/ld-powerpc/tlstocso.d: Update for changed stub order.
170
f6efed01
NC
1712018-01-16 Nick Clifton <nickc@redhat.com>
172
173 * po/pt_BR.po: Updated Brazilian Portugese translation.
174
616dcb87
NC
1752018-01-15 Nick Clifton <nickc@redhat.com>
176
177 * po/uk.po: Updated Ukranian translation.
178
3957a496
NC
1792018-01-13 Nick Clifton <nickc@redhat.com>
180
181 * po/ld.pot: Regenerated.
182
769c7ea5
NC
1832018-01-13 Nick Clifton <nickc@redhat.com>
184
185 * configure: Regenerate.
186
9176ac5b
NC
1872018-01-13 Nick Clifton <nickc@redhat.com>
188
faf766e3 189 2.30 branch created.
9176ac5b
NC
190 * NEWS: Add marker for 2.30.
191
5ae5d3fd
AM
1922018-01-12 Alan Modra <amodra@gmail.com>
193
194 * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
195 initialization" for currently failing targets.
196
87e79a65
AM
1972018-01-12 Alan Modra <amodra@gmail.com>
198
199 PR ld/22649
200 * testsuite/ld-elf/pr22649.msg: Allow other messages.
201 * testsuite/ld-elf/shared.exp: Check that --gc-sections is
202 supported before running ld/22649 tests.
203
97a232d7
NC
2042018-01-12 Nick Clifton <nickc@redhat.com>
205
206 * emultempl/elf32.em (_handle_option): Add support for "-z undefs"
207 as the opposite of "-z defs".
208 * ld.texinfo: Document the new option. Update the description of
209 the -z defs option to make it clear that it does generate an error
210 if an undefined symbol reference is found in an object file whilst
211 creating a shared library.
212 * NEWS: Document this new feature.
213
33eff4ce
L
2142018-01-11 H.J. Lu <hongjiu.lu@intel.com>
215
216 * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
217 "-z separate-code".
218 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
219 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
220 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
221
cf9e7f1f
L
2222018-01-11 H.J. Lu <hongjiu.lu@intel.com>
223
224 PR ld/22393
225 * testsuite/ld-x86-64/pr22393-3a.c: New file.
226 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
227 * testsuite/ld-x86-64/pr22393-3b.c: Likewise.
228 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
229 * testsuite/ld-x86-64/x86-64.exp: Run tests for -z separate-code
230 -z max-page-size=0x1000.
231
d346bb27
L
2322018-01-11 H.J. Lu <hongjiu.lu@intel.com>
233
234 PR ld/22393
235 * testsuite/ld-elf/pr16322.d: Add -z noseparate-code.
236 * testsuite/ld-elf/pr22393-1.s: New file.
237 * testsuite/ld-elf/pr22393-1a.d: Likewise.
238 * testsuite/ld-elf/pr22393-1b.d: Likewise.
239 * testsuite/ld-elf/pr22393-1c.d: Likewise.
240 * testsuite/ld-elf/pr22393-1d.d: Likewise.
241 * testsuite/ld-elf/pr22393-1e.d: Likewise.
242 * testsuite/ld-elf/pr22393-1f.d: Likewise.
243 * testsuite/ld-elf/pr22393-2a.c: Likewise.
244 * testsuite/ld-elf/pr22393-2a.rd: Likewise.
245 * testsuite/ld-elf/pr22393-2b.c: Likewise.
246 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
247 * testsuite/ld-elf/shared.exp: Run tests for -z separate-code.
248
47acac12
L
2492018-01-11 H.J. Lu <hongjiu.lu@intel.com>
250
251 PR ld/22393
252 * NEWS: Mention "-z separate-code".
253 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Get
254 builtin linker scripts and return linker scripts from disk for
255 "-z separate-code".
256 (gld${EMULATION_NAME}_handle_option): Handle "-z separate-code"
257 and "-z noseparate-code".
258 * genscripts.sh: Generate linker scripts for "-z separate-code".
259 (LD_FLAG): Set to *textonly for "-z separate-code".
260 * ld.texinfo: Document "-z separate-code".
261 * lexsup.c (elf_shlib_list_options): Add linker help messsages
262 for "-z separate-code" and "-z noseparate-code".
263 * scripttempl/elf.sc (SEPARATE_TEXT): New
264 (TEXT_SEGMENT_ALIGN): Likewise.
265 Use ${TEXT_SEGMENT_ALIGN} to align and pad text segment to
266 ${MAXPAGESIZE}.
267
d664fd41
L
2682018-01-11 H.J. Lu <hongjiu.lu@intel.com>
269
270 PR ld/22649
271 * testsuite/ld-elf/pr22649-1.s: New file.
272 * testsuite/ld-elf/pr22649-2a.s: Likewise.
273 * testsuite/ld-elf/pr22649-2b.s: Likewise.
274 * testsuite/ld-elf/pr22649.msg: Likewise.
275 * testsuite/ld-elf/shared.exp: Run ld/22649 tests.
276
8b6f4cd3
L
2772018-01-11 H.J. Lu <hongjiu.lu@intel.com>
278
279 PR ld/22677
280 * scripttempl/elf.sc (PREINIT_ARRAY): New.
281 Don't add .preinit_array for ld -r.
282 * testsuite/ld-elf/pr22677.d: New file.
283 * testsuite/ld-elf/pr22677.s: Likewise.
284
65f14869
AB
2852018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
286
287 * ldexp.h (union etree_union): Remove defsym field.
288 * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
289 parameter.
290 (exp_assign): Remove passing of defsym parameter.
291 (exp_defsym): Likewise.
292 (exp_provide): Likewise.
293
eab62f2f
AB
2942018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
295
296 * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide
297 nodes are ignored in the tree walk, and move the location at which
298 we change provide nodes into provided nodes.
299 (exp_init_os): Add etree_provided.
300 * testsuite/ld-scripts/provide-6.d: New file.
301 * testsuite/ld-scripts/provide-6.t: New file.
302 * testsuite/ld-scripts/provide-7.d: New file.
303 * testsuite/ld-scripts/provide-7.t: New file.
304 * testsuite/ld-scripts/provide-8.d: New file.
305 * testsuite/ld-scripts/provide-8.t: New file.
306
8be965c5
AB
3072018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
308
309 * testsuite/ld-scripts/provide-3.d: Add xfail directive.
310 * testsuite/ld-scripts/provide-4.d: Use new map file name.
311 * testsuite/ld-scripts/provide-5.d: Use new map file name.
312 * testsuite/ld-scripts/provide-4-map.d: Renamed to...
313 * testsuite/ld-scripts/provide-4.map: ...this.
314 * testsuite/ld-scripts/provide-5-map.d: Renamed to...
315 * testsuite/ld-scripts/provide-5.map: ...this.
316 * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d
317 file, and run tests in a loop.
318
b3b9f8d3
AB
3192018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
320
321 * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
322 PROVIDE statements.
323 * testsuite/ld-scripts/provide-4.map: Update expected output.
324 * testsuite/ld-scripts/provide-5.map: Likewise.
325
6bd0a312
L
3262018-01-11 H.J. Lu <hongjiu.lu@intel.com>
327
328 PR ld/22696
329 * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
330
74ccf6db
JW
3312018-01-09 Jim Wilson <jimw@sifive.com>
332
333 * testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete
334 (#alltargets): Renamed from #target. Add shared.
335 * testsuite/lib/ld-lib.exp (run_dump_test): Document shared target.
336 Document alltargets option. Add support for alltargets option.
337 (istarget): Add support for shared target.
338
7615ca1d
JW
3392018-01-08 Jim Wilson <jimw@sifive.com>
340
341 * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
342 instead of .text.
343 * testsuite/ld-riscv-elf/c-lui.s: Add _start label.
344 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$
345 tests, add call to check_shared_lib_support.
346
be1dce26
JW
3472018-01-05 Jim Wilson <jimw@sifive.com>
348
35eeb78f
JW
349 * testsuite/ld-riscv-elf/disas-jalr.d: New.
350 * testsuite/ld-riscv-elf/disas-jalr.s: New.
351 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase.
352
be1dce26
JW
353 * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside
354 case on $target, and don't set for riscv*-elf targets.
355 (GENERATE_PIE_SCRIPT): Likewise.
356
219d1afa
AM
3572018-01-03 Alan Modra <amodra@gmail.com>
358
359 Update year range in copyright notice of all files.
360
1e563868 361For older changes see ChangeLog-2017
3499769a 362\f
1e563868 363Copyright (C) 2018 Free Software Foundation, Inc.
3499769a
AM
364
365Copying and distribution of this file, with or without modification,
366are permitted in any medium without royalty provided the copyright
367notice and this notice are preserved.
368
369Local Variables:
370mode: change-log
371left-margin: 8
372fill-column: 74
373version-control: never
374End:
This page took 0.147052 seconds and 4 git commands to generate.