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