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