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