1 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
3 * ldexp.c (fold_name, exp_fold_tree_1): Avoid pointer arithmetic
6 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
8 * testsuite/ld-elf/pr21964-5.c (my_var): Mark as used.
10 2018-01-31 Maciej W. Rozycki <macro@mips.com>
12 * testsuite/ld-elf/shared.exp: Fix a typo s/scrip/script/.
14 2018-01-31 Maciej W. Rozycki <macro@mips.com>
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.
24 2018-01-31 Maciej W. Rozycki <macro@mips.com>
26 * testsuite/ld-elf/elf.exp: Move shared library tests over to...
27 * testsuite/ld-elf/shared.exp: ... here.
29 2018-01-31 Michael Matz <matz@suse.de>
31 * testsuite/ld-elf/pr21964-5.c: New test.
32 * testsuite/ld-elf/shared.exp: Run it.
34 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
37 * testsuite/ld-elf/pr21964-4.c: New file.
38 * testsuite/ld-elf/shared.exp: Run pr21964-4 test on Linux.
40 2018-01-30 Alan Modra <amodra@gmail.com>
42 * testsuite/ld-gc/stop.d,
43 * testsuite/ld-gc/stop.s: New test.
44 * testsuite/ld-gc/gc.exp: Run it.
46 2018-01-30 Maciej W. Rozycki <macro@mips.com>
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
54 2018-01-30 Maciej W. Rozycki <macro@mips.com>
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]'.
60 2018-01-29 Alan Modra <amodra@gmail.com>
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.
66 2018-01-29 Eric Botcazou <ebotcazou@adacore.com>
68 * testsuite/ld-elf/shared.exp (AFLAGS_PIC): Define on SPARC.
69 (pr22269-1): Pass AFLAGS_PIC to the assembler.
71 2018-01-29 Eric Botcazou <ebotcazou@adacore.com>
73 * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.
75 2018-01-29 Maciej W. Rozycki <macro@mips.com>
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
82 2018-01-29 H.J. Lu <hongjiu.lu@intel.com>
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.
93 2018-01-27 H.J. Lu <hongjiu.lu@intel.com>
96 * testsuite/config/default.exp (INT128_CFLAGS): New.
97 * testsuite/ld-plugin/lto.exp (INT128_CFLAGS): New.
99 * testsuite/ld-plugin/pr22751.c: New file.
100 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Add
103 2018-01-28 Alan Modra <amodra@gmail.com>
106 * ldlang.c (find_rescan_insertion): Look past bfds with claim_archive
109 2018-01-26 Maciej W. Rozycki <macro@mips.com>
111 * emulparams/elf32mipswindiss.sh (EXTRA_EM_FILE): Set to
114 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
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.
134 2018-01-24 Renlin Li <renlin.li@arm.com>
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.
158 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
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.
166 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
168 * testsuite/ld-elf/group1.d: Also xfail Solaris.
170 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
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.
176 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
179 * emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
181 (elf_solaris2_before_allocation): This.
182 (LDEMUL_AFTER_ALLOCATION): Removed.
184 2018-01-18 Alan Modra <amodra@gmail.com>
186 * emultempl/ppc32elf.em: Support optional --plt-align arg.
187 * emultempl/ppc64elf.em: Support negative --plt-align arg.
189 2018-01-17 Alan Modra <amodra@gmail.com>
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.
211 2018-01-17 Alan Modra <amodra@gmail.com>
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.
236 2018-01-16 Nick Clifton <nickc@redhat.com>
238 * po/pt_BR.po: Updated Brazilian Portugese translation.
240 2018-01-15 Nick Clifton <nickc@redhat.com>
242 * po/uk.po: Updated Ukranian translation.
244 2018-01-13 Nick Clifton <nickc@redhat.com>
246 * po/ld.pot: Regenerated.
248 2018-01-13 Nick Clifton <nickc@redhat.com>
250 * configure: Regenerate.
252 2018-01-13 Nick Clifton <nickc@redhat.com>
255 * NEWS: Add marker for 2.30.
257 2018-01-12 Alan Modra <amodra@gmail.com>
259 * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
260 initialization" for currently failing targets.
262 2018-01-12 Alan Modra <amodra@gmail.com>
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.
269 2018-01-12 Nick Clifton <nickc@redhat.com>
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.
279 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
281 * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
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.
287 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
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.
297 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
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.
314 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
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
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
333 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
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.
342 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
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.
350 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
352 * ldexp.h (union etree_union): Remove defsym field.
353 * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
355 (exp_assign): Remove passing of defsym parameter.
356 (exp_defsym): Likewise.
357 (exp_provide): Likewise.
359 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
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.
372 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
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.
384 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
386 * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
388 * testsuite/ld-scripts/provide-4.map: Update expected output.
389 * testsuite/ld-scripts/provide-5.map: Likewise.
391 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
394 * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
396 2018-01-09 Jim Wilson <jimw@sifive.com>
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.
404 2018-01-08 Jim Wilson <jimw@sifive.com>
406 * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
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.
412 2018-01-05 Jim Wilson <jimw@sifive.com>
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.
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.
422 2018-01-03 Alan Modra <amodra@gmail.com>
424 Update year range in copyright notice of all files.
426 For older changes see ChangeLog-2017
428 Copyright (C) 2018 Free Software Foundation, Inc.
430 Copying and distribution of this file, with or without modification,
431 are permitted in any medium without royalty provided the copyright
432 notice and this notice are preserved.
438 version-control: never