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