3 * ld-cris/libdso-2.d, ld-cris/dso-2.s, ld-cris/hide1: New test.
7 * ld-cris/ldsym1.d: New test.
9 * ld-mmix/bpo-1.d: Tweak for type of linker-script-symbols no
11 * ld-mmix/undef-3.d, ld-mmix/start-1.d, ld-mmix/locto-1.d,
12 ld-mmix/loct-1.d, ld-mmix/locdo-1.d, ld-mmix/local7.d,
13 ld-mmix/local5.d, ld-mmix/local3.d, ld-mmix/local1.d,
14 ld-mmix/loc6.d, ld-mmix/loc4.d, ld-mmix/loc3.d, ld-mmix/loc2.d,
15 ld-mmix/loc1.d, ld-mmix/greg-7.d, ld-mmix/greg-6.d,
16 ld-mmix/greg-5.d, ld-mmix/greg-4.d, ld-mmix/greg-3.d,
17 ld-mmix/greg-2.d, ld-mmix/greg-19.d, ld-mmix/greg-1.d,
18 ld-mmix/bspec2.d, ld-mmix/bspec1.d, ld-mmix/bpo-9.d,
19 ld-mmix/bpo-6.d, ld-mmix/bpo-5.d, ld-mmix/bpo-4.d,
20 ld-mmix/bpo-3.d, ld-mmix/bpo-2.d, ld-mmix/bpo-19.d,
21 ld-mmix/bpo-18.d, ld-mmix/bpo-17.d, ld-mmix/bpo-16.d,
22 ld-mmix/bpo-14.d, ld-mmix/bpo-11.d, ld-mmix/bpo-10.d: Ditto.
26 * ld-elfweak/strongdata.sym: Allow bss section for GCC 3.2 that
27 places zero initialized data in the bss.
28 * ld-elfweak/lddsodata.dsym: Likewise.
32 * ld-cris/expdyn1.d: Tweak for change in elf.sc.
36 * ld-sh/ld-r-1.d: Adjust to changes in readelf output.
37 * ld-sh/shared-1.d, ld-sh/sh64/crangerel1.rd, ld-sh/crangerel2.rd,
38 ld-sh/sh64/reldl32.rd, ld-sh/sh64/reldl64.rd: Ditto.
42 * ld-elfvsb/sh1.c: Fix typo in last change.
46 * ld-elfvsb/sh1.c: Use #pragma weak.
50 * vers.exp: Do not call diff -q.
54 * ld-mmix/b-nosym.d, ld-mmix/sec-6.d: Tweak for change in symbol
56 * ld-mmix/sec-7m.d, ld-mmix/sec-7a.s, ld-mmix/sec-7b.s,
57 ld-mmix/sec-7c.s, ld-mmix/sec-7d.s, ld-mmix/sec-7e.s: New test.
59 * ld-mmix/bpo-22.d: New test.
61 * ld-mmix/local12.d (Sections): Match any LMA for .data, .sbss,
66 * ld-selective/selective.exp: Link against libgcc on
67 hppa*-*-linux* targets.
71 * ld-sh/sh64/reldl64.rd: Add relocation symbol data in info field.
72 * ld-sh/sh64/crange-2i.s: Add align to match align in crange-2h.s.
73 * ld-sh/sh64/crange3-cmpct.rd: Adjust to reflect modifications
75 * ld-sh/sh64/crange3-media.rd: Likewise.
76 * ld-sh/sh64/crange3.rd: Likewise.
77 * ld-sh/sh64/crange3.dd: Likewise.
79 * ld-sh/shared-1.d: Fix relocation addend.
83 * ld-mmix/bpo-21.d, ld-mmix/bpo-21m.d, ld-mmix/bpo-11.s: New
90 * ld-sh/sh64/crange3-cmpct.rd: Adjust offsets.
91 * ld-sh/sh64/crange3-media.rd: Likewise.
92 * ld-sh/sh64/crange3.rd: Likewise.
93 * ld-sh/sh64/crangerel1.rd: Likewise.
94 * ld-sh/sh64/crangerel2.rd: Likewise.
95 * ld-sh/sh64/reldl32.rd: Likewise.
96 * ld-sh/sh64/reldl64.rd: Likewise.
98 * ld-sh/sh64/abi32.xd: Formatting changes to match the current
100 * ld-sh/sh64/cmpct1.xd: Likewise.
101 * ld-sh/sh64/crange1.rd: Likewise.
102 * ld-sh/sh64/crange2.rd: Likewise.
103 * ld-sh/sh64/crange3-cmpct.rd: Likewise.
104 * ld-sh/sh64/crange3-media.rd: Likewise.
105 * ld-sh/sh64/crange3.rd: Likewise.
106 * ld-sh/sh64/crangerel1.rd: Likewise.
107 * ld-sh/sh64/crangerel2.rd: Likewise.
108 * ld-sh/sh64/mix1.xd: Likewise.
109 * ld-sh/sh64/mix2.xd: Likewise.
110 * ld-sh/sh64/rel32.xd: Likewise.
111 * ld-sh/sh64/reldl32.rd: Likewise.
112 * ld-sh/sh64/reldl64.rd: Likewise.
113 * ld-sh/sh64/sh64.exp: Likewise. Reordered cranges and stack
114 sessions, to match changes in the linker script.
116 * ld-sh/sh64/reldl32.rd, ld-sh/sh64/reldl64.rd: Adjust relocation
117 info to reflect renumbering of relocation types.
119 * ld-sh/sh64/endian.dbd: New file, endian tests.
120 * ld-sh/sh64/endian.dld: Ditto.
121 * ld-sh/sh64/endian.ld: Ditto.
122 * ld-sh/sh64/endian.s: Ditto.
123 * ld-sh/sh64/endian.sbd: Ditto.
124 * ld-sh/sh64/endian.sld: Ditto.
125 * ld-sh/sh64/sh64.exp: Add above tests. Add -L option to ld.
127 * ld-sh/sh64/relax.exp: New file, test disabling relaxing.
128 * ld-sh/sh64/relax1.s: Ditto.
129 * ld-sh/sh64/relax2.s: Ditto.
130 * ld-sh/sh64/relax3.s: Ditto.
131 * ld-sh/sh64/relax4.s: Ditto.
132 * ld-sh/sh64/relfail.exp: New file, test for bogus relocs.
133 * ld-sh/sh64/relfail.s: Ditto.
135 * ld-sh/sh.exp: This test isn't appropriate for SH64 since it
136 uses SH32 assembler files.
138 * ld-selective/selective.exp: Pass "-e _start" for sh64 to
139 accomodate expected start symbol in test.
141 * ld-scripts/crossref.exp: Pass -mshelf32 to the linker for sh64,
142 to match what gcc passes to the linker by default.
143 * ld-selective/selective.exp: Ditto.
144 * ld-srec/srec.exp: Ditto, plus XFAIL for sh64.
145 * ld-undefined/undefined.exp: Add XFAIL for sh64 (it's dwarf2).
147 * ld-sh/sh64/abi32.xd (stack): Adjust for new default stack layout.
148 * ld-sh/sh64/abi64.xd (stack): Ditto.
149 * ld-sh/sh64/cmpct1.xd (stack): Ditto.
150 * ld-sh/sh64/crange1.rd (stack): Ditto.
151 * ld-sh/sh64/crange2.rd (stack): Ditto.
152 * ld-sh/sh64/crange3-cmpct.rd (stack): Ditto.
153 * ld-sh/sh64/crange3-media.rd (stack): Ditto.
154 * ld-sh/sh64/crange3.rd (stack): Ditto.
155 * ld-sh/sh64/mix1.xd (stack): Ditto.
156 * ld-sh/sh64/mix2.xd (stack): Ditto.
157 * ld-sh/sh64/shdl32.xd (stack): Ditto.
158 * ld-sh/sh64/shdl64.xd (stack): Ditto.
160 * ld-sh/sh64/mix1.xd: Add SORT_ENTRIES for .cranges section.
161 * ld-sh/sh64/mix2.xd: Ditto.
163 * ld-sh/sh64/abi32.xd: Adjust for bit 0 set on an entry address
165 * ld-sh/sh64/shdl64.xd: Ditto.
166 * ld-sh/sh64/shdl32.xd: Ditto.
167 * ld-sh/sh64/mix2.xd: Ditto.
168 * ld-sh/sh64/crange3-media.rd: Ditto.
169 * ld-sh/sh64/abi64.xd: Ditto.
171 * ld-sh/sh64/crange-2a.s (diversion2): New global symbol.
172 * ld-sh/sh64/crange1.rd: Adjust to presence of new symbol.
173 Adjust section type for .cranges; expect sorted contents.
174 * ld-sh/sh64/crange2.rd: Ditto.
175 * ld-sh/sh64/crange3.dd, ld-sh/sh64/crange3.rd: Ditto.
176 * ld-sh/sh64/crangerel1.rd: Adjust to presence of new symbol.
177 * ld-sh/sh64/crangerel2.rd: Ditto.
178 * ld-sh/sh64/mix1.xd: Adjust to DEBUGGING being set for .cranges.
179 * ld-sh/sh64/mix2.xd: Ditto.
180 * ld-sh/sh64/crange3-cmpct.rd, ld-sh/sh64/crange3-media.rd: New
182 * ld-sh/sh64/sh64.exp: Tweak test message. Run new tests.
184 * ld-sh/sh64/shmix-1.s (start2): Add a NOP to provide a valid
185 target for (unexpanded) PTB. Add an .align 2 to SHmedia code to
186 keep properly aligned.
187 * ld-sh/sh64/mix1.sd, ld-sh/sh64/mix1.xd: Adjust accordingly.
188 * ld-sh/sh64/mix1-noexp.sd, ld-sh/sh64/mix2-noexp.sd,
189 ld-sh/sh64/abixx-noexp.sd: New tests for GAS -no-expand and
190 R_SH_PT_16 relocation.
191 * ld-sh/sh64/sh64.exp: Run new tests.
193 * ld-sh/sh64/crange-2f.s, ld-sh/sh64/crange-2g.s,
194 ld-sh/sh64/crange-2h.s, ld-sh/sh64/crange-2i.s,
195 ld-sh/sh64/crange3.dd, ld-sh/sh64/crange3.rd: New tests.
196 * ld-sh/sh64/sh64.exp: Run new tests.
197 * ld-sh/sh64/crange1.rd: Correct section flags.
198 * ld-sh/sh64/crange2.rd: Ditto.
199 * ld-sh/sh64/crangerel1.rd: Ditto.
201 * ld-sh/sh64/crange-1.s, ld-sh/sh64/crange-2a.s,
202 ld-sh/sh64/crange-2b.s, ld-sh/sh64/crange-2c.s,
203 ld-sh/sh64/crange-2d.s, ld-sh/sh64/crange-2e.s,
204 ld-sh/sh64/crange1.rd, ld-sh/sh64/crange2.rd,
205 ld-sh/sh64/crangerel1.rd, ld-sh/sh64/crangerel2.rd: New tests for
206 handling .cranges section.
207 * ld-sh/sh64/sh64.exp: Run new tests.
208 * ld-sh/sh64/mix1.sd, ld-sh/sh64/mix1.xd, ld-sh/sh64/mix2.sd,
209 ld-sh/sh64/mix2.xd: Adjust for .cranges section.
211 * ld-sh/sh64/abi32.sd, ld-sh/sh64/abi32.xd, ld-sh/sh64/abi64.sd,
212 ld-sh/sh64/abi64.xd, ld-sh/sh64/cmpct1.xd, ld-sh/sh64/mix1.sd,
213 ld-sh/sh64/mix1.xd, ld-sh/sh64/mix2.sd, ld-sh/sh64/mix2.xd,
214 ld-sh/sh64/shdl32.xd, ld-sh/sh64/shdl64.xd: Adjust to .bss and
215 .data individually 8-byte aligned.
217 * ld-sh/sh64/rel-1.s, ld-sh/sh64/rel-2.s, ld-sh/sh64/rel32.xd,
218 ld-sh/sh64/rel64.xd, ld-sh/sh64/reldl-1.s, ld-sh/sh64/reldl-2.s,
219 ld-sh/sh64/reldl32.rd, ld-sh/sh64/reldl64.rd: New tests.
220 * ld-sh/sh64/sh64.exp: Make it possible to use readelf as
221 inspection tool. Run new tests.
223 * ld-sh/sh64/abi64.sd, ld-sh/sh64/abi32.sd, ld-sh/sh64/mix1.sd,
224 ld-sh/sh64/mix2.sd: Correct offsets in PT/PTA/PTB expansions.
225 * ld-sh/sh64/shdl-1.s, ld-sh/sh64/shdl-2.s, ld-sh/sh64/shdl64.sd,
226 ld-sh/sh64/shdl64.xd, ld-sh/sh64/shdl32.xd: New tests.
227 * ld-sh/sh64/sh64.exp: Run new tests.
229 * ld-sh/sh64/cmpct1.sd, ld-sh/sh64/cmpct1.xd,
230 ld-sh/sh64/shcmp-1.s: New test.
231 * ld-sh/sh64/sh64.exp: Add new test to sh64tests. Reformat.
233 * ld-sh/sh64/sh64.exp: Use linker option -mshelf64 for 64-bit ABI
235 * ld-sh/sh64/abi64.xd: Tweak for 64-bit ELF.
237 * ld-sh/sh64/sh64.exp (sh64tests): Use linker option -mshelf32 for
240 * ld-sh/sh64/abi32.sd, ld-sh/sh64/abi64.sd: Correct MOVI
242 * ld-sh/sh64/mix1.sd, ld-sh/sh64/mix1.xd, ld-sh/sh64/shmix-1.s:
244 * ld-sh/sh64/mix2.sd, ld-sh/sh64/mix2.xd, ld-sh/sh64/shmix-2.s,
245 ld-sh/sh64/shmix-3.s: New test.
246 * ld-sh/sh64/sh64.exp: Add new tests to sh64tests.
248 * ld-sh/sh64: New testsuite.
252 * ld-selective/keepdot.s: Remove section specifier.
256 * ld-selective/keepdot.d, ld-selective/keepdot.ld,
257 ld-selective/keepdot.s, ld-selective/keepdot0.d: New tests.
258 * ld-selective/sel-dump.exp: New, driver for run_dump_test:s.
262 * ld-mmix/bpo-18.d, ld-mmix/bpo64addr.ld, ld-mmix/bpo-18m.d,
263 ld-mmix/bpo-9.s, ld-mmix/bpo-19.d, ld-mmix/bpo-19m.d,
264 ld-mmix/bpo-10.s, ld-mmix/bpo-20.d, ld-mmix/bpo-20m.d: New tests
265 for on-demand global register allocation.
269 * ld-sh/shared-1.d: Fix incorrect offsets.
273 * ld-mmix/bpo-1.d, ld-mmix/bpo-1.s, ld-mmix/bpo-1m.d,
274 ld-mmix/bpo-15.d, ld-mmix/bpo-4.s, ld-mmix/bpo-6.d,
275 ld-mmix/bpo-6.s, ld-mmix/bpo-2.d, ld-mmix/bpo-6m.d,
276 ld-mmix/bpo-12m.d, ld-mmix/bpo-2m.d, ld-mmix/bpo-2.s,
277 ld-mmix/bpo-5.s, ld-mmix/bpo-3.d, ld-mmix/start3.s,
278 ld-mmix/bpo-3m.d, ld-mmix/bpo-9m.d, ld-mmix/bpo-4.d,
279 ld-mmix/bpo-3.s, ld-mmix/bpo-4m.d, ld-mmix/bpo-7.d,
280 ld-mmix/bpo-5.d, ld-mmix/bpo-16.d, ld-mmix/bpo-5m.d,
281 ld-mmix/bpo-7m.d, ld-mmix/bpo-9.d, ld-mmix/bpo-8.d,
282 ld-mmix/start4.s, ld-mmix/bpo-8m.d, ld-mmix/bpo-13m.d,
283 ld-mmix/bpo-15m.d, ld-mmix/bpo-10.d, ld-mmix/bpo-11.d,
284 ld-mmix/bpo-14m.d, ld-mmix/bpo-13.d, ld-mmix/bpo-7.s,
285 ld-mmix/bpo-12.d, ld-mmix/bpo-16m.d, ld-mmix/bpo-14.d,
286 ld-mmix/bpo-8.s, ld-mmix/bpo-17.d, ld-mmix/bpo-17m.d: New tests.
290 * ld-cris/weakref1.d, ld-cris/libdso-1.d, ld-cris/gotrel2.s,
291 ld-cris/expdyn1.d, ld-cris/expdyn1.s, ld-cris/dso-1.s: New tests.
292 * ld-cris/cris.exp: Split run_dump_tests in two parts, executing
293 tests named *dso-*.d first and copying their tmpdir/dump to files
294 named as the .d-file.
298 * ld-scripts/crossref.exp: Allow foo to have a leading dot.
299 * ld-scripts/cross1.t: Add .opd.
300 * ld-undefined/undefined.exp: Allow leading dot on sym names.
301 * lib/ld-lib.exp (default_ld_nm): Strip leading dots from syms.
305 * ld-mips-elf/emrelocs-eb.d: New file to test --embedded-relocs.
306 * ld-mips-elf/emrelocs-el.d: Likewise.
307 * ld-mips-elf/emrelocs1.s: Likewise.
308 * ld-mips-elf/emrelocs2.s: Likewise.
309 * ld-mips-elf/emrelocs.ld: Likewise.
310 * ld-mips-elf/mips-elf.exp: Add the above to the list of tests.
314 * ld-cris: New testsuite directory.
318 * ld-sh/sh.exp: Copy start.s file into test directory.
322 * ld-selective/selective.exp: For ARM targets, link with libgcc.a.
326 * ld-mips-elf/empic1-ln.d: New file to test basic linking of
327 R_MIPS_GNU_REL_HI16 and R_MIPS_GNU_REL_LO16 relocations.
328 * ld-mips-elf/empic1-lp.d: Likewise.
329 * ld-mips-elf/empic1-mn.d: Likewise.
330 * ld-mips-elf/empic1-mp.d: Likewise.
331 * ld-mips-elf/empic1-sn.d: Likewise.
332 * ld-mips-elf/empic1-sp.d: Likewise.
333 * ld-mips-elf/empic1-ref.s: Likewise.
334 * ld-mips-elf/empic1-space.s: Likewise.
335 * ld-mips-elf/empic1-tgt.s: Likewise.
336 * ld-mips-elf/empic2-fwd-0.d: New file to test
337 R_MIPS_GNU_REL_HI16 and R_MIPS_GNU_REL_LO16 relocation edge
339 * ld-mips-elf/empic2-fwd-1.d: Likewise.
340 * ld-mips-elf/empic2-rev-0.d: Likewise.
341 * ld-mips-elf/empic2-rev-1.d: Likewise.
342 * ld-mips-elf/empic2-ref.s: Likewise.
343 * ld-mips-elf/empic2-space.s: Likewise.
344 * ld-mips-elf/empic2-fwd-tgt.s: Likewise.
345 * ld-mips-elf/empic2-rev-tgt.s: Likewise.
346 * ld-mips-elf/mips-elf.exp: New file to run MIPS 32-bit ELF
347 tests (including those above).
351 * ld-elfvers/vers.exp (build_vers_lib): Preserve the library
356 * ld-elfvers/vers.exp (build_vers_lib): Support linking against
357 more than one libraries.
358 Add "vers20a" and "vers20" tests for common symbols.
360 * ld-elfvers/vers20.c: New.
361 * ld-elfvers/vers20.dsym: New.
362 * ld-elfvers/vers20.map: New.
363 * ld-elfvers/vers20.ver: New.
364 * ld-elfvers/vers20a.ver: New.
368 * ld-elfvsb/define.s: Mark all global lables as object.
370 * ld-elfvsb/hidden0.d: Match large section number.
371 * ld-elfvsb/hidden1.d: Likewise.
372 * ld-elfvsb/internal0.d: Likewise.
373 * ld-elfvsb/internal1.d: Likewise.
374 * ld-elfvsb/protected0.d: Likewise.
375 * ld-elfvsb/protected1.d: Likewise.
377 * ld-elfvsb/hidden0.d: Change NOTYPE to OBJECT.
378 * ld-elfvsb/internal0.d: Likewise.
379 * ld-elfvsb/protected0.d: Likewise.
383 * ld-sh/ld-r-1.d: Updated.
387 * ld-bootstrap/bootstrap.exp: Only scan tail of executable for
392 * ld-bootstrap/bootstrap.exp: Only compare the tail end of the two
393 binary files produced in order to avoid date stamp present in PE
398 * ld-mmix/sec-5.d (Sections): Add whitespace missing in commit.
402 * ld-discard/discard.exp: New. Test ld discard.
403 * ld-discard/discard.ld: Likewise.
404 * ld-discard/exit.s: Likewise.
405 * ld-discard/extern.d: Likewise.
406 * ld-discard/extern.s: Likewise.
407 * ld-discard/start.d: Likewise.
408 * ld-discard/start.s: Likewise.
409 * ld-discard/static.d: Likewise.
410 * ld-discard/static.s: Likewise.
414 * ld-elfvsb/elfvsb.exp: Add the "ld -r" test.
416 * ld-elfvsb/hidden0.d: New.
417 * ld-elfvsb/hidden1.d: New.
418 * ld-elfvsb/internal0.d: New.
419 * ld-elfvsb/internal1.d: New.
420 * ld-elfvsb/protected0.d: New.
421 * ld-elfvsb/protected1.d: New.
422 * ld-elfvsb/undef.s: New.
423 * ld-elfvsb/undef.s: New.
427 * ld-sh/sh.exp: Have its own start.s for linux.
431 * ld-mmix/locdo-1.d: Prune character dump part.
432 * ld-mmix/local7m.d, ld-mmix/loc4.d, ld-mmix/loc4m.d,
433 ld-mmix/loc1.d, ld-mmix/bspec1m.d, ld-mmix/bspec2m.d,
434 ld-mmix/b-nosym.d, ld-mmix/b-fixo2.d, ld-mmix/b-loc64k.d,
435 ld-mmix/undef-3m.d, ld-mmix/locto.s, ld-mmix/loct.s,
436 ld-mmix/local3m.d, ld-mmix/local1m.d, ld-mmix/loc6m.d,
437 ld-mmix/loc2.s, ld-mmix/loc1.s, ld-mmix/gregldo1.s,
438 ld-mmix/dloc1.s, ld-mmix/b-widec3.s, ld-mmix/b-nosym.s: Remove
439 unnecessary empty lines.
443 * ld-mmix: New testsuite directory.
447 * ld-sh/sub2l-1.d, ld-sh/shared-1.d, ld-sh/weak1.d: Only run on
450 * lib/ld-lib.exp (run_dump_test): Fix typo: asflags(), not asflags{}.
452 * ld-sh/rd-sh.exp: New framework file.
453 * ld-sh/ld-r-1.d, ld-sh/ldr1.s, ld-sh/ldr2.s, ld-sh/shared-1.d,
454 ld-sh/weak1.s, ld-sh/weak1.d, ld-sh/sub2l.s, ld-sh/sub2l-1.d: New
459 * ld-linkonce/linkonce.exp: New file.
460 * ld-linkonce/x.s, ld-linkonce/y.s, ld-linkonce/zeroeh.ld,
461 ld-linkonce/zeroehl32.d: New test.
465 * ld-elfweak/dso.dsym: Updated for alpha.
466 * ld-elfweak/dsodata.dsym: Likewise.
467 * ld-elfweak/strong.sym: Likewise.
468 * ld-elfweak/strongcomm.sym: Likewise.
469 * ld-elfweak/strongdata.sym: Likewise.
473 * lib/ld-lib.exp (run_dump_test): Handle new option
474 "objcopy_linked_file". Return after failing, if errors were
475 expected but none were found.
476 (slurp_options): Support underscores in option names.
480 * ld-elfweak/bar.c: Updated.
481 * ld-elfweak/bar1a.c: Likewise.
482 * ld-elfweak/main.c: Likewise.
483 * ld-elfweak/main1.c: Likewise.
484 * ld-elfweak/elfweak.exp: Likewise.
485 * ld-elfweak/weakdata.dsym: Updated.
489 * ld-elfweak/elfweak.exp (build_lib): Take a list of object
491 (build_exec): Likewise.
492 Add more tests and make some xfail.
494 * ld-elfweak/dso.dsym: Support symbol versioning.
495 * ld-elfweak/dsow.dsym: Likewise.
497 * ld-elfweak/main1.c: New.
498 * ld-elfweak/bar1a.c: Likewise.
499 * ld-elfweak/bar1b.c: Likewise.
500 * ld-elfweak/bar1c.c: Likewise.
501 * ld-elfweak/foo1a.c: Likewise.
502 * ld-elfweak/foo1b.c: Likewise.
503 * ld-elfweak/dsodata.dsym: Likewise.
504 * ld-elfweak/dsowdata.dsym: Likewise.
505 * ld-elfweak/weakdata.dsym: Likewise.
506 * ld-elfweak/strongcomm.sym: Likewise.
507 * ld-elfweak/strongdata.sym: Likewise.
508 * ld-elfweak/weakdata.dat: Likewise.
509 * ld-elfweak/strongdata.dat: Likewise.
513 * ld-elfweak/elfweak.exp: New.
514 * ld-elfweak/bar.c: Likewise.
515 * ld-elfweak/foo.c: Likewise.
516 * ld-elfweak/main.c: Likewise.
517 * ld-elfweak/dso.dsym: Likewise.
518 * ld-elfweak/dsow.dsym: Likewise.
519 * ld-elfweak/strong.sym: Likewise.
520 * ld-elfweak/strong.dat: Likewise.
521 * ld-elfweak/weak.dat: Likewise.
526 * ld-checks/checks.exp: .lcomm is incompatible with ppc coff.
527 * ld-scripts/cross1.t: Add .toc section.
528 * ld-scripts/cross2.t: Likewise.
529 * ld-scripts/phdrs.exp: powerpc64 is 64 bit.
530 * ld-srec/srec.exp: xfail powerpc64
534 * ld-selective/selective.exp: Return if target is `vax-*-ultrix*'.
535 Continue with other tests when there is a compilation error.
539 * ld-cdtest/cdtest-nrv.dat: New file.
540 * ld-cdtest/cdtest.exp: Do not require any exception support
541 library. Check results against NRV.
545 * ld-srec/srec.exp: Do not require any exception support
550 * ld-selective/selective.exp: Fix the error in the last change.
554 * ld-selective/selective.exp: Support g++ V3 ABI (along side
555 the old ABI). Make comparisons against normalized (to
556 V3-style) demangled nm output.
560 * config/default.exp (ld_nm): Add "nmflags" arg.
561 * lib/ld-lib.exp (default_ld_nm): Likewise.
562 * ld-empic/empic.exp: Adjust call to ld_nm.
563 * ld-scripts/defined.exp: Likewise.
564 * ld-scripts/script.exp: Likewise.
565 * ld-scripts/sizeof.exp: Likewise.
566 * ld-selective/selective.exp: Likewise.
567 * ld-sh/sh.exp: Likewise.
571 * ld-selective/selective.exp: Mark selective1, selective2,
572 selective4 and selective5 xfail on alpha*-*.
576 * config/default.exp (AS, GASP, OBJDUMP, NM, NMFLAGS, OBJCOPY,
577 OBJCOPYFLAGS, READELF, READELFFLAGS, LD, LDFLAGS): Provide
580 * lib/ld-lib.exp (run_dump_test): Import from gas testsuite. Add
581 new options "ld", "source", "xfail", "target", "notarget" and
582 "error". Support the runtest_file_p "*.exp=testname" feature.
583 (slurp_options, regexp_diff, file_contents, verbose_eval): Import
588 * testsuite/ld-undefined/undefined.exp: Correct setup_xfail rule.
592 * ld-bootstrap/bootstrap.exp: Rebuild tmpdir/ld2 with tmpdir/ld3
595 * ld-elfvers/vers.exp: Also run on Linux/mips.
596 * ld-elfvsb/elfvsb.exp: Likewise.
597 * ld-shared/shared.exp: Likewise.
599 * ld-selective/selective.exp: Mark selective2, selective3,
600 selective4 and selective5 xfail on Linux/mips.
602 * ld-shared/main.c: Skip invalid -Bsymbolic tests on Linux/mips.
604 * symbolic.dat: Remove invalid -Bsymbolic tests on Linux/mips.
606 * ld-srec/srec.exp: Add Linux/mips to xfail.
610 * ld-undefined/undefined.exp: Add a setup_xfail line for a test
611 that will always fail on s/390.
615 * ld-sh/sh.exp: For sh-*-linux-gnu target add a start address for
620 * ld-elfvers/vers.exp: Replace linuxoldld with linux*oldld and
621 linuxaout with linux*aout.
625 * ld-scripts/phdrs.exp: Add sparc64 to 64 bit platform.
629 * ld-elfvers/vers.exp: Revert the last change.
631 * ld-elfvers/vers2.ver: Put back "tmpdir/" the version
633 * ld-elfvers/vers3.ver: Likewise.
634 * ld-elfvers/vers6.ver: Likewise.
635 * ld-elfvers/vers18.ver: Likewise.
639 * ld-elfvers/vers.exp: Pass "-rpath .:$tmpdir" to "vers19".
641 * ld-elfvers/vers1.ver: Remove "tmpdir/" from the version
643 * ld-elfvers/vers2.ver: Likewise.
644 * ld-elfvers/vers3.ver: Likewise.
645 * ld-elfvers/vers4a.ver: Likewise.
646 * ld-elfvers/vers6.ver: Likewise.
647 * ld-elfvers/vers7a.ver: Likewise.
648 * ld-elfvers/vers8.ver: Likewise.
649 * ld-elfvers/vers9.ver: Likewise.
650 * ld-elfvers/vers15.ver: Likewise.
651 * ld-elfvers/vers16a.ver: Likewise.
652 * ld-elfvers/vers17.ver: Likewise.
653 * ld-elfvers/vers18.ver: Likewise.
657 * ld-elfvers/vers19.ver: Expect vers17.so instead of
662 * ld-scripts/phdrs.exp: Fix regexp, s390x is 64 bit platform.
664 * ld-scripts/phdrs.t: Use startaddress that's greater than any
669 * ld-shared/symbolic.dat: New.
671 * ld-shared/shared.exp: Also check -Bsymbolic.
675 * ld-scripts/phdrs.exp: x86-64 is a 64 bit ELF platform, handle it
679 * ld-undefined/undefined.exp: XFAIL on FreeBSD/i386 for the usual (even
680 though it doesn't use DWARF2 yet (but its output is identical).
684 * ld-selective/selective.exp: Use -O with gcc rather than -O2.
685 This optimization level is buggy on some platforms, and this test
686 is not intended to test compiler optimizations.
690 * ld-scripts/cross2.t: Support any type of text/data sections, not
691 just the canonical ones.
695 * ld-scripts/crossref.exp: Initialize flags to [big_or_little_endian].
696 * ld-undefined/undefined.exp: Ditto, and include $flags in ld
698 * lib/ld-lib.exp (big_or_little_endian): Recognize -EB, -eb, -EL
700 (is_endian_output_format): New function.
701 (default_ld_link): Set flags to [big_or_little_endian] only if ld
702 is being invoked such that the output format being used is of
704 (default_ld_simple_link): Ditto.
708 * ld-bootstrap/bootstrap.exp: Rebuild tmpdir/ld2 with tmpdir/ld3
711 * ld-checks/checks.exp: Don't run on ia64-*-elf* nor
714 * ld-elfvers/vers.exp: Also run ia64-*-elf* and ia64-*-linux*.
716 * ld-elfvsb/elfvsb.exp: Use i?86-*-*. Also run on ia64-*-linux*.
717 Set up expected failures for ia64-*-linux*.
718 * ld-shared/shared.exp: Likewise.
722 * ld-srec/srec.exp (run_srec_test): m6811 code has references
723 to soft registers, define them with --defsym.
724 * ld-selective/selective.exp: Likewise.
728 * ld-sh/sh.exp: Use --oformat srec, not -oformat srec.
732 * ld-elfvsb/elfvsb.exp: Run test on Linux/Alpha.
733 * ld-shared/shared.exp: Likewise.
737 * ld-undefined/weak-undef.exp: New test.
738 * ld-undefined/weak-undef.s, ld-undefined/weak-undef.t: Supporting
741 * ld-elfvers/vers.exp: Run test on Linux/ARM.
742 * ld-elfvsb/elfvsb.exp: Likewise.
743 * ld-shared/shared.exp: Likewise.
747 * ld-srec/srec.exp: Use --oformat instead of -oformat.
751 * ld-selective/selective.exp: Link in libgcc when target is v850.
753 * ld-srec/srec.exp: Expect the srec_test to fail for ARM targets
754 because the -oformat linker command switch cannot be used.
758 * ld-elfvsb/main.c (PROTECTED_CHECK): Include stdio.h.
759 (main): Prune unused args.
763 * ld-selective/selective.exp <no CXX>: Fix typo for argument to
768 * ld-elfvsb/elfvsb.exp (visibility_run): Set expected failures
770 * ld-shared/shared.exp: Likewise.
774 * ld-selective/selective.exp: Rearrange to be table-driven.
778 * ld-scripts/phdrs.exp: hppa*64*-*-* is 64-bit ELF too.
782 * ld-scripts/weak.exp: Don't set $global$ for hppa-elf any more.
783 * ld-scripts/crossref.exp: Ditto.
787 * ld-selective/5.cc: New test.
788 * ld-selective/selective.exp: Run it as xfailed.
790 * ld-selective/4.cc: Correct spelling of "lose".
794 * ld-selective/selective.exp: Remove the xfails for hppa.
798 * ld-undefined/undefined.exp (hppa*64*-*-*, mn10300-*-elf,
799 sh-*-*): With dwarf-2, `undefined function' can't pass.
803 * ld-bootstrap/bootstrap.exp: Add strip.
807 * ld-elfvsb/elfvsb.exp: Add -g to $CC to get the location of
808 the undefined reference.
812 * ld-elfvsb/elfvsb.exp (support_protected): New variable. Check
813 and set to "yes" if the protected visibility is expected to
815 (visibility_run): Set expected to fail for the "protected"
816 and "protected_undef_def" tests only if $support_protected is
819 * ld-elfvsb/main.c (PROTECTED_CHECK): Check for the protected
820 visibility support if defined.
824 * ld-elfvsb/elfvsb.exp (visibility_run): Set expected failure
825 for "protected_undef_def".
827 * ld-elfvsb/main.c: Don't define HIDDEN_UNDEF_TEST when
828 PROTECTED_WEAK_TEST is defined.
829 Don't define PROTECTED_UNDEF_TEST when PROTECTED_WEAK_TEST is
831 Define PROTECTED_TEST when PROTECTED_UNDEF_TEST is defined.
833 * ld-elfvsb/sh1.c (visibility): Mark protected only if
834 PROTECTED_TEST, PROTECTED_UNDEF_TEST or PROTECTED_WEAK_TEST
836 (visibility_var): Likewise.
840 * ld-srec/srec.exp: xfail hppa.
842 * ld-scripts/weak.exp: Define $global$ for hppa.
844 * ld-scripts/crossref.exp: Fix string quoting.
848 * lib/ld-lib.exp (default_ld_link): Redirect the linker output
849 to link_output and make it global.
851 * ld-elfvsb/elfvsb.exp (visibility_test): Add "hidden_undef",
852 "hidden_undef_def", "hidden_weak", "protected_undef",
853 "protected_undef_def" and "protected_weak".
854 (visibility_run): Likewise.
855 * ld-elfvsb/main.c: Likewise.
856 * ld-elfvsb/sh1.c: Likewise.
857 * ld-elfvsb/sh2.c: Likewise.
859 * ld-elfvsb/elfvsb.dat: Updated.
863 * ld-elfvsb/main.c (main_visibility_check): Fix the protected
868 * lib/ld-lib.exp (default_ld_link): Redirect the linker output
869 to link_output and make it global.
871 * ld-elfvsb/elf-offset.ld: New. ELF visibility fearture
873 * ld-elfvsb/elfvsb.dat: Likewise.
874 * ld-elfvsb/elfvsb.exp: Likewise.
875 * ld-elfvsb/main.c: Likewise.
876 * ld-elfvsb/sh1.c: Likewise.
877 * ld-elfvsb/sh2.c: Likewise.
881 * ld-scripts/phdrs.exp: IA-64 is 64-bit ELF too.
885 * ld-selective/3.cc (_start): Add cheat for gcc-2.95.2 failure.
887 * ld-selective/selective.exp (test4): Test for presence of
888 foo__1B, not absence. Also check for foo__1A and _start.
889 White space changes throughout file.
893 * ld-scripts/phdrs.t: Discard all unexpected sections.
897 * lib/ld-lib.exp (default_ld_link): Added "$LIBS" to libs.
901 * ld-selective/selective.exp: Fix test to disable these checks for
906 * ld-selective/selective.exp: Remove test6.
907 * ld-selective/5.cc: Delete.
911 * ld-srec/srec.exp: Setup expected failures for
912 srec tests on ARM Linux.
916 * ld-shared/shared.exp: xfail linux*libc1 shared (non PIC, load
921 * ld-scripts/script.exp: Add --image-base 0 for PE targets.
925 * ld-cdtest/cdtest-foo.cc (Foo::init_foo): Use "%ld" for sizeof.
929 * ld-elfvers/vers.exp: Run tests on sparc*-*-linux*.
930 * ld-shared/shared.exp: Likewise.
934 * lib/ld-lib.exp (proc big_or_little_endian): New proc.
935 Determine if a big endian or little endian output format hass
936 been selected by any of the multilib options, and if so return
937 a suitable command line option for the linker/assembler.
938 (proc default_ld_link): Include the result of proc
939 big_or_little_endian on the command line to the linker.
940 (proc ld_simple_link): Include the result of proc
941 big_or_little_endian on the command line to the linker.
942 (proc default_ld_compile): Append multilib flags to compiler
944 (proc default_ld_assemble): Include the result of proc
945 big_or_little_endian on the command line to the linker.
949 * ld-elfvers/vers1.c: Add missing prototypes and include
950 <stdio.h> if necessary.
951 * ld-elfvers/vers15.c: Likewise.
952 * ld-elfvers/vers19.c: Likewise.
953 * ld-elfvers/vers2.c: Likewise.
954 * ld-elfvers/vers3.c: Likewise.
955 * ld-elfvers/vers4.c: Likewise.
956 * ld-elfvers/vers6.c: Likewise.
957 * ld-elfvers/vers7.c: Likewise.
958 * ld-elfvers/vers9.c: Likewise.
959 * ld-shared/main.c: Likewise.
960 * ld-srec/sr3.cc (Foo::Foo): Remove arg name.
964 * ld-undefined/undefined.exp: XFAIL on IRIX6 for the usual as
965 with other DWARF2 targets.
969 * ld-undefined/undefined.exp: Do not expect arm toolchains to fail
970 the undefined line test.
974 * ld-elfvers/vers.exp: Use -rpath in new vers19 test.
978 * ld-elfvers/vers.exp: Add new tests vers17 to vers19.
979 * ld/elfvers/{vers17.*, vers18.*, vers19.*}: New files.
983 * ld-checks/asm.s: Use a symbol name for .lcomm.
984 * ld-checks/checks.exp: Use different names for the two tests.
985 Don't add extra text when invoking fail.
989 * ld-scripts/phdrs.exp: Change target check from "*-*-linuxaout*"
990 to "*-*-linux*aout*".
991 * ld-scripts/weak.exp: Likewise.
992 * ld-shared/shared.exp: Likewise. Simplify condition a bit.
996 * ld-cdtest/cdtest-main.cc: Avoid `implicit int' warning.
997 * ld-shared/sh1.c: Fix typo.
1001 * lib/ld-lib.exp (default_ld_nm): Clear nm_output first if
1006 * ld-undefined/undefined.exp: Add xfail for mcore-elf.
1010 * ld-srec/srec.exp: Do not run tests for PE based ports.
1014 * ld-selective/selective.exp: Do not run tests for COFF or PE
1019 * ld-undefined/undefined.exp: Add expected failures for StrongARM
1022 * ld-srec/srec.exp: Add expected failures for StrongARM targets.
1024 * ld-selective/selective.exp: Add expected failure for ARM-COFF
1029 * ld-checks/asm.s: Use .long instead of .word.
1030 Replace custom section names with .text, .data and .bss.
1031 * ld-checks/script: Replace custom section names with .text, .data
1033 * ld-checks/checks.exp: Replace custom section names with .text,
1038 * ld-checks: New directory: Tests for the linker's
1039 --check-sections option.
1040 * ld-checks/checks.exp: New file.
1041 * ld-checks/script: Bogus linker script.
1042 * ld-checks/asm.s: Simple test assembler file.
1046 * ld-selective/selective.exp: Disable test for unsupported
1047 targets. Change tests to check for absence of symbols instead
1052 * config/default.exp (get_link_files): Quote target_triplet and CC
1053 when invoking shell.
1054 (get_target_emul): Likewise.
1058 * config/default.exp (get_link_files, get_target_emul): New procs;
1059 run shell commands to extract information from configure.host and
1060 configure.tgt in the source tree.
1061 (top level): Use them to get information needed to run tests, if
1062 not otherwise provided.
1064 * ld-shared/elf-offset.ld: New file. Builds a shared library, but
1065 gives non-zero addresses for memory region.
1066 * ld-shared/shared.exp: Run the non-PIC non-AIX test again using
1067 the new linker script.
1071 * ld-srec/srec.exp: Delete xfails for PPC Linux targets,
1072 newer glibc lets link succeed.
1076 * ld-elfvers/vers1.c: Add missing return types and values.
1077 * ld-elfvers/vers2.c: Likewise.
1078 * ld-elfvers/vers3.c: Likewise.
1079 * ld-elfvers/vers4.c: Likewise.
1080 * ld-elfvers/vers5.c: Likewise.
1081 * ld-elfvers/vers6.c: Likewise.
1082 * ld-elfvers/vers7.c: Likewise.
1083 * ld-elfvers/vers9.c: Likewise.
1084 * ld-elfvers/vers15.c: Likewise.
1088 * ld-selective: New directory with new files to test
1091 * lib/ld-lib.exp (ld_nm): Strip leading underscore from $name.
1095 * ld-elfvers/vers16.dsym: Work correctly on a system without
1096 versioned system libraries.
1100 * ld-elfvers/vers.exp: Run tests on alpha-linux.
1101 * ld-elfvers/*.sym, ld-elfvers/*.dsym: Adjust patters to match
1102 Alpha's use of st_other.
1106 * ld-elfvers/vers.exp (vers16, vers16a): New tests.
1107 * ld-elfvers/{vers16.*, vers16a.*}: New files.
1111 * ld-undefined/undefined.exp: Make undefined line test be an xfail
1112 for arm/thunb elf toolchains.
1116 * ld-undefined/undefined.exp: change test for elf/dwarf2 targets.
1118 * ld-srec/srec.exp: Arm-elf now passes this test.
1122 * ld-srec/srec.exp: Add arm/thumb-elf expected failures.
1126 * ld-bootstrap/bootstrap.exp: Don't run the --static bootstrap
1127 test if we don't have a static libbfd.a.
1132 * ld-srec/srec.exp: Add xfails for Alpha ELF targets.
1136 * ld-scripts/weak.t (.text, .data): Focus data to be used.
1137 (/DISCARD/): All the rest.
1138 * ld-scripts/weak1.s, ld-scripts/weak2.s: Put stuff in .data.
1142 * config/default.exp: Create tmpdir/gas subdirectory, add a
1143 symlink to as-new, and set gcc_gas_flag variable.
1144 * lib/ld-lib.exp (default_ld_compile): If the compiler appears to
1145 be gcc, use gcc_gas_flag when compiling.
1149 * ld-elfvers/vers.exp: Just check for i?86 rather than checking
1150 for i386, i486, and i586.
1151 (objdump_versionstuff): If we can't find the line, dump the file.
1155 * ld-scripts/phdrs.exp: Run test on *-*-eabi*.
1156 * ld-scripts/weak.exp: Likewise.
1160 * ld-srec/srec.exp: Add xfail for v850.
1162 * ld-undefined/undefined.exp: arm and thumb PE toolchains now pass
1167 * ld-scripts/weak.exp: New test.
1168 * ld-scripts/weak.t: New file.
1169 * ld-scripts/weak1.s: New file.
1170 * ld-scripts/weak2.s: New file.
1174 * ld-elfvers/vers.exp: Run tests on powerpc ELF targets.
1175 * ld-shared/shared.exp: Likewise.
1176 * ld-elfvers/vers1.dsym: Allow for .sdata.
1177 * ld-srec/srec.exp: Add setup_xfails for PowerPC Linux.
1181 * ld-srec/srec.exp: Add xfails for powerpc*-*-eabi.
1182 (run_srec_test): On mn10200, define __truncsipsi2_do_d2.
1183 * ld-srec/sr1.c (__main): Change return type to void.
1184 * ld-srec/sr3.cc (__main): Likewise.
1185 (__builtin_delete, __builtin_new): Likewise.
1186 (__get_dynamic_handler_chain): Return 0.
1187 (__get_eh_context): Likewise.
1191 * ld-undefined/undefined.exp: Add support for thumb-pe target.
1192 * ld-srec/srec.exp: Add support for arm-pe and thumb-pe targets.
1196 * ld-shared/shared.exp: Remove setup_xfails for m68k-linux.
1200 * ld-shared/main.c (shlib_overriddencall2): New function.
1201 (main): Call shlib_shlibcall2.
1202 * ld-shared/sh1.c (shlib_shlibcall2): New function.
1203 (shlib_overriddencall2): New function.
1204 * ld-shared/shared.dat: Add output line for new test.
1205 * ld-shared/sun4.dat: Likewise.
1207 * ld-srec/sr3.cc (__get_eh_context): New function.
1211 * ld-cdtest/cdtest-foo.h (class Foo): Declare len to be static to
1212 avoid compiler warning.
1213 * ld-srec/sr3.cc (class Foo): Likewise.
1217 * ld-srec/sr3.cc (__get_dynamic_handler_chain): New function.
1221 * ld-scripts/phdrs.exp: Adjust phdrs_regexp for a 64 bit target.
1225 * ld-srec/srec.exp: Duplicated Arm patch for Thumb targets.
1234 * ld-srec/srec.exp: Add expected failures of tests 1 and 2 for ARM
1239 * ld-cdtest/cdtest-foo.h (class Foo): Declare len to be int to
1240 avoid compiler warning.
1241 * ld-srec/sr3.cc (class Foo): Likewise.
1245 * lib/ld-lib.exp (default_ld_simple_link): Permit the linker to
1246 have any name when looking for entry symbol warnings.
1248 * ld-srec/sr3.cc (__eh_pc): Define.
1252 * ld-srec/sr3.cc: Add definitions for terminate, __terminate, and
1253 __throw, since the current g++ expects them to be defined.
1257 * ld-elfvers/vers.exp (objdump_emptyverstuff): Accept the output
1258 file if the string libc appears in it.
1259 (objdump_versionstuff): Accept unexpected lines in the output
1260 file. Compare lines using string match.
1261 * ld-elfvers/vers6.ver: Permit any value in the vna_other field.
1265 * ld-scripts/crossref.exp: Correct string quoting.
1269 * config/default.exp: Change ld, as, nm and strip from .new to
1270 -new. Load ld-lib.exp rather than ld.exp.
1271 * ld-bootstrap/bootstrap.exp: Use ld-new rather than ld.new.
1272 * lib/ld-lib.exp: Rename from lib/ld.exp, for the benefit of
1277 * ld-elfvers/vers.exp: Use egrep rather than grep when looking for
1282 * ld-shared/shared.exp: Add setup_xfail for m68k-linux on tests
1283 with non PIC shared libraries.
1287 * ld-elfvers/vers6.ver: Update for recent elflink.h patch to
1292 * ld-srec/srec.exp: Define ___get_dynamic_handler_chain as well.
1296 * ld-srec/srec.exp: Define __get_dynamic_handler_chain when
1301 * config/default.exp: Use $base_dir rather than $objdir when
1306 * ld-srec/srec.exp: Define various out of line prologue/epilogue
1307 functions for the mn10200 to avoid needing libgcc.a.
1311 * ld-srec/srec.exp: Don't expect failures on mips*-*-elf*.
1315 * ld-elfvers/vers.exp: Don't run on SunOS or AIX.
1319 * ld-elfvers/vers.exp, *: New tests for symbol versioning.
1320 * config/default.exp: Set ar and strip.
1324 * ld-bootstrap/bootstrap.exp: Use prune_warnings instead of
1326 * ld-cdtest/cdtest.exp: Ditto.
1327 * ld-scripts/crossref.exp: Ditto.
1328 * ld-sh/sh.exp: Ditto.
1329 * ld-shared/shared.exp: Ditto.
1330 * ld-srec/srec.exp: Ditto.
1331 * lib/ld.exp: Ditto.
1335 * ld-cdtest/cdtest.exp: Put a slash between $srcdir/$subdir.
1336 * ld-scripts/script.exp: Ditto.
1337 * ld-sh/sh.exp: Ditto.
1338 * ld-undefined/undefined.exp: Ditto.
1339 * ld-versados/versados.exp: Ditto.
1340 * lib/ld.exp: Ditto.
1344 * ld-scripts/crossref.exp: Fix quoting for --defsym $global$.
1348 * lib/ld.exp (default_ld_version): Fix for current version
1353 * ld-scripts/crossref.exp: Define $global$ for hppa-elf.
1357 * ld-scripts/cross2.t: Map XCOFF sections to .text or .data.
1359 * lib/ld.exp: Use verbose -log instead of calling both verbose and
1364 * ld-scripts/phdrs.exp: New test.
1365 * ld-scripts/phdrs.s, ld-scripts/phdrs.t: New files.
1369 * ld-scripts/crossref.exp: On a29k targets, use --defsym to define
1374 * ld-scripts/crossref.exp: New test.
1375 * ld-scripts/{cross1.c, cross2.c, cross3.c}: New files.
1376 * ld-scripts/{cross1.t, cross2.t}: New files.
1380 * ld-sh/sh.exp: Fix debugging messages.
1381 * ld-sh/sh1.s: Use .align 4.
1385 * ld-sh/sh.exp: Use -O when compiling with -mrelax.
1389 * ld-shared/shared.exp: Run the shared library tests on
1394 * ld-shared/shared.exp: Run the shared library tests on Linux.
1398 * ld-shared/shared.exp: Don't use -fpic on MIPS targets.
1402 * ld-srec/srec.exp: Add xfails for hppa*-*-*elf*.
1403 * ld-undefined/undefined.exp: Likewise.
1407 * ld-undefined/undefined.exp: ELF targets should now pass the
1408 undefined line test.
1412 * ld-empic/empic.exp: Update for change to MIPS disassembler.
1416 * ld-bootstrap/bootstrap.exp: Expect failure for mips*-*-irix5*
1417 when doing the --static test.
1418 * ld-shared/shared.exp: Run tests on mips*-*-irix5*.
1422 * ld-bootstrap/bootstrap.exp: On AIX, don't pass the -bI option
1423 when creating ld-partial.o.
1427 * ld-srec/srec.exp: If powerpc*-*-eabi*, use --defsym to define
1432 * ld-srec/srec.exp: Add setup_xfails for XCOFF targets.
1436 * ld-srec/srec.exp: On a29k targets, use --defsym to define
1438 * ld-srec/sr1.c (V_SPILL, V_FILL): Remove definitions.
1439 * ld-srec/sr3.cc: Likewise.
1441 * ld-srec/srec.exp: Remove i960 COFF setup_xfail.
1445 * ld-srec/srec.exp: Don't use [] in setup_xfail expressions.
1449 * ld-srec/srec.exp: Add setup_xfails for MIPS ELF targets.
1453 * ld-srec/srec.exp: Add setup_xfail for i960 COFF targets.
1457 * ld-srec/srec.exp: Add setup_xfail calls for i[345]86-*-aout*.
1459 * ld-srec/sr1.c (V_SPILL, V_FILL): Define.
1460 * ld-srec/sr3.cc: Likewise.
1464 * ld-empic/empic.exp: Update for changes in objdump output.
1468 * ld-srec/srec.exp: New tests.
1469 * ld-srec/sr1.c, ld-srec/sr2.c, ld-srec/sr3.cc: New files.
1470 * lib/ld.exp (ld_simple_link): Discard warnings about not being
1471 able to find the entry symbol.
1475 * ld-sh/sh2.c (__main): Define.
1479 * ld-empic/empic.exp: Accept a . in the address symbol.
1481 * ld-shared/shared.exp: Run tests on rs6000*-*-aix* and
1482 powerpc*-*-aix*. Add code to create appropriate exports files,
1483 and pass appropriate compilation flags, and test against
1484 appropriate expected output.
1485 * ld-shared/xcoff.dat: New file.
1486 * ld-shared/main.c: Put #ifndef XCOFF_TEST around tests that can
1487 not be linked using XCOFF. Use shlib_shlibvar1 as a sample
1488 function pointer, rather than shlib_mainvar.
1489 * ld-shared/sh1.c: Likewise.
1490 * ld-shared/shared.dat: Update for change from using shlib_mainvar
1491 to using shlib_shlibvar1.
1492 * ld-shared/sun4.dat: Likewise.
1496 * ld-scripts/script.t: Put .pr in .text, and .rw in .data, for
1497 convenience when testing XCOFF.
1501 * ld-bootstrap/bootstrap.exp: On AIX, pass -bI/lib/syscalls.exp
1502 along with --static.
1504 * ld-scripts/script.s: Make symbols global.
1508 * ld-undefined/undefined.exp: Add setup_xfails for arm*-*-pe*.
1512 * ld-undefined/undefined.exp: Use -e when invoking the linker, to
1513 prevent the SunOS linker from trying to create a shared library.
1517 * ld-shared/shared.exp: Run the tests on sparc*-*-sunos4*. Add
1518 appropriate modifications and setup_xfails.
1519 * ld-shared/sun4.dat: New file.
1523 * lib/ld.exp (default_ld_version): Call prune_system_crud.
1524 (default_ld_relocate, default_ld_link): Likewise.
1525 (default_ld_simple_link, default_ld_compile): Likewise.
1526 (default_ld_assemble, default_ld_nm): Likewise.
1530 * ld-cdtest/cdtest.exp: If the compiler does not exist, mark the
1531 tests as untested rather than unresolved.
1535 * ld-sh/sh.exp: Call prune_system_crud on the output of cmp.
1539 * ld-scripts/script.exp: Split script verification into a proc.
1540 Add simple test of MRI script.
1541 * ld-scripts/scriptm.t: New file.
1545 * ld-sh/sh.exp: Mark `SH confirm relaxing' test unresolved when
1550 * config/default.exp: Define objcopy if it is not defined.
1551 * ld-sh/*: New tests for SH relaxing.
1553 * ld-empic/empic.exp: If $CC does not exist, call untested rather
1558 * ld-undefined/undefined.exp: If $CC does not exist, mark the
1559 tests as untested rather than unresolved. Clear ELF xfails for
1560 mips*, not just mips.
1564 * ld-undefined/undefined.exp: Add setup_xfail for sh-*-* for
1565 undefined line test.
1569 * ld-undefined/undefined.exp: New test, to check reporting of
1571 * ld-undefined/undefined.c: New file.
1575 * ld-versados/versados.exp: If a test fails, report it correctly:
1576 don't try to run the next test, and don't report a pass as well as
1581 * versados/(t1,t2).ld: End in newlines.
1585 * lib/ld.exp (default_ld_compile): If cc argument is multiple
1586 words, use only the first when trying to verify the availability
1591 * ld-scripts/defined.t: Mention .data and .bss explicitly.
1595 * ld-bootstrap/bootstrap.exp: If not in the ld build directory,
1596 call untested for each test, rather than ignoring it. If one test
1597 fails, go on to the next one instead of returning.
1598 * ld-cdtest/cdtest.exp: If compilations fail, mark tests as
1600 * ld-empic/empic.exp: Likewise. Also, always pass the same test
1601 name to pass or fail.
1602 * ld-shared/shared.exp: Likewise. Also, always run all tests.
1603 * ld-scripts/defined.exp: If as or nm fail, mark test as
1604 unresolved. Always pass the same test name to pass or fail.
1605 * ld-scripts/script.exp: Likewise.
1606 * ld-scripts/sizeof.exp: Likewise.
1610 * ld-scripts/sizeof.exp: New test, based on bug report from
1612 * ld-scripts/sizeof.s: New file.
1613 * ld-scripts/sizeof.t: New file.
1617 * lib/ld.exp: Use [which $ld] rather than [file exists $ld] to see
1618 if the linker exists.
1622 * lib/ld.exp (prune_system_crud): Define if not already defined,
1623 in case the user isn't using the newest DejaGnu version that we
1624 haven't released to the net yet.
1628 * config/default.exp: Define objdump if it is not defined.
1629 * ld-empic/*: New tests to test -membedded-pic code.
1633 * ld-bootstrap/bootstrap.exp: Pass cmp output through
1635 * ld-cdtest/cdtest.exp: Pass diff output through
1637 * ld-shared/shared.exp: Likewise.
1639 * config/default.exp: Remove unused and useless proc ld_load.
1643 * lib/ld.exp (default_ld_compile): Remove the output file before
1646 * ld-shared/shared.exp: Move common test code into a procedure.
1647 Add tests for compiling the non shared code PIC.
1648 * ld-shared/main.c (main): Call main_called, and print the result.
1649 * ld-shared/shared.dat: Adjust accordingly.
1653 * ld-shared: New directory, with new files to test generating ELF
1656 * lib/ld.exp (default_ld_compile): If the compilation worked, but
1657 no object file was created, check to see if the compiler foolishly
1658 ignored the -o switch when compiling, and move the resulting
1663 * VMS does not permits `.' in directory names. Renamed
1664 ld.bootstrap to ld-bootstrap, ld.cdtest to ld-cdtest, and
1665 ld.scripts to ld-scripts.
1669 * config/default.exp: Set variables as and nm. Create tmpdir if
1670 it does not already exist.
1671 * ld.bootstrap/bootstrap.exp: Don't create tmpdir here.
1672 * ld.cdtest/cdtest.exp: Likewise.
1673 * ld.scripts/defined.exp: Likewise. Also, don't set as and nm
1674 here. Change perror for no variables found to fail.
1675 * ld.scripts/script.exp: New test.
1676 * ld.scripts/script.t, ld.scripts/script.s: New files.
1680 * ld.scripts: New directory.
1681 * ld.scripts/defined.exp, ld.scripts/defined.s: New files.
1682 * ld.scripts/defined.t: New file.
1683 * lib/ld.exp (default_ld_simple_link): New function.
1684 (default_ld_assemble, default_ld_nm): New functions.
1685 * config/default.exp: Rename from unix-ld.exp.
1686 (ld_simple_link, ld_assemble, ld_nm): New functions.
1688 * config/unix-ld.exp: Set ld using findfile.
1689 * lib/ld.exp (default_ld_relocate): Return a value. Change format
1691 (default_ld_compile): Likewise.
1692 (default_ld_link): Likewise. Also, don't include $BFDLIB and
1694 * ld.bootstrap/bootstrap.exp: Rewrite.
1695 * ld.cdtest/cdtest.exp: Rewrite.
1696 * ld.cdtest/cdtest-foo.cc: Update from top level ld directory.
1697 * ld.cdtest/cdtest-foo.h: Likewise.
1698 * ld.cdtest/cdtest-main.cc: Likewise.
1702 * ld.cdtest/cdtest.exp: Don't look for $result before it's
1707 * ld.bootstrap/bootstrap.exp, lib/ld.exp: Replace error proc
1708 calls with perror calls.
1712 * ld.cdtest/cdtest-bar.cc: Renamed from cdtest-func.cc.
1713 * ld.cdtest/cdtest.exp: Adjusted.
1717 * lib/ld.exp (simple_diff): Indicate failure if files have
1718 different numbers of lines. Don't muck with $differences to avoid
1719 indicating a pass, just return.
1721 * ld.cdtest/{cdtest-foo.h,cdtest-foo.cc,cdtest-main.cc}:
1722 Fix test case to be valid ANSI C++. Don't require use of header
1723 files, so "../gcc/xgcc -B../gcc/" can be used for CXX.
1724 * ld.cdtest/cdtest.exp: Combine "rm" lines. Add some
1725 commentary on things that are still broken with this test case.
1729 * ld.cdtest/cdtest.exp: Added CXXFLAGS to compile stage.
1733 * lib/ld.exp: add compiler and linker support
1734 * config/unix-ld.exp: add compiler and linker support
1735 * ld.bootstrap/bootstrap.exp: fixed to do partial links
1736 * ld.cdtest/cdtest.exp: constructor/destructor testscase
1740 * lib/ld.exp: new file
1741 * config/unix-ld.exp: new file
1742 * ld.bootstrap/bootstrap.exp: new file