PR22769, crash when running 32-bit objdump on corrupted file
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
f000c2b9
L
12018-01-31 H.J. Lu <hongjiu.lu@intel.com>
2
3 * testsuite/ld-elf/pr21964-5.c (my_var): Mark as used.
4
450b6317
MR
52018-01-31 Maciej W. Rozycki <macro@mips.com>
6
7 * testsuite/ld-elf/shared.exp: Fix a typo s/scrip/script/.
8
8988502d
MR
92018-01-31 Maciej W. Rozycki <macro@mips.com>
10
11 * testsuite/ld-elf/comm-data.exp: Pass `-call_shared' to links
12 involving a shared library for `mips*vr4100*-*-elf*',
13 `mips*vr4300*-*-elf*' and `mips*vr5000*-*-elf*' targets.
14 * testsuite/ld-elf/provide-hidden.exp: Likewise.
15 * testsuite/ld-elf/shared.exp: Likewise.
16 * testsuite/ld-gc/gc.exp: Likewise.
17 * testsuite/ld-mips-elf/comm-data.exp: Likewise.
18
f3a9baf1
MR
192018-01-31 Maciej W. Rozycki <macro@mips.com>
20
21 * testsuite/ld-elf/elf.exp: Move shared library tests over to...
22 * testsuite/ld-elf/shared.exp: ... here.
23
bf3077a6
MM
242018-01-31 Michael Matz <matz@suse.de>
25
26 * testsuite/ld-elf/pr21964-5.c: New test.
27 * testsuite/ld-elf/shared.exp: Run it.
28
823143c6
L
292018-01-31 H.J. Lu <hongjiu.lu@intel.com>
30
31 PR ld/21964
32 * testsuite/ld-elf/pr21964-4.c: New file.
33 * testsuite/ld-elf/shared.exp: Run pr21964-4 test on Linux.
34
040b4a9e
AM
352018-01-30 Alan Modra <amodra@gmail.com>
36
37 * testsuite/ld-gc/stop.d,
38 * testsuite/ld-gc/stop.s: New test.
39 * testsuite/ld-gc/gc.exp: Run it.
40
af667f22
MR
412018-01-30 Maciej W. Rozycki <macro@mips.com>
42
43 PR ld/22649
44 * testsuite/ld-elf/pr22649-2ab-mips.msg: New stderr output.
45 * testsuite/ld-elf/pr22649-2cd-mips.msg: New stderr output.
46 * testsuite/ld-elf/shared.exp: Use the new outputs with
47 `mips*-*-*' targets.
48
82252033
MR
492018-01-30 Maciej W. Rozycki <macro@mips.com>
50
51 * testsuite/ld-elf/comm-data1.sd: Alternatively accept
52 `PRC[0xff02]' in place of a regular section index.
53 * testsuite/ld-elf/pr21703-shared.sd: Likewise `PRC[0xff01]'.
54
36b8fda5
AM
552018-01-29 Alan Modra <amodra@gmail.com>
56
57 * testsuite/ld-elf/pr21964-3a.c: New file.
58 * testsuite/ld-elf/pr21964-3c.c: New file.
59 * testsuite/ld-elf/shared.exp: Run new __start/__stop testcase.
60
185cdb8c
EB
612018-01-29 Eric Botcazou <ebotcazou@adacore.com>
62
63 * testsuite/ld-elf/shared.exp (AFLAGS_PIC): Define on SPARC.
64 (pr22269-1): Pass AFLAGS_PIC to the assembler.
65
d85815e2
EB
662018-01-29 Eric Botcazou <ebotcazou@adacore.com>
67
68 * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.
69
86b24e15
MR
702018-01-29 Maciej W. Rozycki <macro@mips.com>
71
72 * testsuite/ld-mips-elf/comm-data.exp: Correct support for
73 targets using non-traditional MIPS emulation or having a limited
74 selection of ABIs available. Don't force big endianness, use
75 defaults.
76
98d72909
L
772018-01-29 H.J. Lu <hongjiu.lu@intel.com>
78
79 PR ld/22732
80 * testsuite/config/default.exp (STATIC_LDFLAGS): New. Set to
81 "-static" if target compiler supports it.
82 * testsuite/ld-bootstrap/bootstrap.exp: Skip static executable
83 tests if target compiler doesn't support it.
84 * testsuite/ld-ifunc/ifunc.exp: Likewise.
85 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Likewise.
86 (run_cc_link_tests): Likewise.
87
fef75122
L
882018-01-27 H.J. Lu <hongjiu.lu@intel.com>
89
90 PR ld/22751
91 * testsuite/config/default.exp (INT128_CFLAGS): New.
92 * testsuite/ld-plugin/lto.exp (INT128_CFLAGS): New.
93 Run ld/22751 tests.
94 * testsuite/ld-plugin/pr22751.c: New file.
95 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Add
96 ld trailing options.
97
d580dcc7
AM
982018-01-28 Alan Modra <amodra@gmail.com>
99
100 PR 22751
101 * ldlang.c (find_rescan_insertion): Look past bfds with claim_archive
102 set.
103
2ebd05b8
MR
1042018-01-26 Maciej W. Rozycki <macro@mips.com>
105
106 * emulparams/elf32mipswindiss.sh (EXTRA_EM_FILE): Set to
107 `mipself'.
108
bb363086
EB
1092018-01-25 Eric Botcazou <ebotcazou@adacore.com>
110
111 * testsuite/ld-sparc/sparc.exp (32-bit: Helper shared library):
112 Link with a version script.
113 (32-bit: TLS -fpie): New test.
114 (64-bit: Helper shared library): Link with a version script.
115 (64-bit: TLS -fpie): New test.
116 (64-bit: GOTDATA relocations): Pass -Av9 to the assembler.
117 * testsuite/ld-sparc/tlslib.ver: New file.
118 * testsuite/ld-sparc/tlspie32.dd: Likewise.
119 * testsuite/ld-sparc/tlspie32.s: Likewise.
120 * testsuite/ld-sparc/tlspie64.dd: Likewise.
121 * testsuite/ld-sparc/tlspie64.s: Likewise.
122 * testsuite/ld-sparc/tlssunbin32.dd: Adjust for versioned symbol.
123 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
124 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
125 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
126 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
127 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
128
1daf502a
RL
1292018-01-24 Renlin Li <renlin.li@arm.com>
130
131 * testsuite/ld-aarch64/aarch64-elf.exp: Run new testes.
132 * testsuite/ld-aarch64/emit-relocs-287.s: Fix test case.
133 * testsuite/ld-aarch64/emit-relocs-287.d: Fix expected output.
134 * testsuite/ld-aarch64/emit-relocs-287-overflow.s: New.
135 * testsuite/ld-aarch64/emit-relocs-287-overflow.d: New.
136 * testsuite/ld-aarch64/emit-relocs-288.d: New.
137 * testsuite/ld-aarch64/emit-relocs-288.s: New.
138 * testsuite/ld-aarch64/emit-relocs-289.d: New.
139 * testsuite/ld-aarch64/emit-relocs-289.s: New.
140 * testsuite/ld-aarch64/emit-relocs-289-overflow.s: New.
141 * testsuite/ld-aarch64/emit-relocs-289-overflow.d: New.
142 * testsuite/ld-aarch64/emit-relocs-290.d: New.
143 * testsuite/ld-aarch64/emit-relocs-290.s: New.
144 * testsuite/ld-aarch64/emit-relocs-291.d: New.
145 * testsuite/ld-aarch64/emit-relocs-291.s: New.
146 * testsuite/ld-aarch64/emit-relocs-291-overflow.s: New.
147 * testsuite/ld-aarch64/emit-relocs-291-overflow.d: New.
148 * testsuite/ld-aarch64/emit-relocs-292.d: New.
149 * testsuite/ld-aarch64/emit-relocs-292.s: New.
150 * testsuite/ld-aarch64/emit-relocs-293.d: New.
151 * testsuite/ld-aarch64/emit-relocs-293.s: New.
152
8a1b824a
L
1532018-01-20 H.J. Lu <hongjiu.lu@intel.com>
154
155 PR ld/22721
156 * testsuite/ld-plugin/lto.exp: Run PR ld/22721 tests.
157 * testsuite/ld-plugin/pr22721.t: New file.
158 * testsuite/ld-plugin/pr22721a.s: Likewise.
159 * testsuite/ld-plugin/pr22721b.c: Likewise.
160
1ebfa86a
L
1612018-01-18 H.J. Lu <hongjiu.lu@intel.com>
162
163 * testsuite/ld-elf/group1.d: Also xfail Solaris.
164
f7968f08
L
1652018-01-18 H.J. Lu <hongjiu.lu@intel.com>
166
167 * testsuite/ld-elf/linkinfo1a.d: Updated for slightly different
168 PLT/GOT order/layout for Solaris/x86 targets.
169 * testsuite/ld-elf/linkinfo1b.d: Likewise.
170
c5bdb022
L
1712018-01-18 H.J. Lu <hongjiu.lu@intel.com>
172
173 PR ld/22728
174 * emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
175 into ...
176 (elf_solaris2_before_allocation): This.
177 (LDEMUL_AFTER_ALLOCATION): Removed.
178
691d2e9a
AM
1792018-01-18 Alan Modra <amodra@gmail.com>
180
181 * emultempl/ppc32elf.em: Support optional --plt-align arg.
182 * emultempl/ppc64elf.em: Support negative --plt-align arg.
183
1be5d8d3
AM
1842018-01-17 Alan Modra <amodra@gmail.com>
185
186 * emultempl/ppc32elf.em (params): Init new field.
187 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
188 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
189 (PARSE_AND_LIST_LONGOPTS): Handle new options.
190 (PARSE_AND_LIST_ARGS_CASES): Likewise.
191 (PARSE_AND_LIST_OPTIONS): Likewise.
192 * emultempl/ppc64elf.em (params): Init new field.
193 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
194 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
195 (PARSE_AND_LIST_LONGOPTS): Handle --speculate-indirect-jumps.
196 (PARSE_AND_LIST_OPTIONS): Likewise.
197 (PARSE_AND_LIST_ARGS_CASES): Likewise.
198 * ld.texinfo (--no-plt-thread-safe): Correct itemx.
199 (--speculate-indirect-jumps): Document.
200 * testsuite/ld-powerpc/elfv2exe.d,
201 * testsuite/ld-powerpc/elfv2so.d,
202 * testsuite/ld-powerpc/relbrlt.d,
203 * testsuite/ld-powerpc/powerpc.exp: Disable plt alignment and
204 speculation barriers on various tests.
205
9e390558
AM
2062018-01-17 Alan Modra <amodra@gmail.com>
207
208 * emultempl/ppc32elf.em (params): Init new field.
209 (enum ppc32_opt): New enum to define OPTION_* values. Add
210 OPTION_PLT_ALIGN and OPTION_NO_PLT_ALIGN.
211 (PARSE_AND_LIST_LONGOPTS): Handle new options.
212 (PARSE_AND_LIST_ARGS_CASES): Likewise.
213 (PARSE_AND_LIST_OPTIONS): Likewise. Break up help output.
214 * emultempl/ppc64elf.em (ppc_add_stub_section): Init alignment
215 correctly for negative --plt-stub-align.
216 * testsuite/ld-powerpc/elfv2exe.d,
217 * testsuite/ld-powerpc/elfv2so.d,
218 * testsuite/ld-powerpc/relbrlt.d,
219 * testsuite/ld-powerpc/relbrlt.s,
220 * testsuite/ld-powerpc/tlsexe.d,
221 * testsuite/ld-powerpc/tlsexe.r,
222 * testsuite/ld-powerpc/tlsexe32.d,
223 * testsuite/ld-powerpc/tlsexe32.g,
224 * testsuite/ld-powerpc/tlsexe32.r,
225 * testsuite/ld-powerpc/tlsexetoc.d,
226 * testsuite/ld-powerpc/tlsexetoc.r,
227 * testsuite/ld-powerpc/tlsopt5_32.d,
228 * testsuite/ld-powerpc/tlsso.d,
229 * testsuite/ld-powerpc/tlstocso.d: Update for changed stub order.
230
f6efed01
NC
2312018-01-16 Nick Clifton <nickc@redhat.com>
232
233 * po/pt_BR.po: Updated Brazilian Portugese translation.
234
616dcb87
NC
2352018-01-15 Nick Clifton <nickc@redhat.com>
236
237 * po/uk.po: Updated Ukranian translation.
238
3957a496
NC
2392018-01-13 Nick Clifton <nickc@redhat.com>
240
241 * po/ld.pot: Regenerated.
242
769c7ea5
NC
2432018-01-13 Nick Clifton <nickc@redhat.com>
244
245 * configure: Regenerate.
246
9176ac5b
NC
2472018-01-13 Nick Clifton <nickc@redhat.com>
248
faf766e3 249 2.30 branch created.
9176ac5b
NC
250 * NEWS: Add marker for 2.30.
251
5ae5d3fd
AM
2522018-01-12 Alan Modra <amodra@gmail.com>
253
254 * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
255 initialization" for currently failing targets.
256
87e79a65
AM
2572018-01-12 Alan Modra <amodra@gmail.com>
258
259 PR ld/22649
260 * testsuite/ld-elf/pr22649.msg: Allow other messages.
261 * testsuite/ld-elf/shared.exp: Check that --gc-sections is
262 supported before running ld/22649 tests.
263
97a232d7
NC
2642018-01-12 Nick Clifton <nickc@redhat.com>
265
266 * emultempl/elf32.em (_handle_option): Add support for "-z undefs"
267 as the opposite of "-z defs".
268 * ld.texinfo: Document the new option. Update the description of
269 the -z defs option to make it clear that it does generate an error
270 if an undefined symbol reference is found in an object file whilst
271 creating a shared library.
272 * NEWS: Document this new feature.
273
33eff4ce
L
2742018-01-11 H.J. Lu <hongjiu.lu@intel.com>
275
276 * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
277 "-z separate-code".
278 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
279 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
280 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
281
cf9e7f1f
L
2822018-01-11 H.J. Lu <hongjiu.lu@intel.com>
283
284 PR ld/22393
285 * testsuite/ld-x86-64/pr22393-3a.c: New file.
286 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
287 * testsuite/ld-x86-64/pr22393-3b.c: Likewise.
288 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
289 * testsuite/ld-x86-64/x86-64.exp: Run tests for -z separate-code
290 -z max-page-size=0x1000.
291
d346bb27
L
2922018-01-11 H.J. Lu <hongjiu.lu@intel.com>
293
294 PR ld/22393
295 * testsuite/ld-elf/pr16322.d: Add -z noseparate-code.
296 * testsuite/ld-elf/pr22393-1.s: New file.
297 * testsuite/ld-elf/pr22393-1a.d: Likewise.
298 * testsuite/ld-elf/pr22393-1b.d: Likewise.
299 * testsuite/ld-elf/pr22393-1c.d: Likewise.
300 * testsuite/ld-elf/pr22393-1d.d: Likewise.
301 * testsuite/ld-elf/pr22393-1e.d: Likewise.
302 * testsuite/ld-elf/pr22393-1f.d: Likewise.
303 * testsuite/ld-elf/pr22393-2a.c: Likewise.
304 * testsuite/ld-elf/pr22393-2a.rd: Likewise.
305 * testsuite/ld-elf/pr22393-2b.c: Likewise.
306 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
307 * testsuite/ld-elf/shared.exp: Run tests for -z separate-code.
308
47acac12
L
3092018-01-11 H.J. Lu <hongjiu.lu@intel.com>
310
311 PR ld/22393
312 * NEWS: Mention "-z separate-code".
313 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Get
314 builtin linker scripts and return linker scripts from disk for
315 "-z separate-code".
316 (gld${EMULATION_NAME}_handle_option): Handle "-z separate-code"
317 and "-z noseparate-code".
318 * genscripts.sh: Generate linker scripts for "-z separate-code".
319 (LD_FLAG): Set to *textonly for "-z separate-code".
320 * ld.texinfo: Document "-z separate-code".
321 * lexsup.c (elf_shlib_list_options): Add linker help messsages
322 for "-z separate-code" and "-z noseparate-code".
323 * scripttempl/elf.sc (SEPARATE_TEXT): New
324 (TEXT_SEGMENT_ALIGN): Likewise.
325 Use ${TEXT_SEGMENT_ALIGN} to align and pad text segment to
326 ${MAXPAGESIZE}.
327
d664fd41
L
3282018-01-11 H.J. Lu <hongjiu.lu@intel.com>
329
330 PR ld/22649
331 * testsuite/ld-elf/pr22649-1.s: New file.
332 * testsuite/ld-elf/pr22649-2a.s: Likewise.
333 * testsuite/ld-elf/pr22649-2b.s: Likewise.
334 * testsuite/ld-elf/pr22649.msg: Likewise.
335 * testsuite/ld-elf/shared.exp: Run ld/22649 tests.
336
8b6f4cd3
L
3372018-01-11 H.J. Lu <hongjiu.lu@intel.com>
338
339 PR ld/22677
340 * scripttempl/elf.sc (PREINIT_ARRAY): New.
341 Don't add .preinit_array for ld -r.
342 * testsuite/ld-elf/pr22677.d: New file.
343 * testsuite/ld-elf/pr22677.s: Likewise.
344
65f14869
AB
3452018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
346
347 * ldexp.h (union etree_union): Remove defsym field.
348 * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
349 parameter.
350 (exp_assign): Remove passing of defsym parameter.
351 (exp_defsym): Likewise.
352 (exp_provide): Likewise.
353
eab62f2f
AB
3542018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
355
356 * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide
357 nodes are ignored in the tree walk, and move the location at which
358 we change provide nodes into provided nodes.
359 (exp_init_os): Add etree_provided.
360 * testsuite/ld-scripts/provide-6.d: New file.
361 * testsuite/ld-scripts/provide-6.t: New file.
362 * testsuite/ld-scripts/provide-7.d: New file.
363 * testsuite/ld-scripts/provide-7.t: New file.
364 * testsuite/ld-scripts/provide-8.d: New file.
365 * testsuite/ld-scripts/provide-8.t: New file.
366
8be965c5
AB
3672018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
368
369 * testsuite/ld-scripts/provide-3.d: Add xfail directive.
370 * testsuite/ld-scripts/provide-4.d: Use new map file name.
371 * testsuite/ld-scripts/provide-5.d: Use new map file name.
372 * testsuite/ld-scripts/provide-4-map.d: Renamed to...
373 * testsuite/ld-scripts/provide-4.map: ...this.
374 * testsuite/ld-scripts/provide-5-map.d: Renamed to...
375 * testsuite/ld-scripts/provide-5.map: ...this.
376 * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d
377 file, and run tests in a loop.
378
b3b9f8d3
AB
3792018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
380
381 * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
382 PROVIDE statements.
383 * testsuite/ld-scripts/provide-4.map: Update expected output.
384 * testsuite/ld-scripts/provide-5.map: Likewise.
385
6bd0a312
L
3862018-01-11 H.J. Lu <hongjiu.lu@intel.com>
387
388 PR ld/22696
389 * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
390
74ccf6db
JW
3912018-01-09 Jim Wilson <jimw@sifive.com>
392
393 * testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete
394 (#alltargets): Renamed from #target. Add shared.
395 * testsuite/lib/ld-lib.exp (run_dump_test): Document shared target.
396 Document alltargets option. Add support for alltargets option.
397 (istarget): Add support for shared target.
398
7615ca1d
JW
3992018-01-08 Jim Wilson <jimw@sifive.com>
400
401 * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
402 instead of .text.
403 * testsuite/ld-riscv-elf/c-lui.s: Add _start label.
404 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$
405 tests, add call to check_shared_lib_support.
406
be1dce26
JW
4072018-01-05 Jim Wilson <jimw@sifive.com>
408
35eeb78f
JW
409 * testsuite/ld-riscv-elf/disas-jalr.d: New.
410 * testsuite/ld-riscv-elf/disas-jalr.s: New.
411 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase.
412
be1dce26
JW
413 * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside
414 case on $target, and don't set for riscv*-elf targets.
415 (GENERATE_PIE_SCRIPT): Likewise.
416
219d1afa
AM
4172018-01-03 Alan Modra <amodra@gmail.com>
418
419 Update year range in copyright notice of all files.
420
1e563868 421For older changes see ChangeLog-2017
3499769a 422\f
1e563868 423Copyright (C) 2018 Free Software Foundation, Inc.
3499769a
AM
424
425Copying and distribution of this file, with or without modification,
426are permitted in any medium without royalty provided the copyright
427notice and this notice are preserved.
428
429Local Variables:
430mode: change-log
431left-margin: 8
432fill-column: 74
433version-control: never
434End:
This page took 0.244386 seconds and 4 git commands to generate.