1 2018-01-27 H.J. Lu <hongjiu.lu@intel.com>
4 * testsuite/config/default.exp (INT128_CFLAGS): New.
5 * testsuite/ld-plugin/lto.exp (INT128_CFLAGS): New.
7 * testsuite/ld-plugin/pr22751.c: New file.
8 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Add
11 2018-01-28 Alan Modra <amodra@gmail.com>
14 * ldlang.c (find_rescan_insertion): Look past bfds with claim_archive
17 2018-01-26 Maciej W. Rozycki <macro@mips.com>
19 * emulparams/elf32mipswindiss.sh (EXTRA_EM_FILE): Set to
22 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
24 * testsuite/ld-sparc/sparc.exp (32-bit: Helper shared library):
25 Link with a version script.
26 (32-bit: TLS -fpie): New test.
27 (64-bit: Helper shared library): Link with a version script.
28 (64-bit: TLS -fpie): New test.
29 (64-bit: GOTDATA relocations): Pass -Av9 to the assembler.
30 * testsuite/ld-sparc/tlslib.ver: New file.
31 * testsuite/ld-sparc/tlspie32.dd: Likewise.
32 * testsuite/ld-sparc/tlspie32.s: Likewise.
33 * testsuite/ld-sparc/tlspie64.dd: Likewise.
34 * testsuite/ld-sparc/tlspie64.s: Likewise.
35 * testsuite/ld-sparc/tlssunbin32.dd: Adjust for versioned symbol.
36 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
37 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
38 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
39 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
40 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
42 2018-01-24 Renlin Li <renlin.li@arm.com>
44 * testsuite/ld-aarch64/aarch64-elf.exp: Run new testes.
45 * testsuite/ld-aarch64/emit-relocs-287.s: Fix test case.
46 * testsuite/ld-aarch64/emit-relocs-287.d: Fix expected output.
47 * testsuite/ld-aarch64/emit-relocs-287-overflow.s: New.
48 * testsuite/ld-aarch64/emit-relocs-287-overflow.d: New.
49 * testsuite/ld-aarch64/emit-relocs-288.d: New.
50 * testsuite/ld-aarch64/emit-relocs-288.s: New.
51 * testsuite/ld-aarch64/emit-relocs-289.d: New.
52 * testsuite/ld-aarch64/emit-relocs-289.s: New.
53 * testsuite/ld-aarch64/emit-relocs-289-overflow.s: New.
54 * testsuite/ld-aarch64/emit-relocs-289-overflow.d: New.
55 * testsuite/ld-aarch64/emit-relocs-290.d: New.
56 * testsuite/ld-aarch64/emit-relocs-290.s: New.
57 * testsuite/ld-aarch64/emit-relocs-291.d: New.
58 * testsuite/ld-aarch64/emit-relocs-291.s: New.
59 * testsuite/ld-aarch64/emit-relocs-291-overflow.s: New.
60 * testsuite/ld-aarch64/emit-relocs-291-overflow.d: New.
61 * testsuite/ld-aarch64/emit-relocs-292.d: New.
62 * testsuite/ld-aarch64/emit-relocs-292.s: New.
63 * testsuite/ld-aarch64/emit-relocs-293.d: New.
64 * testsuite/ld-aarch64/emit-relocs-293.s: New.
66 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
69 * testsuite/ld-plugin/lto.exp: Run PR ld/22721 tests.
70 * testsuite/ld-plugin/pr22721.t: New file.
71 * testsuite/ld-plugin/pr22721a.s: Likewise.
72 * testsuite/ld-plugin/pr22721b.c: Likewise.
74 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
76 * testsuite/ld-elf/group1.d: Also xfail Solaris.
78 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
80 * testsuite/ld-elf/linkinfo1a.d: Updated for slightly different
81 PLT/GOT order/layout for Solaris/x86 targets.
82 * testsuite/ld-elf/linkinfo1b.d: Likewise.
84 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
87 * emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
89 (elf_solaris2_before_allocation): This.
90 (LDEMUL_AFTER_ALLOCATION): Removed.
92 2018-01-18 Alan Modra <amodra@gmail.com>
94 * emultempl/ppc32elf.em: Support optional --plt-align arg.
95 * emultempl/ppc64elf.em: Support negative --plt-align arg.
97 2018-01-17 Alan Modra <amodra@gmail.com>
99 * emultempl/ppc32elf.em (params): Init new field.
100 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
101 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
102 (PARSE_AND_LIST_LONGOPTS): Handle new options.
103 (PARSE_AND_LIST_ARGS_CASES): Likewise.
104 (PARSE_AND_LIST_OPTIONS): Likewise.
105 * emultempl/ppc64elf.em (params): Init new field.
106 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
107 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
108 (PARSE_AND_LIST_LONGOPTS): Handle --speculate-indirect-jumps.
109 (PARSE_AND_LIST_OPTIONS): Likewise.
110 (PARSE_AND_LIST_ARGS_CASES): Likewise.
111 * ld.texinfo (--no-plt-thread-safe): Correct itemx.
112 (--speculate-indirect-jumps): Document.
113 * testsuite/ld-powerpc/elfv2exe.d,
114 * testsuite/ld-powerpc/elfv2so.d,
115 * testsuite/ld-powerpc/relbrlt.d,
116 * testsuite/ld-powerpc/powerpc.exp: Disable plt alignment and
117 speculation barriers on various tests.
119 2018-01-17 Alan Modra <amodra@gmail.com>
121 * emultempl/ppc32elf.em (params): Init new field.
122 (enum ppc32_opt): New enum to define OPTION_* values. Add
123 OPTION_PLT_ALIGN and OPTION_NO_PLT_ALIGN.
124 (PARSE_AND_LIST_LONGOPTS): Handle new options.
125 (PARSE_AND_LIST_ARGS_CASES): Likewise.
126 (PARSE_AND_LIST_OPTIONS): Likewise. Break up help output.
127 * emultempl/ppc64elf.em (ppc_add_stub_section): Init alignment
128 correctly for negative --plt-stub-align.
129 * testsuite/ld-powerpc/elfv2exe.d,
130 * testsuite/ld-powerpc/elfv2so.d,
131 * testsuite/ld-powerpc/relbrlt.d,
132 * testsuite/ld-powerpc/relbrlt.s,
133 * testsuite/ld-powerpc/tlsexe.d,
134 * testsuite/ld-powerpc/tlsexe.r,
135 * testsuite/ld-powerpc/tlsexe32.d,
136 * testsuite/ld-powerpc/tlsexe32.g,
137 * testsuite/ld-powerpc/tlsexe32.r,
138 * testsuite/ld-powerpc/tlsexetoc.d,
139 * testsuite/ld-powerpc/tlsexetoc.r,
140 * testsuite/ld-powerpc/tlsopt5_32.d,
141 * testsuite/ld-powerpc/tlsso.d,
142 * testsuite/ld-powerpc/tlstocso.d: Update for changed stub order.
144 2018-01-16 Nick Clifton <nickc@redhat.com>
146 * po/pt_BR.po: Updated Brazilian Portugese translation.
148 2018-01-15 Nick Clifton <nickc@redhat.com>
150 * po/uk.po: Updated Ukranian translation.
152 2018-01-13 Nick Clifton <nickc@redhat.com>
154 * po/ld.pot: Regenerated.
156 2018-01-13 Nick Clifton <nickc@redhat.com>
158 * configure: Regenerate.
160 2018-01-13 Nick Clifton <nickc@redhat.com>
163 * NEWS: Add marker for 2.30.
165 2018-01-12 Alan Modra <amodra@gmail.com>
167 * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
168 initialization" for currently failing targets.
170 2018-01-12 Alan Modra <amodra@gmail.com>
173 * testsuite/ld-elf/pr22649.msg: Allow other messages.
174 * testsuite/ld-elf/shared.exp: Check that --gc-sections is
175 supported before running ld/22649 tests.
177 2018-01-12 Nick Clifton <nickc@redhat.com>
179 * emultempl/elf32.em (_handle_option): Add support for "-z undefs"
180 as the opposite of "-z defs".
181 * ld.texinfo: Document the new option. Update the description of
182 the -z defs option to make it clear that it does generate an error
183 if an undefined symbol reference is found in an object file whilst
184 creating a shared library.
185 * NEWS: Document this new feature.
187 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
189 * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
191 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
192 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
193 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
195 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
198 * testsuite/ld-x86-64/pr22393-3a.c: New file.
199 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
200 * testsuite/ld-x86-64/pr22393-3b.c: Likewise.
201 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
202 * testsuite/ld-x86-64/x86-64.exp: Run tests for -z separate-code
203 -z max-page-size=0x1000.
205 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
208 * testsuite/ld-elf/pr16322.d: Add -z noseparate-code.
209 * testsuite/ld-elf/pr22393-1.s: New file.
210 * testsuite/ld-elf/pr22393-1a.d: Likewise.
211 * testsuite/ld-elf/pr22393-1b.d: Likewise.
212 * testsuite/ld-elf/pr22393-1c.d: Likewise.
213 * testsuite/ld-elf/pr22393-1d.d: Likewise.
214 * testsuite/ld-elf/pr22393-1e.d: Likewise.
215 * testsuite/ld-elf/pr22393-1f.d: Likewise.
216 * testsuite/ld-elf/pr22393-2a.c: Likewise.
217 * testsuite/ld-elf/pr22393-2a.rd: Likewise.
218 * testsuite/ld-elf/pr22393-2b.c: Likewise.
219 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
220 * testsuite/ld-elf/shared.exp: Run tests for -z separate-code.
222 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
225 * NEWS: Mention "-z separate-code".
226 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Get
227 builtin linker scripts and return linker scripts from disk for
229 (gld${EMULATION_NAME}_handle_option): Handle "-z separate-code"
230 and "-z noseparate-code".
231 * genscripts.sh: Generate linker scripts for "-z separate-code".
232 (LD_FLAG): Set to *textonly for "-z separate-code".
233 * ld.texinfo: Document "-z separate-code".
234 * lexsup.c (elf_shlib_list_options): Add linker help messsages
235 for "-z separate-code" and "-z noseparate-code".
236 * scripttempl/elf.sc (SEPARATE_TEXT): New
237 (TEXT_SEGMENT_ALIGN): Likewise.
238 Use ${TEXT_SEGMENT_ALIGN} to align and pad text segment to
241 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
244 * testsuite/ld-elf/pr22649-1.s: New file.
245 * testsuite/ld-elf/pr22649-2a.s: Likewise.
246 * testsuite/ld-elf/pr22649-2b.s: Likewise.
247 * testsuite/ld-elf/pr22649.msg: Likewise.
248 * testsuite/ld-elf/shared.exp: Run ld/22649 tests.
250 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
253 * scripttempl/elf.sc (PREINIT_ARRAY): New.
254 Don't add .preinit_array for ld -r.
255 * testsuite/ld-elf/pr22677.d: New file.
256 * testsuite/ld-elf/pr22677.s: Likewise.
258 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
260 * ldexp.h (union etree_union): Remove defsym field.
261 * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
263 (exp_assign): Remove passing of defsym parameter.
264 (exp_defsym): Likewise.
265 (exp_provide): Likewise.
267 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
269 * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide
270 nodes are ignored in the tree walk, and move the location at which
271 we change provide nodes into provided nodes.
272 (exp_init_os): Add etree_provided.
273 * testsuite/ld-scripts/provide-6.d: New file.
274 * testsuite/ld-scripts/provide-6.t: New file.
275 * testsuite/ld-scripts/provide-7.d: New file.
276 * testsuite/ld-scripts/provide-7.t: New file.
277 * testsuite/ld-scripts/provide-8.d: New file.
278 * testsuite/ld-scripts/provide-8.t: New file.
280 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
282 * testsuite/ld-scripts/provide-3.d: Add xfail directive.
283 * testsuite/ld-scripts/provide-4.d: Use new map file name.
284 * testsuite/ld-scripts/provide-5.d: Use new map file name.
285 * testsuite/ld-scripts/provide-4-map.d: Renamed to...
286 * testsuite/ld-scripts/provide-4.map: ...this.
287 * testsuite/ld-scripts/provide-5-map.d: Renamed to...
288 * testsuite/ld-scripts/provide-5.map: ...this.
289 * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d
290 file, and run tests in a loop.
292 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
294 * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
296 * testsuite/ld-scripts/provide-4.map: Update expected output.
297 * testsuite/ld-scripts/provide-5.map: Likewise.
299 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
302 * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
304 2018-01-09 Jim Wilson <jimw@sifive.com>
306 * testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete
307 (#alltargets): Renamed from #target. Add shared.
308 * testsuite/lib/ld-lib.exp (run_dump_test): Document shared target.
309 Document alltargets option. Add support for alltargets option.
310 (istarget): Add support for shared target.
312 2018-01-08 Jim Wilson <jimw@sifive.com>
314 * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
316 * testsuite/ld-riscv-elf/c-lui.s: Add _start label.
317 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$
318 tests, add call to check_shared_lib_support.
320 2018-01-05 Jim Wilson <jimw@sifive.com>
322 * testsuite/ld-riscv-elf/disas-jalr.d: New.
323 * testsuite/ld-riscv-elf/disas-jalr.s: New.
324 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase.
326 * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside
327 case on $target, and don't set for riscv*-elf targets.
328 (GENERATE_PIE_SCRIPT): Likewise.
330 2018-01-03 Alan Modra <amodra@gmail.com>
332 Update year range in copyright notice of all files.
334 For older changes see ChangeLog-2017
336 Copyright (C) 2018 Free Software Foundation, Inc.
338 Copying and distribution of this file, with or without modification,
339 are permitted in any medium without royalty provided the copyright
340 notice and this notice are preserved.
346 version-control: never