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