Add a testcase for PR ld/22751
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2018-01-27 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/22751
4 * testsuite/config/default.exp (INT128_CFLAGS): New.
5 * testsuite/ld-plugin/lto.exp (INT128_CFLAGS): New.
6 Run ld/22751 tests.
7 * testsuite/ld-plugin/pr22751.c: New file.
8 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Add
9 ld trailing options.
10
11 2018-01-28 Alan Modra <amodra@gmail.com>
12
13 PR 22751
14 * ldlang.c (find_rescan_insertion): Look past bfds with claim_archive
15 set.
16
17 2018-01-26 Maciej W. Rozycki <macro@mips.com>
18
19 * emulparams/elf32mipswindiss.sh (EXTRA_EM_FILE): Set to
20 `mipself'.
21
22 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
23
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.
41
42 2018-01-24 Renlin Li <renlin.li@arm.com>
43
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.
65
66 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
67
68 PR ld/22721
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.
73
74 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
75
76 * testsuite/ld-elf/group1.d: Also xfail Solaris.
77
78 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
79
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.
83
84 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
85
86 PR ld/22728
87 * emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
88 into ...
89 (elf_solaris2_before_allocation): This.
90 (LDEMUL_AFTER_ALLOCATION): Removed.
91
92 2018-01-18 Alan Modra <amodra@gmail.com>
93
94 * emultempl/ppc32elf.em: Support optional --plt-align arg.
95 * emultempl/ppc64elf.em: Support negative --plt-align arg.
96
97 2018-01-17 Alan Modra <amodra@gmail.com>
98
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.
118
119 2018-01-17 Alan Modra <amodra@gmail.com>
120
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.
143
144 2018-01-16 Nick Clifton <nickc@redhat.com>
145
146 * po/pt_BR.po: Updated Brazilian Portugese translation.
147
148 2018-01-15 Nick Clifton <nickc@redhat.com>
149
150 * po/uk.po: Updated Ukranian translation.
151
152 2018-01-13 Nick Clifton <nickc@redhat.com>
153
154 * po/ld.pot: Regenerated.
155
156 2018-01-13 Nick Clifton <nickc@redhat.com>
157
158 * configure: Regenerate.
159
160 2018-01-13 Nick Clifton <nickc@redhat.com>
161
162 2.30 branch created.
163 * NEWS: Add marker for 2.30.
164
165 2018-01-12 Alan Modra <amodra@gmail.com>
166
167 * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
168 initialization" for currently failing targets.
169
170 2018-01-12 Alan Modra <amodra@gmail.com>
171
172 PR ld/22649
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.
176
177 2018-01-12 Nick Clifton <nickc@redhat.com>
178
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.
186
187 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
188
189 * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
190 "-z separate-code".
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.
194
195 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
196
197 PR ld/22393
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.
204
205 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
206
207 PR ld/22393
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.
221
222 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
223
224 PR ld/22393
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
228 "-z separate-code".
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
239 ${MAXPAGESIZE}.
240
241 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
242
243 PR ld/22649
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.
249
250 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
251
252 PR ld/22677
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.
257
258 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
259
260 * ldexp.h (union etree_union): Remove defsym field.
261 * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
262 parameter.
263 (exp_assign): Remove passing of defsym parameter.
264 (exp_defsym): Likewise.
265 (exp_provide): Likewise.
266
267 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
268
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.
279
280 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
281
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.
291
292 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
293
294 * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
295 PROVIDE statements.
296 * testsuite/ld-scripts/provide-4.map: Update expected output.
297 * testsuite/ld-scripts/provide-5.map: Likewise.
298
299 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
300
301 PR ld/22696
302 * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
303
304 2018-01-09 Jim Wilson <jimw@sifive.com>
305
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.
311
312 2018-01-08 Jim Wilson <jimw@sifive.com>
313
314 * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
315 instead of .text.
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.
319
320 2018-01-05 Jim Wilson <jimw@sifive.com>
321
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.
325
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.
329
330 2018-01-03 Alan Modra <amodra@gmail.com>
331
332 Update year range in copyright notice of all files.
333
334 For older changes see ChangeLog-2017
335 \f
336 Copyright (C) 2018 Free Software Foundation, Inc.
337
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.
341
342 Local Variables:
343 mode: change-log
344 left-margin: 8
345 fill-column: 74
346 version-control: never
347 End:
This page took 0.037401 seconds and 5 git commands to generate.