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