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