1 2018-01-30 Maciej W. Rozycki <macro@mips.com>
3 * testsuite/ld-elf/comm-data1.sd: Alternatively accept
4 `PRC[0xff02]' in place of a regular section index.
5 * testsuite/ld-elf/pr21703-shared.sd: Likewise `PRC[0xff01]'.
7 2018-01-29 Alan Modra <amodra@gmail.com>
9 * testsuite/ld-elf/pr21964-3a.c: New file.
10 * testsuite/ld-elf/pr21964-3c.c: New file.
11 * testsuite/ld-elf/shared.exp: Run new __start/__stop testcase.
13 2018-01-29 Eric Botcazou <ebotcazou@adacore.com>
15 * testsuite/ld-elf/shared.exp (AFLAGS_PIC): Define on SPARC.
16 (pr22269-1): Pass AFLAGS_PIC to the assembler.
18 2018-01-29 Eric Botcazou <ebotcazou@adacore.com>
20 * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.
22 2018-01-29 Maciej W. Rozycki <macro@mips.com>
24 * testsuite/ld-mips-elf/comm-data.exp: Correct support for
25 targets using non-traditional MIPS emulation or having a limited
26 selection of ABIs available. Don't force big endianness, use
29 2018-01-29 H.J. Lu <hongjiu.lu@intel.com>
32 * testsuite/config/default.exp (STATIC_LDFLAGS): New. Set to
33 "-static" if target compiler supports it.
34 * testsuite/ld-bootstrap/bootstrap.exp: Skip static executable
35 tests if target compiler doesn't support it.
36 * testsuite/ld-ifunc/ifunc.exp: Likewise.
37 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Likewise.
38 (run_cc_link_tests): Likewise.
40 2018-01-27 H.J. Lu <hongjiu.lu@intel.com>
43 * testsuite/config/default.exp (INT128_CFLAGS): New.
44 * testsuite/ld-plugin/lto.exp (INT128_CFLAGS): New.
46 * testsuite/ld-plugin/pr22751.c: New file.
47 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Add
50 2018-01-28 Alan Modra <amodra@gmail.com>
53 * ldlang.c (find_rescan_insertion): Look past bfds with claim_archive
56 2018-01-26 Maciej W. Rozycki <macro@mips.com>
58 * emulparams/elf32mipswindiss.sh (EXTRA_EM_FILE): Set to
61 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
63 * testsuite/ld-sparc/sparc.exp (32-bit: Helper shared library):
64 Link with a version script.
65 (32-bit: TLS -fpie): New test.
66 (64-bit: Helper shared library): Link with a version script.
67 (64-bit: TLS -fpie): New test.
68 (64-bit: GOTDATA relocations): Pass -Av9 to the assembler.
69 * testsuite/ld-sparc/tlslib.ver: New file.
70 * testsuite/ld-sparc/tlspie32.dd: Likewise.
71 * testsuite/ld-sparc/tlspie32.s: Likewise.
72 * testsuite/ld-sparc/tlspie64.dd: Likewise.
73 * testsuite/ld-sparc/tlspie64.s: Likewise.
74 * testsuite/ld-sparc/tlssunbin32.dd: Adjust for versioned symbol.
75 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
76 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
77 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
78 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
79 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
81 2018-01-24 Renlin Li <renlin.li@arm.com>
83 * testsuite/ld-aarch64/aarch64-elf.exp: Run new testes.
84 * testsuite/ld-aarch64/emit-relocs-287.s: Fix test case.
85 * testsuite/ld-aarch64/emit-relocs-287.d: Fix expected output.
86 * testsuite/ld-aarch64/emit-relocs-287-overflow.s: New.
87 * testsuite/ld-aarch64/emit-relocs-287-overflow.d: New.
88 * testsuite/ld-aarch64/emit-relocs-288.d: New.
89 * testsuite/ld-aarch64/emit-relocs-288.s: New.
90 * testsuite/ld-aarch64/emit-relocs-289.d: New.
91 * testsuite/ld-aarch64/emit-relocs-289.s: New.
92 * testsuite/ld-aarch64/emit-relocs-289-overflow.s: New.
93 * testsuite/ld-aarch64/emit-relocs-289-overflow.d: New.
94 * testsuite/ld-aarch64/emit-relocs-290.d: New.
95 * testsuite/ld-aarch64/emit-relocs-290.s: New.
96 * testsuite/ld-aarch64/emit-relocs-291.d: New.
97 * testsuite/ld-aarch64/emit-relocs-291.s: New.
98 * testsuite/ld-aarch64/emit-relocs-291-overflow.s: New.
99 * testsuite/ld-aarch64/emit-relocs-291-overflow.d: New.
100 * testsuite/ld-aarch64/emit-relocs-292.d: New.
101 * testsuite/ld-aarch64/emit-relocs-292.s: New.
102 * testsuite/ld-aarch64/emit-relocs-293.d: New.
103 * testsuite/ld-aarch64/emit-relocs-293.s: New.
105 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
108 * testsuite/ld-plugin/lto.exp: Run PR ld/22721 tests.
109 * testsuite/ld-plugin/pr22721.t: New file.
110 * testsuite/ld-plugin/pr22721a.s: Likewise.
111 * testsuite/ld-plugin/pr22721b.c: Likewise.
113 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
115 * testsuite/ld-elf/group1.d: Also xfail Solaris.
117 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
119 * testsuite/ld-elf/linkinfo1a.d: Updated for slightly different
120 PLT/GOT order/layout for Solaris/x86 targets.
121 * testsuite/ld-elf/linkinfo1b.d: Likewise.
123 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
126 * emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
128 (elf_solaris2_before_allocation): This.
129 (LDEMUL_AFTER_ALLOCATION): Removed.
131 2018-01-18 Alan Modra <amodra@gmail.com>
133 * emultempl/ppc32elf.em: Support optional --plt-align arg.
134 * emultempl/ppc64elf.em: Support negative --plt-align arg.
136 2018-01-17 Alan Modra <amodra@gmail.com>
138 * emultempl/ppc32elf.em (params): Init new field.
139 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
140 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
141 (PARSE_AND_LIST_LONGOPTS): Handle new options.
142 (PARSE_AND_LIST_ARGS_CASES): Likewise.
143 (PARSE_AND_LIST_OPTIONS): Likewise.
144 * emultempl/ppc64elf.em (params): Init new field.
145 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
146 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
147 (PARSE_AND_LIST_LONGOPTS): Handle --speculate-indirect-jumps.
148 (PARSE_AND_LIST_OPTIONS): Likewise.
149 (PARSE_AND_LIST_ARGS_CASES): Likewise.
150 * ld.texinfo (--no-plt-thread-safe): Correct itemx.
151 (--speculate-indirect-jumps): Document.
152 * testsuite/ld-powerpc/elfv2exe.d,
153 * testsuite/ld-powerpc/elfv2so.d,
154 * testsuite/ld-powerpc/relbrlt.d,
155 * testsuite/ld-powerpc/powerpc.exp: Disable plt alignment and
156 speculation barriers on various tests.
158 2018-01-17 Alan Modra <amodra@gmail.com>
160 * emultempl/ppc32elf.em (params): Init new field.
161 (enum ppc32_opt): New enum to define OPTION_* values. Add
162 OPTION_PLT_ALIGN and OPTION_NO_PLT_ALIGN.
163 (PARSE_AND_LIST_LONGOPTS): Handle new options.
164 (PARSE_AND_LIST_ARGS_CASES): Likewise.
165 (PARSE_AND_LIST_OPTIONS): Likewise. Break up help output.
166 * emultempl/ppc64elf.em (ppc_add_stub_section): Init alignment
167 correctly for negative --plt-stub-align.
168 * testsuite/ld-powerpc/elfv2exe.d,
169 * testsuite/ld-powerpc/elfv2so.d,
170 * testsuite/ld-powerpc/relbrlt.d,
171 * testsuite/ld-powerpc/relbrlt.s,
172 * testsuite/ld-powerpc/tlsexe.d,
173 * testsuite/ld-powerpc/tlsexe.r,
174 * testsuite/ld-powerpc/tlsexe32.d,
175 * testsuite/ld-powerpc/tlsexe32.g,
176 * testsuite/ld-powerpc/tlsexe32.r,
177 * testsuite/ld-powerpc/tlsexetoc.d,
178 * testsuite/ld-powerpc/tlsexetoc.r,
179 * testsuite/ld-powerpc/tlsopt5_32.d,
180 * testsuite/ld-powerpc/tlsso.d,
181 * testsuite/ld-powerpc/tlstocso.d: Update for changed stub order.
183 2018-01-16 Nick Clifton <nickc@redhat.com>
185 * po/pt_BR.po: Updated Brazilian Portugese translation.
187 2018-01-15 Nick Clifton <nickc@redhat.com>
189 * po/uk.po: Updated Ukranian translation.
191 2018-01-13 Nick Clifton <nickc@redhat.com>
193 * po/ld.pot: Regenerated.
195 2018-01-13 Nick Clifton <nickc@redhat.com>
197 * configure: Regenerate.
199 2018-01-13 Nick Clifton <nickc@redhat.com>
202 * NEWS: Add marker for 2.30.
204 2018-01-12 Alan Modra <amodra@gmail.com>
206 * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
207 initialization" for currently failing targets.
209 2018-01-12 Alan Modra <amodra@gmail.com>
212 * testsuite/ld-elf/pr22649.msg: Allow other messages.
213 * testsuite/ld-elf/shared.exp: Check that --gc-sections is
214 supported before running ld/22649 tests.
216 2018-01-12 Nick Clifton <nickc@redhat.com>
218 * emultempl/elf32.em (_handle_option): Add support for "-z undefs"
219 as the opposite of "-z defs".
220 * ld.texinfo: Document the new option. Update the description of
221 the -z defs option to make it clear that it does generate an error
222 if an undefined symbol reference is found in an object file whilst
223 creating a shared library.
224 * NEWS: Document this new feature.
226 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
228 * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
230 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
231 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
232 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
234 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
237 * testsuite/ld-x86-64/pr22393-3a.c: New file.
238 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
239 * testsuite/ld-x86-64/pr22393-3b.c: Likewise.
240 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
241 * testsuite/ld-x86-64/x86-64.exp: Run tests for -z separate-code
242 -z max-page-size=0x1000.
244 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
247 * testsuite/ld-elf/pr16322.d: Add -z noseparate-code.
248 * testsuite/ld-elf/pr22393-1.s: New file.
249 * testsuite/ld-elf/pr22393-1a.d: Likewise.
250 * testsuite/ld-elf/pr22393-1b.d: Likewise.
251 * testsuite/ld-elf/pr22393-1c.d: Likewise.
252 * testsuite/ld-elf/pr22393-1d.d: Likewise.
253 * testsuite/ld-elf/pr22393-1e.d: Likewise.
254 * testsuite/ld-elf/pr22393-1f.d: Likewise.
255 * testsuite/ld-elf/pr22393-2a.c: Likewise.
256 * testsuite/ld-elf/pr22393-2a.rd: Likewise.
257 * testsuite/ld-elf/pr22393-2b.c: Likewise.
258 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
259 * testsuite/ld-elf/shared.exp: Run tests for -z separate-code.
261 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
264 * NEWS: Mention "-z separate-code".
265 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Get
266 builtin linker scripts and return linker scripts from disk for
268 (gld${EMULATION_NAME}_handle_option): Handle "-z separate-code"
269 and "-z noseparate-code".
270 * genscripts.sh: Generate linker scripts for "-z separate-code".
271 (LD_FLAG): Set to *textonly for "-z separate-code".
272 * ld.texinfo: Document "-z separate-code".
273 * lexsup.c (elf_shlib_list_options): Add linker help messsages
274 for "-z separate-code" and "-z noseparate-code".
275 * scripttempl/elf.sc (SEPARATE_TEXT): New
276 (TEXT_SEGMENT_ALIGN): Likewise.
277 Use ${TEXT_SEGMENT_ALIGN} to align and pad text segment to
280 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
283 * testsuite/ld-elf/pr22649-1.s: New file.
284 * testsuite/ld-elf/pr22649-2a.s: Likewise.
285 * testsuite/ld-elf/pr22649-2b.s: Likewise.
286 * testsuite/ld-elf/pr22649.msg: Likewise.
287 * testsuite/ld-elf/shared.exp: Run ld/22649 tests.
289 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
292 * scripttempl/elf.sc (PREINIT_ARRAY): New.
293 Don't add .preinit_array for ld -r.
294 * testsuite/ld-elf/pr22677.d: New file.
295 * testsuite/ld-elf/pr22677.s: Likewise.
297 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
299 * ldexp.h (union etree_union): Remove defsym field.
300 * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
302 (exp_assign): Remove passing of defsym parameter.
303 (exp_defsym): Likewise.
304 (exp_provide): Likewise.
306 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
308 * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide
309 nodes are ignored in the tree walk, and move the location at which
310 we change provide nodes into provided nodes.
311 (exp_init_os): Add etree_provided.
312 * testsuite/ld-scripts/provide-6.d: New file.
313 * testsuite/ld-scripts/provide-6.t: New file.
314 * testsuite/ld-scripts/provide-7.d: New file.
315 * testsuite/ld-scripts/provide-7.t: New file.
316 * testsuite/ld-scripts/provide-8.d: New file.
317 * testsuite/ld-scripts/provide-8.t: New file.
319 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
321 * testsuite/ld-scripts/provide-3.d: Add xfail directive.
322 * testsuite/ld-scripts/provide-4.d: Use new map file name.
323 * testsuite/ld-scripts/provide-5.d: Use new map file name.
324 * testsuite/ld-scripts/provide-4-map.d: Renamed to...
325 * testsuite/ld-scripts/provide-4.map: ...this.
326 * testsuite/ld-scripts/provide-5-map.d: Renamed to...
327 * testsuite/ld-scripts/provide-5.map: ...this.
328 * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d
329 file, and run tests in a loop.
331 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
333 * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
335 * testsuite/ld-scripts/provide-4.map: Update expected output.
336 * testsuite/ld-scripts/provide-5.map: Likewise.
338 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
341 * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
343 2018-01-09 Jim Wilson <jimw@sifive.com>
345 * testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete
346 (#alltargets): Renamed from #target. Add shared.
347 * testsuite/lib/ld-lib.exp (run_dump_test): Document shared target.
348 Document alltargets option. Add support for alltargets option.
349 (istarget): Add support for shared target.
351 2018-01-08 Jim Wilson <jimw@sifive.com>
353 * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
355 * testsuite/ld-riscv-elf/c-lui.s: Add _start label.
356 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$
357 tests, add call to check_shared_lib_support.
359 2018-01-05 Jim Wilson <jimw@sifive.com>
361 * testsuite/ld-riscv-elf/disas-jalr.d: New.
362 * testsuite/ld-riscv-elf/disas-jalr.s: New.
363 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase.
365 * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside
366 case on $target, and don't set for riscv*-elf targets.
367 (GENERATE_PIE_SCRIPT): Likewise.
369 2018-01-03 Alan Modra <amodra@gmail.com>
371 Update year range in copyright notice of all files.
373 For older changes see ChangeLog-2017
375 Copyright (C) 2018 Free Software Foundation, Inc.
377 Copying and distribution of this file, with or without modification,
378 are permitted in any medium without royalty provided the copyright
379 notice and this notice are preserved.
385 version-control: never