Set reloc_count to 0 for reloc sections
[deliverable/binutils-gdb.git] / ld / testsuite / ChangeLog
1 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/13947
4 * ld-x86-64/x86-64.exp: Run pr13947.
5 * ld-x86-64/pr13947.d: New file.
6 * ld-x86-64/pr13947.s: Likewise.
7
8 2012-04-13 Roland McGrath <mcgrathr@google.com>
9
10 * ld-arm/arm-elf.exp (armelftests_common): Move cases using
11 mixed-lib.so to ...
12 (armelftests_nonacl): ... here.
13
14 2012-04-12 Roland McGrath <mcgrathr@google.com>
15
16 * ld-arm/arm-elf.exp (armelftests): Split out into ...
17 (armelftests_common, armelftests_nonacl): ... these two.
18 (armeabitests): Split out into ...
19 (armeabitests_common, armeabitests_nonacl): ... these two.
20 Omit _nonacl sets for arm*-*-nacl* targets.
21
22 * ld-arm/farcall-mix.d: Don't match exact addresses, only symbolic ones.
23 * ld-arm/farcall-mix2.d: Likewise.
24 * ld-arm/farcall-group.d: Likewise.
25
26 * ld-arm/tls-gdesc-got.d: Match variant file formats too.
27 Accept some variation in exact addresses.
28
29 * ld-arm/thumb2-b-interwork.d: Match variant file formats too.
30 Fix regexps not to care about exact addresses where not relevant.
31
32 * ld-arm/thumb2-bl-undefweak.d: Match any hex strings, not any
33 strings of particular exact lengths.
34 * ld-arm/thumb2-bl-undefweak1.d: Likewise.
35
36 * ld-arm/arm-app.r: Match variant file formats too.
37 * ld-arm/arm-app-abs32.r: Likewise.
38 * ld-arm/arm-lib.d: Likewise.
39 * ld-arm/arm-lib.r: Likewise.
40 * ld-arm/arm-static-app.r: Likewise.
41 * ld-arm/armv4-bx.d: Likewise.
42 * ld-arm/data-only-map.d: Likewise.
43 * ld-arm/group-relocs.d: Likewise.
44 * ld-arm/jump19.d: Likewise.
45 * ld-arm/reloc-boundaries.d: Likewise.
46 * ld-arm/thumb1-bl.d: Likewise.
47 * ld-arm/thumb2-bl.d: Likewise.
48 * ld-arm/tls-app.d: Likewise.
49 * ld-arm/tls-app.r: Likewise.
50 * ld-arm/tls-gdierelax.d: Likewise.
51 * ld-arm/tls-gdierelax2.d: Likewise.
52 * ld-arm/tls-gdlerelax.d: Likewise.
53 * ld-arm/tls-lib.d: Likewise.
54 * ld-arm/tls-lib.r: Likewise.
55 * ld-arm/tls-mixed.r: Likewise.
56 * ld-arm/vfp11-fix-none.d: Likewise.
57 * ld-arm/vfp11-fix-scalar.d: Likewise.
58 * ld-arm/vfp11-fix-vector.d: Likewise.
59 * ld-arm/arm-static-app.d: Likewise.
60 Fix regexps not to care about exact number of leading spaces.
61 * ld-arm/arm-app-abs32.d: Likewise.
62 * ld-arm/fix-arm1176-off.d: Likewise.
63 * ld-arm/fix-arm1176-on.d: Likewise.
64
65 * ld-arm/arm-elf.exp: Treat nacl targets like eabi targets.
66
67 2012-04-09 Roland McGrath <mcgrathr@google.com>
68
69 * ld-elf/eh1.d: Add explicit --64 to as options, and explicit
70 -melf_x86_64 and -Ttext to ld options, so we don't assume every
71 x86_64-*-* target uses --64 (vs --x32) by default or has the
72 same address space layout.
73 * ld-elf/eh2.d: Likewise.
74 * ld-elf/eh3.d: Likewise.
75 * ld-elf/eh4.d: Likewise.
76 * ld-elf/elf.exp: For target *-*-nacl*, use options_regsub(ld) to
77 map -melf_x86_64 to -melf_x86_64_nacl.
78
79 2012-04-07 David S. Miller <davem@davemloft.net>
80
81 * ld-sparc/tlssunbin32.rd: Fix regexp.
82 * ld-sparc/tlssunbin64.rd: Likewise.
83
84 2012-04-03 Roland McGrath <mcgrathr@google.com>
85
86 * ld-x86-64/ilp32-4-nacl.d: New file.
87 * ld-x86-64/x86-64.exp: Run it.
88
89 * ld-discard/discard.exp: Accept nacl targets too.
90 * ld-elf/binutils.exp: Likewise.
91 * ld-elf/comm-data.exp: Likewise.
92 * ld-elf/elf.exp: Likewise.
93 * ld-elf/tls_common.exp: Likewise.
94 * ld-elfvers/vers.exp: Likewise.
95 * ld-elfvsb/elfvsb.exp: Likewise.
96 * ld-elfweak/elfweak.exp: Likewise.
97 * ld-gc/gc.exp: Likewise.
98 * ld-ifunc/binutils.exp: Likewise.
99 * ld-ifunc/ifunc.exp: Likewise.
100 * ld-linkonce/linkonce.exp:Likewise.
101 * ld-pie/pie.exp: Likewise.
102 * ld-shared/shared.exp: Likewise.
103 * ld-undefined/weak-undef.exp: Likewise.
104 * ld-unique/unique.exp: Likewise.
105 * ld-x86-64/dwarfreloc.exp: Likewise.
106 * ld-x86-64/line.exp: Likewise.
107
108 * lib/ld-lib.exp (slurp_options): Support global array
109 options_regsub to apply substitutions to the contents
110 of options lines read from the file.
111 * ld-i386/emit-relocs.d: Renamed to ...
112 * ld-i386/emit-relocs.rd: ... this.
113 * ld-i386/i386.exp: Accept nacl targets too.
114 For them, use options_regsub to replace elf_i386 with
115 elf_i386_nacl in run_dump_test cases; apply the same
116 substitution in $i386tests; replace foo.rd expectations
117 files with foo-nacl.rd in $i386tests.
118 (i386tests): Change emit-relocs.d to emit-relocs.rd here.
119 * ld-i386/emit-relocs-nacl.rd: New file.
120 * ld-i386/plt-nacl.pd: New file.
121 * ld-i386/plt-pic-nacl.pd: New file.
122 * ld-i386/tlsbin-nacl.rd: New file.
123 * ld-i386/tlsbindesc-nacl.rd: New file.
124 * ld-i386/tlsdesc-nacl.rd: New file.
125 * ld-i386/tlsgdesc-nacl.rd: New file.
126 * ld-i386/tlsnopic-nacl.rd: New file.
127 * ld-i386/tlspic-nacl.rd: New file.
128 * ld-x86-64/x86-64.exp: Accept nacl targets too.
129 For them, use options_regsub to replace elf_x86_64 with
130 elf_x86_64_nacl in run_dump_test cases; apply the same
131 substitution in $x86_64tests; replace foo.rd expectations
132 files with foo-nacl.rd in $x86_64tests.
133 Add explicit -melf_x86_64 to ld options in tests that need it,
134 in case the default emulation is x32 (as it is for x86_64-nacl).
135 * ld/testsuite/ld-x86-64/plt-nacl.pd: New file.
136 * ld/testsuite/ld-x86-64/split-by-file-nacl.rd: New file.
137 * ld/testsuite/ld-x86-64/tlsbin-nacl.rd: New file.
138 * ld/testsuite/ld-x86-64/tlsbindesc-nacl.rd: New file.
139 * ld/testsuite/ld-x86-64/tlsdesc-nacl.pd: New file.
140 * ld/testsuite/ld-x86-64/tlsdesc-nacl.rd: New file.
141 * ld/testsuite/ld-x86-64/tlsgdesc-nacl.rd: New file.
142 * ld/testsuite/ld-x86-64/tlspic-nacl.rd: New file.
143
144 * ld-i386/hidden2.d: Loosen regexps to match any file format variant,
145 and not to depend on exact addresses, displacements, etc. where
146 they are irrelevant.
147 * ld-i386/pcrel16.d: Likewise.
148 * ld-i386/pcrel16abs.d: Likewise.
149 * ld-i386/pr12718.d: Likewise.
150 * ld-i386/pr12921.d: Likewise.
151 * ld-i386/reloc.d: Likewise.
152 * ld-i386/tlsbin.dd: Likewise.
153 * ld-i386/tlsbin.sd: Likewise.
154 * ld-i386/tlsbin.td: Likewise.
155 * ld-i386/tlsbindesc.dd: Likewise.
156 * ld-i386/tlsbindesc.sd: Likewise.
157 * ld-i386/tlsbindesc.td: Likewise.
158 * ld-i386/tlsdesc.dd: Likewise.
159 * ld-i386/tlsdesc.sd: Likewise.
160 * ld-i386/tlsdesc.td: Likewise.
161 * ld-i386/tlsg.sd: Likewise.
162 * ld-i386/tlsgdesc.dd: Likewise.
163 * ld-i386/tlsindntpoff.dd: Likewise.
164 * ld-i386/tlsnopic.dd: Likewise.
165 * ld-i386/tlsnopic.sd: Likewise.
166 * ld-i386/tlspic.dd: Likewise.
167 * ld-i386/tlspic.sd: Likewise.
168 * ld-i386/tlspic.td: Likewise.
169 * ld-i386/tlspie2.d: Likewise.
170 * ld-x86-64/hidden2.d: Likewise.
171 * ld-x86-64/pcrel16.d: Likewise.
172 * ld-x86-64/pr12718.d: Likewise.
173 * ld-x86-64/pr12921.d: Likewise.
174 * ld-x86-64/protected3.d: Likewise.
175 * ld-x86-64/tlsbin.dd: Likewise.
176 * ld-x86-64/tlsbin.sd: Likewise.
177 * ld-x86-64/tlsbin.td: Likewise.
178 * ld-x86-64/tlsbindesc.dd: Likewise.
179 * ld-x86-64/tlsbindesc.sd: Likewise.
180 * ld-x86-64/tlsbindesc.td: Likewise.
181 * ld-x86-64/tlsdesc.dd: Likewise.
182 * ld-x86-64/tlsdesc.sd: Likewise.
183 * ld-x86-64/tlsdesc.td: Likewise.
184 * ld-x86-64/tlsg.sd: Likewise.
185 * ld-x86-64/tlsgd5.dd: Likewise.
186 * ld-x86-64/tlsgd6.dd: Likewise.
187 * ld-x86-64/tlsgdesc.dd: Likewise.
188 * ld-x86-64/tlspic.dd: Likewise.
189 * ld-x86-64/tlspic.sd: Likewise.
190 * ld-x86-64/tlspic.td: Likewise.
191
192 * ld-x86-64/ilp32-8.d: Match any file format variant.
193 Use a -Ttext and adjust expected results, to handle variant layouts.
194 * ld-x86-64/ilp32-9.d: Likewise.
195
196 * ld-i386/alloc.t: Remove superfluous OUTPUT_FORMAT statement.
197 * ld-i386/pr12627.t: Likewise.
198
199 * ld-x86-64/abs-l1om.d: Add target: constraint.
200 * ld-x86-64/protected2-l1om.d: Likewise.
201 * ld-x86-64/protected3-l1om.d: Likewise.
202 * ld-x86-64/ilp32-4.d: Likewise.
203
204 * ld-x86-64/plt.s: New file.
205 * ld-x86-64/pltlib.s: New file.
206 * ld-x86-64/plt.pd: New file.
207 * ld-x86-64/x86-64.exp (x86_64tests): Add them.
208
209 * ld-i386/plt.s: New file.
210 * ld-i386/pltlib.s: New file.
211 * ld-i386/plt.pd: New file.
212 * ld-i386/plt-pic.s: New file.
213 * ld-i386/plt-pic.pd: New file.
214 * ld-i386/i386.exp (i386tests): Add them.
215
216 2012-03-25 Alan Modra <amodra@gmail.com>
217
218 * ld-powerpc/vxworks-relax.rd: Remove check on reloc section
219 file offset and reloc symbol indices.
220
221 2012-03-21 Hans-Peter Nilsson <hp@axis.com>
222
223 PR ld/13813
224 * ld-mips-elf/comm-data.exp (mips_comm_data_test): For N32 and N64
225 tests, also specify assembler option -march=mips3.
226
227 2012-03-20 H.J. Lu <hongjiu.lu@intel.com>
228
229 PR ld/13880
230 * ld-i386/i386.exp: Run protected4 and protected5.
231 * ld-x86-64/x86-64.exp: Likewise.
232
233 * ld-i386/protected4.d: New.
234 * ld-i386/protected4.s: Likewise.
235 * ld-i386/protected5.d: Likewise.
236 * ld-i386/protected5.s: Likewise.
237 * ld-x86-64/protected4.d: Likewise.
238 * ld-x86-64/protected4.s: Likewise.
239 * ld-x86-64/protected5.d: Likewise.
240 * ld-x86-64/protected5.s: Likewise.
241
242 2012-03-19 Andreas Schwab <schwab@linux-m68k.org>
243
244 * ld-m68k/m68k.exp ("TLS indirect symbol use"): Pass
245 --copy-dt-needed-entries.
246
247 2012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
248
249 * ld-arm/arm-elf.exp: Add new testcases.
250 * ld-arm/attr-merge-2.attr: Update ouput.
251 * ld-arm/attr-merge-2a.s: Remove Tag_DIV_use test.
252 * ld-arm/attr-merge-2b.s: Likewise.
253 * ld-arm/attr-merge-3.attr: Updated expected output.
254 * ld-arm/attr-merge-4.attr: Likewise.
255 * ld-arm/attr-merge-5.attr: Likewise.
256 * ld-arm/attr-merge-6.attr: Likewise.
257 * ld-arm/attr-merge-7.attr: Likewise.
258 * ld-arm/attr-merge-arch-1.attr: Likewise.
259 * ld-arm/attr-merge-arch-2.attr: Likewise.
260 * ld-arm/attr-merge-unknown-2.d: Likewise.
261 * ld-arm/attr-merge-unknown-2r.d: Likewise.
262 * ld-arm/attr-merge-unknown-3.d: Likewise.
263 * ld-arm/attr-merge-vfp-1.d: Likewise.
264 * ld-arm/attr-merge-vfp-1r.d: Likewise.
265 * ld-arm/attr-merge-vfp-2.d: Likewise.
266 * ld-arm/attr-merge-vfp-2r.d: Likewise.
267 * ld-arm/attr-merge-vfp-3.d: Likewise.
268 * ld-arm/attr-merge-vfp-3r.d: Likewise.
269 * ld-arm/attr-merge-vfp-4.d: Likewise.
270 * ld-arm/attr-merge-vfp-4r.d: Likewise.
271 * ld-arm/attr-merge-vfp-5.d: Likewise.
272 * ld-arm/attr-merge-vfp-5r.d: Likewise.
273 * ld-arm/attr-merge-vfp-6.d: Likewise.
274 * ld-arm/attr-merge-vfp-6r.d: Likewise.
275 * ld-arm/attr-merge-wchar-00-nowarn.d: Likewise.
276 * ld-arm/attr-merge-wchar-00.d: Likewise.
277 * ld-arm/attr-merge-wchar-02-nowarn.d: Likewise.
278 * ld-arm/attr-merge-wchar-02.d: Likewise.
279 * ld-arm/attr-merge-wchar-04-nowarn.d: Likewise.
280 * ld-arm/attr-merge-wchar-04.d: Likewise.
281 * ld-arm/attr-merge-wchar-20-nowarn.d: Likewise.
282 * ld-arm/attr-merge-wchar-20.d: Likewise.
283 * ld-arm/attr-merge-wchar-22-nowarn.d: Likewise.
284 * ld-arm/attr-merge-wchar-22.d: Likewise.
285 * ld-arm/attr-merge-wchar-24-nowarn.d: Likewise.
286 * ld-arm/attr-merge-wchar-40-nowarn.d: Likewise.
287 * ld-arm/attr-merge-wchar-40.d: Likewise.
288 * ld-arm/attr-merge-wchar-42-nowarn.d: Likewise.
289 * ld-arm/attr-merge-wchar-44-nowarn.d: Likewise.
290 * ld-arm/attr-merge-wchar-44.d: Likewise.
291 * ld-arm/attr-merge.attr: Likewise.
292 * ld-arm/attr-merge-div-0.s: New testcase.
293 * ld-arm/attr-merge-div-00.d: Likewise.
294 * ld-arm/attr-merge-div-01-m3.d: Likewise.
295 * ld-arm/attr-merge-div-01.d: Likewise.
296 * ld-arm/attr-merge-div-02.d: Likewise.
297 * ld-arm/attr-merge-div-1.s: Likewise.
298 * ld-arm/attr-merge-div-10-m3.d: Likewise.
299 * ld-arm/attr-merge-div-10.d: Likewise.
300 * ld-arm/attr-merge-div-11.d: Likewise.
301 * ld-arm/attr-merge-div-12.d: Likewise.
302 * ld-arm/attr-merge-div-120.d: Likewise.
303 * ld-arm/attr-merge-div-2.s: Likewise.
304 * ld-arm/attr-merge-div-20.d: Likewise.
305 * ld-arm/attr-merge-div-21.d: Likewise.
306 * ld-arm/attr-merge-div-22.d: Likewise.
307
308 2012-03-16 Alan Modra <amodra@gmail.com>
309
310 * ld-gc/pr13683.d: Accept powerpc64 function descriptor syms.
311
312 2012-03-15 Alan Modra <amodra@gmail.com>
313
314 * config/default.exp: Update copyright date.
315 * ld-elf/shared.exp: Pass --no-as-needed to various tests linking
316 shared libs.
317 * ld-elfvers/vers.exp: Likewise.
318
319 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
320
321 PR ld/13839
322 * ld-elf/pr13839.d: New.
323 * ld-elf/pr13839.s: Likewise.
324 * ld-elf/pr13839.t: Likewise.
325
326 2012-03-09 H.J. Lu <hongjiu.lu@intel.com>
327
328 PR ld/13817
329 * ld-i386/pr13302.d: Updated.
330 * ld-x86-64/pr13082-5b.d: Likewise.
331 * ld-x86-64/pr13082-6a.d: Likewise.
332 * ld-x86-64/pr13082-6b.d: Likewise.
333
334 2012-03-06 Alan Modra <amodra@gmail.com>
335
336 PR ld/13683
337 * ld-gc/pr13683.d: Allow non-zero top address digit.
338
339 2012-03-05 Hans-Peter Nilsson <hp@axis.com>
340
341 PR ld/13803
342 * ld-arm/fix-arm1176-off.d, ld-arm/fix-arm1176-on.d: Regexpify
343 address of func_to_branch_to.
344
345 2012-03-01 Hans-Peter Nilsson <hp@axis.com>
346
347 PR ld/13789
348 * ld-elf/zerosize1.d: Allow xyzzy to be either OBJECT or NOTYPE.
349
350 2012-02-25 Walter Lee <walt@tilera.com>
351
352 * ld-tilegx/reloc-be.d: New.
353 * ld-tilegx/reloc-le.d: New.
354 * ld-tilegx/reloc.d: Delete.
355 * ld-tilegx/tilegx.exp: Test big and little endian.
356
357 2012-02-22 Nick Clifton <nickc@redhat.com>
358
359 PR ld/13683
360 * ld-gc/pr13683.c: New test source file.
361 * ld-gc/pr13683.d: New test control and output file.
362 * ld-gc/gc.exp: Run the pr13683 test.
363
364 * ld-cris/tls-gc-68: Update expected symbol table dump.
365 * ld-cris/tls-gc-69: Likewise.
366 * ld-cris/tls-gc-70: Likewise.
367 * ld-cris/tls-gc-71: Likewise.
368 * ld-cris/tls-gc-75: Likewise.
369 * ld-cris/tls-gc-76.d: Likewise.
370 * ld-cris/tls-gc-79.d: Likewise.
371
372 2012-02-20 Thomas Schwinge <thomas@schwinge.name>
373
374 * ld-elf/comm-data.exp: Run for *-*-gnu*.
375
376 2012-02-14 Alan Modra <amodra@gmail.com>
377
378 * ld-elf/linkoncerdiff.d: Don't run for hppa64-hpux.
379 * ld-elf/pr11304a.s: Always have whitespace before directives.
380 * ld-elf/pr11304b.s: Likewise.
381 * ld-selective/selective.exp: Test m68hc1* variant of m6811, m6812.
382 * lib/ld-lib.exp: Likewise, and vice versa.
383
384 2012-02-13 Richard Henderson <rth@redhat.com>
385
386 PR ld/13621
387 * ld-elf/warn2.d: Expect ABS section for Foo.
388 * ld-elf/zerosize1.d, ld-elf/zerosize1.s: New test.
389
390 2012-02-13 Alan Modra <amodra@gmail.com>
391
392 * ld-m68hc11/m68hc11.exp: Run for m68hc11-*-* and m68hc12-*-*.
393 * ld-m68hc11/adj-brset.d: Remove redundant #target line. Add
394 -m m68hc11elf to ld invocation.
395 * ld-m68hc11/adj-jump.d: Likewise.
396 * ld-m68hc11/bug-1403.d: Likewise.
397 * ld-m68hc11/bug-1417.d: Likewise.
398 * ld-m68hc11/bug-3331.d: Likewise.
399 * ld-m68hc11/relax-direct.d: Likewise.
400 * ld-m68hc11/relax-group.d: Likewise.
401 * ld-m68hc11/far-hc11.d: Remove redundant #target line. Adjust for
402 changed addresses.
403 * ld-m68hc11/far-hc12.d: Remove redundant #target line.
404 * ld-m68hc11/link-hcs12.d: Likewise, and adjust for header changes.
405
406 2012-02-09 H.J. Lu <hongjiu.lu@intel.com>
407
408 PR ld/13675
409 * ld-i386/tlsnopic.dd: Update no-op padding.
410 * ld-i386/tlspic.dd: Likewise.
411
412 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
413
414 PR ld/13616
415 * ld-i386/tlsbindesc.dd: Update no-op padding.
416 * ld-i386/tlsnopic.dd: Likewise.
417 * ld-i386/tlspic.dd: Likewise.
418 * ld-x86-64/tlsbin.dd: Likewise.
419 * ld-x86-64/tlsbindesc.dd: Likewise.
420 * ld-x86-64/tlspic.dd: Likewise.
421
422 2012-01-17 Alan Modra <amodra@gmail.com>
423
424 * config/default.exp: Provide tmpdir/ld/collect-ld.
425
426 2012-01-10 H.J. Lu <hongjiu.lu@intel.com>
427
428 PR ld/13581
429 * ld-x86-64/ilp32-4.s: New.
430 * ld-x86-64/ilp32-10.d: Likewise.
431 * ld-x86-64/ilp32-10.s: Likewise.
432
433 * ld-x86-64/ilp32-4.d: Adjusted.
434 * ld-x86-64/ilp32-5.d: Likewise.
435 * ld-x86-64/ilp32-5.s: Likewise.
436
437 * ld-x86-64/x86-64.exp: Run ilp32-10.
438
439 2012-01-05 Nick Clifton <nickc@redhat.com>
440
441 * ld-x86-64/x86-64.exp: Add test of linking mixed 32-bit and
442 64-bit objects when the 32-bit object (loaded first) contains 32+
443 local symbols, all referenced by relocs and the 64-bit object
444 contains a reloc that uses a symbol in the 32-bit object.
445 * 32bit.s: New source file.
446 * 64bit.s: New source file.
447 * incompatible.l: New expected linker output file.
448
449 For older changes see ChangeLog-2011
450 \f
451 Local Variables:
452 mode: change-log
453 left-margin: 8
454 fill-column: 74
455 version-control: never
456 End:
This page took 0.038647 seconds and 4 git commands to generate.