3 * ld-srec/srec.exp (run_srec_test): Remove -fgnu-linker, since GCC
4 3.4 does not support it.
8 * ld-mips-elf/reloc-1[ab].s: New source files.
9 * ld-mips-elf/reloc-1-{n32,n64,rel}.d: New tests.
10 * ld-mips-elf/reloc-2[ab].s: New source files.
11 * ld-mips-elf/reloc-2.{d,ld}: New test.
12 * ld-mips-elf/reloc-3[ab].s: New source files.
13 * ld-mips-elf/reloc-3-{r,srec}.d: New tests.
14 * ld-mips-elf/mips-elf.exp: Run them.
18 * ld-mips-elf/elf-rel-xgot-n32.d: Fix offset for "lw $5,dl1+34($5)".
19 * ld-mips-elf/elf-rel-xgot-n64-linux.d: Likewise.
23 * ld-sh/sh64/shmix-1.s: Add align to match data alignment.
24 * ld-sh/sh64/shmix-3.s: Likewise.
25 * ld-sh/sh64/mix1.sd: Update.
26 * ld-sh/sh64/mix1.xd: Likewise.
27 * ld-sh/sh64/mix1-noexp.sd: Likewise.
28 * ld-sh/sh64/mix2.sd: Likewise.
29 * ld-sh/sh64/mix2.xd: Likewise.
30 * ld-sh/sh64/mix2-noexp.sd: Likewise.
34 * ld-sh/tlsbin-2.d: Update section alignment.
35 * ld-sh/tlspic-2.d: Likewise.
36 * ld-sh/sh64/abi32.xd: Likewise.
37 * ld-sh/sh64/abi64.xd: Likewise.
38 * ld-sh/sh64/cmpct1.xd: Likewise.
39 * ld-sh/sh64/rel32.xd: Likewise.
40 * ld-sh/sh64/rel64.xd: Likewise.
41 * ld-sh/sh64/shdl32.xd: Likewise.
42 * ld-sh/sh64/shdl64.xd: Likewise.
46 * ld-powerpc/tlsexe32.d: Update for changed symbols from objdump.
47 * ld-powerpc/tlsso32.d: Likewise.
51 * ld-undefined/undefined.exp: Mark as xfail for m6811 and m6812
52 due to elf/Dwarf2 binutils limitation.
56 * ld-elfvers/vers.exp (test_ldfail): Add "-Wl," to pass the
57 linker option from gcc.
61 * ld-powerpc/tlsexetoc.d: Correct.
62 * ld-powerpc/tlstoc.d: Correct.
66 * ld-mmix/greg-14.d, ld-mmix/greg-5.d, ld-mmix/pushja1b.d,
67 ld-mmix/pushja1f.d, ld-mmix/pushja7b.d, ld-mmix/pushja7f.d: Pass
68 --no-pushj-stubs to the assembler.
69 * ld-mmix/pushjs2b.d, ld-mmix/greg-14s.d, ld-mmix/pushjs1.d,
70 ld-mmix/greg-5s.d, ld-mmix/pushjs3b.d, ld-mmix/pushja1f-s.d,
71 ld-mmix/pushjs1m.d, ld-mmix/pushja7b-s.d, ld-mmix/pushja7f-s.d,
72 ld-mmix/pushja1b-s.d, ld-mmix/pushjs2.d, ld-mmix/pushjs3.d,
73 ld-mmix/pushjs4b.d, ld-mmix/pushjs4.d, ld-mmix/pushjs1bm.d,
74 ld-mmix/pushjs1b.d, ld-mmix/pushjs2m.d, ld-mmix/pushjs1r.d,
75 ld-mmix/pushjs3m.d, ld-mmix/pushjs2bm.d, ld-mmix/pushjs4m.d,
76 ld-mmix/pushjs3bm.d, ld-mmix/pushjs2r.d, ld-mmix/pushjs4bm.d,
77 ld-mmix/pushjs3r.d, ld-mmix/pushjs4r.d: New tests.
81 * ld-sh/sh64/rd-sh64.exp: If the test matches *-dso.d, copy
82 the output of linker to the file tmpdir/*-dso.so.
83 * ld-sh/sh64/stobin-0-dso.d: New.
84 * ld-sh/sh64/stobin-1.d: New.
85 * ld-sh/sh64/stobin.s: New.
86 * ld-sh/sh64/stolib.s: New.
90 * ld-mips-elf/multi-got-1.d (RELSZ): Don't include the size of the
95 * ld-sh/rd-sh.exp (LDFLAGS): Define appropriately for each
97 * ld-sh/sh.exp: Don't do relaxing test for sh64*-*-* and
99 * ld-sh/sh64/relax.exp (emul32): Set to shelf32_nbsd for netbsd.
100 * ld-sh/sh64/relfail.exp: Set parameters for netbsd.
101 * ld-sh/sh64/sh64.exp: Skip this for netbsd. Trim the section
102 numbers for crangerel1 and crengerel2 tests.
103 * ld-sh/sh64/abi32.sd: Update.
104 * ld-sh/sh64/abi32.xd: Likewise.
105 * ld-sh/sh64/abi64.sd: Likewise.
106 * ld-sh/sh64/abi64.xd: Likewise.
107 * ld-sh/sh64/abixx-noexp.sd: Likewise.
108 * ld-sh/sh64/cmpct1.sd: Likewise.
109 * ld-sh/sh64/cmpct1.xd: Likewise.
110 * ld-sh/sh64/crange1.rd: Likewise.
111 * ld-sh/sh64/crange2.rd: Likewise.
112 * ld-sh/sh64/crange3-cmpct.rd: Likewise.
113 * ld-sh/sh64/crange3-media.rd: Likewise.
114 * ld-sh/sh64/crange3.rd: Likewise.
115 * ld-sh/sh64/crangerel1.rd: Likewise.
116 * ld-sh/sh64/crangerel2.rd: Likewise.
117 * ld-sh/sh64/dlsection.sd: Likewise.
118 * ld-sh/sh64/endian.sbd: Likewise.
119 * ld-sh/sh64/endian.sld: Likewise.
120 * ld-sh/sh64/gotplt.d: Likewise.
121 * ld-sh/sh64/init-cmpct.d: Likewise.
122 * ld-sh/sh64/init-media.d: Likewise.
123 * ld-sh/sh64/init.s: Align functions.
124 * ld-sh/sh64/init64.d: Update.
125 * ld-sh/sh64/mix1-noexp.sd: Likewise.
126 * ld-sh/sh64/mix1.sd: Likewise.
127 * ld-sh/sh64/mix1.xd: Likewise.
128 * ld-sh/sh64/mix2-noexp.sd: Likewise.
129 * ld-sh/sh64/mix2.sd: Likewise.
130 * ld-sh/sh64/mix2.xd:Likewise.
131 * ld-sh/sh64/rel32.xd: Likewise.
132 * ld-sh/sh64/rel64.xd: Likewise.
133 * ld-sh/sh64/reldl32.rd: Likewise.
134 * ld-sh/sh64/reldl64.rd: Likewise.
135 * ld-sh/sh64/shdl32.xd: Update.
136 * ld-sh/sh64/shdl64.sd: Likewise.
137 * ld-sh/sh64/shdl64.xd: Likewise.
138 * ld-sh/shared-1.d: Add -z nocombreloc to ld option. Update.
139 * ld-sh/sub2l-1.d: Make file format match with elf32-sh.*.
140 * ld-sh/weak1.d: Likewise.
144 * ld-scripts/defined3.d, ld-scripts/defined3.t: New test.
145 * ld-scripts/defined.exp: Run defined3.
149 * ld-scripts/defined2.d, ld-scripts/defined2.t: New test.
150 * ld-scripts/defined.exp: Run defined2.
154 * ld-elfvsb/elfvsb.exp: xfail non-pic shared library tests for
155 non 64-bit hppa*-*-linux* targets.
156 * ld-elfvsb/main.c (main_visibility_check): Cast value returned by
157 visibility_funptr () to a function pointer.
158 * ld-shared/shared.exp: xfail shared (non PIC), shared (non PIC, load
159 offset), and shared (PIC main, non PIC so) tests for non 64-bit
160 hppa*-*-linux* targets.
164 * ld-checks/checks.exp (section_check): Remove ia64-*-elf*.
168 * ld-checks/checks.exp (section_check): Skip ia64-*-* instead
173 * ld-ia64/ia64.exp: Remove -melf64_ia64.
175 * ld-ia64/tlsbin.dd: Remove -melf64_ia64. Match elf..-ia64-.*
176 instead of elf64-ia64-little.
177 * ld-ia64/tlsbin.rd: Likewise.
178 * ld-ia64/tlsbin.sd: Likewise.
179 * ld-ia64/tlsbin.td: Likewise.
180 * ld-ia64/tlsg.sd: Likewise.
181 * ld-ia64/tlspic.dd: Likewise.
182 * ld-ia64/tlspic.rd: Likewise.
183 * ld-ia64/tlspic.sd: Likewise.
184 * ld-ia64/tlspic.td: Likewise.
188 * ld-mips-elf/mips-elf-flags.exp: Add tests for combinations
193 * lib/ld-lib.exp (proc is_elf64): New.
195 * ld-scripts/phdrs.exp: Use is_elf_format and is_elf64.
199 * ld-discard/exit.s: Correct .text.exit attributes.
200 * ld-discard/extern.s: Likewise.
201 * ld-discard/static.s: Likewise.
205 * ld-mips-elf/relax-jalr-n32.d: Fix little endian test failure.
206 * ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
207 * ld-mips-elf/relax-jalr-n64.d: Likewise.
208 * ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
212 * ld-mmix/bpo-1.d, ld-mmix/bpo-10.d, ld-mmix/bpo-11.d,
213 ld-mmix/bpo-14.d, ld-mmix/bpo-16.d, ld-mmix/bpo-17.d,
214 ld-mmix/bpo-18.d, ld-mmix/bpo-19.d, ld-mmix/bpo-2.d,
215 ld-mmix/bpo-22.d, ld-mmix/bpo-3.d, ld-mmix/bpo-4.d,
216 ld-mmix/bpo-5.d, ld-mmix/bpo-6.d, ld-mmix/bpo-9.d,
217 ld-mmix/greg-19.d, ld-mmix/loc1.d, ld-mmix/loc2.d, ld-mmix/loc3.d,
218 ld-mmix/loc4.d, ld-mmix/loc6.d, ld-mmix/local12.d,
219 ld-mmix/locdo-1.d, ld-mmix/loct-1.d, ld-mmix/locto-1.d: Adjust for
224 * ld-elf/merge2.s: New.
225 * ld-elf/merge2.d: New.
229 * ld-mmix/bpo-9.d, ld-mmix/bpo-10.d, ld-mmix/bpo-11.d: Adjust for
230 recent objdump "Contents of ..." change.
234 * ld-sh/shared-2.d, ld-sh/textrel1.s, ld-sh/textrel2.s: New test.
238 * ld-d10v/reloc-001.d: Adjust for objdump -d change.
239 * ld-d10v/reloc-002.d: Likewise.
240 * ld-d10v/reloc-005.d: Likewise.
241 * ld-d10v/reloc-006.d: Likewise.
242 * ld-d10v/reloc-009.d: Likewise.
243 * ld-d10v/reloc-010.d: Likewise.
244 * ld-d10v/reloc-013.d: Likewise.
245 * ld-d10v/reloc-014.d: Likewise.
246 * ld-xstormy16/pcrel.d: Likewise.
250 * ld-elfvsb/elf-offset.ld: Add .rel.toc, .rela.toc and .toc
255 * ld-powerpc/tlsso.r: Update.
256 * ld-powerpc/tlstocso.r: Update.
260 * ld-alpha/tlsbin.dd: Update to account for .eh_frame section.
261 * ld-alpha/tlsbin.rd: Likewise.
262 * ld-alpha/tlsbin.sd: Likewise.
263 * ld-alpha/tlsbinr.dd: Likewise.
264 * ld-alpha/tlsbinr.rd: Likewise.
265 * ld-alpha/tlsbinr.sd: Likewise.
266 * ld-alpha/tlspic.dd: Likewise.
267 * ld-alpha/tlspic.rd: Likewise.
268 * ld-alpha/tlspic.sd: Likewise.
272 * ld-powerpc/tlsexe32.d: Update.
273 * ld-powerpc/tlsso32.d: Update.
277 * ld-powerpc/tlsexe.r: .sbss is NOBITS, not PROGBITS.
278 * ld-powerpc/tlsexetoc.r: Likewise.
279 * ld-powerpc/tlsso.r: Likewise.
280 * ld-powerpc/tlstocso.r: Likewise.
284 * ld-srec/srec.exp: For m6811/m6812 use --defsym to define _.z soft
289 * ld-selective/selective.exp: Skip "ia64-*-*".
291 * ld-srec/srec.exp: Make xfail on "ia64-*-*".
295 * ld-h8300/relax-3{.s,.d,-coff.d}: New test.
296 * ld-h8300/h8300.exp: Run it.
300 * ld-powerpc/powerpc.exp: Dump output .got section rather than .toc.
301 * ld-powerpc/tlsexetoc.g: Update.
302 * ld-powerpc/tlsexetoc.r: Update.
303 * ld-powerpc/tlstoc.g: Update.
304 * ld-powerpc/tlstocso.g: Update.
305 * ld-powerpc/tlstocso.r: Update.
309 * ld-h8300/h8300.exp: Replace loop with explicit list. Run relax.d
310 unconditionally. Run relax-2.d for *-elf targets.
311 * ld-h8300/relax.d: Fix typo.
312 * ld-h8300/relax.s: Add 0x prefixes.
313 * ld-h8300/relad-2.[sd]: New test.
317 * ld-mips-elf/mips-elf.exp: Use is_elf_format.
321 * ld-mips-elf/mips-elf-flags.exp: Use -melf32bsmip for IRIX6.
325 * ld-powerpc/apuinfo.rd: Update.
329 * ld-mips-elf/elf-rel-got-n32.d: Remove special handling for n32 ABI.
330 * ld-mips-elf/elf-rel-xgot-n32.d: Likewise.
334 * ld-cris/locref1.d, ld-cris/locref1.s, ld-cris/locref2.d,
335 ld-cris/locref2.s: New tests.
337 * ld-elfcomm/elfcomm.exp (dump_common1): Use $READELF, not plain
338 readelf as found using default path.
342 * lib/ld-lib.exp (default_ld_simple_link): Trim ld parms before
343 trying to trim ld path.
344 (default_ld_compile): Likewise for cc.
346 * lib/ld-lib.exp (default_ld_simple_link): Trim ld path before
347 looking for gcc match.
348 (default_ld_compile): Likewise for cc.
352 * ld-undefined/undefined.exp (i?86-*-freebsd*): Remove xfail.
356 * ld-powerpc/tlsexetoc.d: Update.
357 * ld-powerpc/tlsso.d: Update.
358 * ld-powerpc/tlstoc.d: Update.
359 * ld-powerpc/tlstocso.d: Update.
360 * ld-powerpc/tlstocso.r: Update.
364 * ld-cris/ldsym1.d: Restrict to cris-*-*elf* and cris-*-*aout*.
365 * ld-cris/noglob1.d: Ditto.
366 * ld-cris/badgotr1.d: Pass --underscore to gas.
370 * ld-mips-elf/elf-rel-got-n64-linux.d: New file.
371 * ld-mips-elf/elf-rel-xgot-n64-linux.d: New file.
372 * ld-mips-elf/mips-elf.exp: Use the new files for Linux.
376 * ld-mips-elf/relax-jalr.s: Fix testsuite breakage.
377 * ld-mips-elf/relax-jalr-n32.d: Likewise.
378 * ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
379 * ld-mips-elf/relax-jalr-n64.d: Likewise.
380 * ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
384 * ld-mips-elf/multi-got-1.d: Adjust addresses.
385 * ld-mips-elf/rel32-n32.d: Likewise.
389 * ld-srec/srec.exp (run_srec_test): Remove powerpc64 xfails, and
390 xfail for hppa duplicated elsewhere.
394 * ld-mips-elf/rel32-n32.d: Force big endian assembly.
395 * ld-mips-elf/rel32-o32.d: Likewise.
396 * ld-mips-elf/rel64.d: Likewise.
400 * ld-elfvsb/elfvsb.exp: Run for powerpc64 too.
401 * ld-powerpc/tls.t: Update.
402 * ld-powerpc/tlsexe.d: Update.
403 * ld-powerpc/tlsexe.r: Update.
404 * ld-powerpc/tlsexetoc.d: Update.
405 * ld-powerpc/tlsexetoc.r: Update.
406 * ld-powerpc/tlsexetoc.t: Update.
407 * ld-powerpc/tlsso.d: Update.
408 * ld-powerpc/tlsso.g: Update.
409 * ld-powerpc/tlsso.r: Update.
410 * ld-powerpc/tlsso.t: Update.
411 * ld-powerpc/tlstocso.d: Update.
412 * ld-powerpc/tlstocso.g: Update.
413 * ld-powerpc/tlstocso.r: Update.
414 * ld-powerpc/tlstocso.t: Update.
418 * ld-discard/extern.d: Updated.
419 * ld-discard/start.d: Likewise.
420 * ld-discard/static.d: Likewise.
424 * ld-elfcomm/elfcomm.exp: Mark tests untested if compiler is
429 * ld-cygwin: New directory.
430 * ld-cygwin/exe-export.exp: New test script. Checks building
431 cygwin executables with an export table.
432 * ld-cygwin/testdll.def: New source file.
433 * ld-cygwin/testexe.def: New source file.
434 * ld-cygwin/testdll.c: New source file.
435 * ld-cygwin/testexe.c: New source file.
439 * config/default.exp: Load tmpdir/libpath.exp.
440 (gcc_ld_flag): Set from $libpath.
444 * ld-elf/elf.exp: Use if_elf_format.
445 * ld-elf/sec64k.exp: Likewise.
446 * ld-elfcomm/elfcomm.exp: Likewise.
447 * lib/ld-lib.exp (is_elf_format): Match hppa*64*-*-hpux*.
451 * ld-mips-elf/mips-elf.exp: Make all NetBSD targets match as elf.
455 * ld-elfvsb/common.c: New file.
456 * ld-elfvsb/elfvsb.exp: Add common.
460 * ld-elfvsb/sh3.c: New file.
461 * ld-elfvsb/test.c: Likewise.
463 * ld-elfvsb/elfvsb.exp: Add new weak hidden symbol tests.
467 * config/default.exp (gcc_ld_flag): New. Make the newly built
468 linker available to gcc.
469 * lib/ld-lib.exp (default_ld_simple_link): Pass $gcc_ld_flag
472 * ld-elfvers/vers.exp: Use "ld_simple_link $CC" to build shared
474 * ld-elfvsb/elfvsb.exp: Likewise.
475 * ld-elfweak/elfweak.exp: Likewise.
476 * ld-shared/shared.exp: Likewise.
478 * ld-elfvers/vers.exp: Use "-Wl,-rpath,." to build shared
480 * ld-elfvsb/elfvsb.exp: Likewise.
482 * ld-elfvsb/elfvsb.exp: Remove xfail for powerpc-*-linux*.
484 * ld-elfweak/elfweak.exp: Use PIC for shared libraries.
488 * ld-m68hc11/link-hcs12.d: New test.
489 * ld-m68hc11/link-hcs12.s: New file.
490 * ld-m68hc11/link-hc12.s: New file.
494 * ld-elfweak/elfweak.exp: Fix typo.
498 * ld-elfvers/vers.exp: Run on sh[34]*-*-linux*.
499 * ld-elfvsb/elfvsb.exp: Likewise.
500 * ld-elfweak/elfweak.exp: Likewise.
504 * ld-mmix/b-fixo2.d, ld-mmix/bpo-18.d, ld-mmix/bpo-18m.d,
505 ld-mmix/loc4.d, ld-mmix/loc4m.d, ld-mmix/loc6.d, ld-mmix/loc6m.d,
506 ld-mmix/locdo-1.d, ld-mmix/sec-1.d, ld-mmix/sec-2.d,
507 ld-mmix/sec-3.d, ld-mmix/sec-4.d, ld-mmix/sec-5.d,
508 ld-mmix/sec-7m.d, ld-mmix/sec-8m.d, ld-mmix/spec802.d,
509 ld-mmix/spec803.d, ld-mmix/spec804.d, ld-mmix/spec805.d,
510 ld-mmix/spec806.d, ld-mmix/spec807.d, ld-mmix/spec808.d: Tweak for
511 objdump no longer truncating dump addresses.
515 * ld-elfvsb/elf-offset.ld: Add .rel.eh_frame and .rela.eh_frame
517 * ld-elfvsb/elfvsb.exp (visibility_run): Add setup_xfails for s390x.
518 * ld-selective/selective.exp: Disable for s390 and s390x.
519 * ld-shared/elf-offset.ld: Add .rel.eh_frame and .rela.eh_frame
521 * ld-shared/shared.exp (shared_test): Add setup_xfails for s390x.
522 * ld-undefined/undefined.exp (checkund): Remove setup_xfail for s390x.
526 * ld-elfvers/vers.exp: Add vers27d4 and vers27d5 to test
527 versioned reference for hidden symbol.
529 * ld-elfvers/vers27d4.dsym: New file.
530 * ld-elfvers/vers27d4.ver: Likewise.
534 * ld-elfvers/vers27d3.c (__start): New.
539 * ld-elfvers/vers.exp (build_binary): Support build exeutable.
540 (build_binary): Renamed from ...
541 (build_vers_lib): This.
542 (build_vers_lib_no_pic): Updated.
543 (build_vers_lib_pic): Likewise.
544 Add vers27d1, vers27d2 and vers27d3 to test versioned
545 definition for hidden symbol referenced by a DSO.
547 * ld-elfvers/vers27d.dsym: New file.
548 * ld-elfvers/vers27d.sym: Likewise.
549 * ld-elfvers/vers27d.ver: Likewise.
550 * ld-elfvers/vers27d1.c: Likewise.
551 * ld-elfvers/vers27d2.c: Likewise.
552 * ld-elfvers/vers27d3.c: Likewise.
556 * ld-elfvsb/elfvsb.exp: Run dump tests even when cross
561 * config/default.exp (gcc_gas_flags): Force ABI to n32 on
563 * ld-elf/merge.d: Xfail on mips64*-linux-gnu*.
564 * ld-mips-elf/mips-elf-flags.exp (ldemul): Set to o32-compatible
565 on mips-sgi-irix6*, mips64-linux-gnu and mips64el-linux-gnu.
566 (good_combination, bad_combination): Use it.
567 Add -32 or -mabi=o64 wherever the ABI was formerly implied.
571 * ld-elfvers/vers.exp (objdump_versionstuff): Support comment
572 in expected version file.
574 * ld-elfvers/vers25b.c: Add a line of comment.
575 * ld-elfvers/vers25b.dsym: Likwise.
576 * ld-elfvers/vers25b.ver: Likwise.
577 * ld-elfvers/vers26b.dsym: Likwise.
578 * ld-elfvers/vers26b.ver: Likwise.
579 * ld-elfvers/vers27b.dsym: Likwise.
580 * ld-elfvers/vers27b.ver: Likwise.
581 * ld-elfvers/vers27c.c: Likwise.
582 * ld-elfvers/vers27c.dsym: Likwise.
583 * ld-elfvers/vers27c.ver: Likwise.
587 * ld-elfvsb/main.c: Updated.
588 * ld-elfvsb/sh1.c: Likewise.
592 * ld-elfvers/vers18.dsym: Updated for weak definiton change.
593 * ld-elfvers/vers18.ver: Likewise.
594 * ld-elfvers/vers19.ver: Likewise.
595 * ld-elfweak/dsowdata.dsym: Likewise.
596 * ld-elfweak/elfweak.exp: Likewise.
597 * ld-elfweak/weakdata.dsym: Likewise.
599 * ld-elfweak/elfweak.exp: Remove xfail.
603 * ld-mips-elf/multi-got-1.d: Force into big-endian mode.
604 Turn relocation offsets into regexps.
608 * ld-elfvers/vers.exp: Add vers27a, vers27b, vers27c1 and
609 vers27c2 to test versioned definition vs. hidden definition in
612 * ld-elfvers/vers27a.c: New file.
613 * ld-elfvers/vers27a.dsym: Likewise.
614 * ld-elfvers/vers27a.map: Likewise.
615 * ld-elfvers/vers27a.ver: Likewise.
616 * ld-elfvers/vers27b.c: Likewise.
618 * ld-elfvers/vers27b.dsym: New empty file.
619 * ld-elfvers/vers27b.ver: Likwise.
620 * ld-elfvers/vers27c.c: Likwise.
621 * ld-elfvers/vers27c.dsym: Likwise.
622 * ld-elfvers/vers27c.ver: Likwise.
626 * ld-xstormy16: New directory.
627 * ld-xstormy16/xstormy16.exp: New test script.
628 * ld-xstormy16/pcrel.s: Test assembler source file.
629 * ld-xstormy16/external.s: Test assembler source file.
630 * ld-xstormy16/pcrel.d: Test expected disassembly.
634 * ld-elfvers/vers.exp (build_exec): Disable vers26b3 on x86-64-linux.
638 * ld-ia64/tlsbin.dd: Updated.
639 * ld-ia64/tlsbin.rd: Likewise.
640 * ld-ia64/tlsbin.sd: Likewise.
641 * ld-ia64/tlsbin.td: Likewise.
642 * ld-ia64/tlspic.rd: Likewise.
643 * ld-ia64/tlspic.sd: Likewise.
644 * ld-ia64/tlspic.td: Likewise.
648 * ld-selective/3.cc (start): New function.
649 * ld-selective/4.cc: Likewise.
650 * ld-selective/5.cc: Likewise.
654 * ld-elfvers/vers.exp (picflag): Set PIC flag for compiler.
655 (build_vers_lib): Support PIC.
656 (build_vers_lib_no_pic): New. Change all calls to build_vers_lib
657 to build_vers_lib_no_pic.
658 (build_vers_lib_pic): New.
659 Add tests vers26a, vers26b1, vers26b2 and vers26b3 for versioned
660 definition vs. normal definition in different files.
662 * ld-elfvers/vers26a.c: New file.
663 * ld-elfvers/vers26a.dsym: Likewise.
664 * ld-elfvers/vers26a.map: Likewise.
665 * ld-elfvers/vers26a.ver: Likewise.
666 * ld-elfvers/vers26b.c: Likewise.
668 * ld-elfvers/vers26b.dsym: New empty file.
669 * ld-elfvers/vers26b.ver: Likewise.
673 * ld-elfvsb/elfvsb.dat: Updated.
674 * ld-elfvsb/elfvsb.exp: Likewise.
675 * ld-elfvsb/main.c: Likewise.
676 * ld-elfvsb/sh1.c: Likewise.
677 * ld-elfvsb/sh2.c: Likewise.
681 * ld-m68hc11/bug-3331.d: New test.
682 * ld-m68hc11/bug-3331.s: New file.
687 * lib/ld-lib.exp (big_or_little_endian): Also check for -mb and -ml.
691 * ld-elfcomm/elfcomm.exp: Allow symbols to have '_' prepended.
695 * ld-sh/tlsbin-1.d, ld-sh/tlsbin-2.d, ld-sh/tlsbin-3.d,
696 ld-sh/tlstpoff-1.d, ld-sh/tlstpoff-2.d: Update for removing
697 unnecessary TLS relocs.
701 * ld-sh/sh64/crange3-cmpct.rd (Machine): Change to refer to SuperH.
702 * ld-sh/sh64/crange3-media.rd (Machine): Likewise.
706 * ld-elfvers/vers.exp (objdump_dynsymstuff): Support empty
708 (objdump_versionstuff): Likewise.
709 Add tests vers25a, vers25b1 and vers25b2 for versioned
710 definition vs. normal definition in different files.
712 * ld-elfvers/vers25a.c: New file.
713 * ld-elfvers/vers25a.dsym: Likewise.
714 * ld-elfvers/vers25a.map: Likewise.
715 * ld-elfvers/vers25a.ver: Likewise.
717 * ld-elfvers/vers25b.c: New empty file.
718 * ld-elfvers/vers25b.dsym: Likewise.
719 * ld-elfvers/vers25b.ver: Likewise.
723 * ld-elfcomm/elfcomm.exp: Support 64bit targets.
727 * ld-m68hc11/far-hc11.s: New file.
728 * ld-m68hc11/far-hc11.d: New test for HC11 trampoline generation.
729 * ld-m68hc11/far-hc12.s: New file.
730 * ld-m68hc11/far-hc12.d: New test for HC12 trampoline generation.
731 * ld-m68hc11/far-hc12.ld: New file.
735 * ld-elfcom/elfcom.exp: Fix a typo.
739 * ld-elfcom: New directory.
740 * ld-elfcom/elfcom.exp: New file: Test alignment of common symbols
742 * ld-elfcom/common1a.c: New file: Test source code.
743 * ld-elfcom/common1b.c: New file: Test source code.
747 * ld-sh/sh64/crange3-cmpct.rd: Replace occurrances of 'Hitachi'
749 * ld-sh/sh64/crange3-media.rd: Likewise.
753 * ld-discard/extern.s, ld-discard/start.s, ld-discard/static.s,
754 ld-sh/refdbg.s: Add leading 0 to .debug_info to prevent parsing it
759 * ld-mips-elf/elf-rel-got-n32.d,
760 ld-mips-elf/elf-rel-got-n64.d, ld-mips-elf/elf-rel-xgot-n32.d,
761 ld-mips-elf/elf-rel-xgot-n64.d: New.
762 * ld-mips-elf/mips-elf.exp (hasn32): Define as condition for
767 * ld-m68hc11/bug-1417.d: Update to take into account jsr->bsr relax.
771 * ld-xtensa/coalesce.exp: Skip if target is not xtensa-*-*.
772 * ld-xtensa/lcall.exp: Likewise.
776 * ld-elf/merge.d: xfail xtensa-*-*.
777 * ld-scripts/crossref.exp: Add -mtext-section-literals to CFLAGS
779 * ld-srec/srec.exp: Add -no-relax flag for Xtensa targets.
780 * ld-xtensa/coalesce1.s: New file.
781 * ld-xtensa/coalesce2.s: Likewise.
782 * ld-xtensa/coalesce.exp: Likewise.
783 * ld-xtensa/coalesce.t: Likewise.
784 * ld-xtensa/lcall1.s: Likewise.
785 * ld-xtensa/lcall2.s: Likewise.
786 * ld-xtensa/lcall.exp: Likewise.
787 * ld-xtensa/lcall.t: Likewise.
791 * ld-mips-elf/mips-elf.exp: Added...
792 * ld-mips-elf/relax-jalr.s, ld-mips-elf/relax-jalr-n32.d,
793 ld-mips-elf/relax-jalr-n32-shared.d, ld-mips-elf/relax-jalr-n64.d,
794 ld-mips-elf/relax-jalr-n64-shared.d: New tests.
798 * ld-mips-elf/mips-elf.exp (linux_gnu): New variable. Add:
799 * ld-mips-elf/rel32-o32.d, ld-mips-elf/rel32-n32.d,
800 ld-mips-elf/rel64.d, ld-mips-elf/rel32.s, ld-mips-elf/rel64.s: New
805 * ld-powerpc/tlsso.r: Adjust for corrected zero symbol index relocs.
806 * ld-powerpc/tlsso32.r: Likewise.
810 * ld-powerpc/tlsexe.d: Update for changed handling of invalid LD
812 * ld-powerpc/tlsexe.g: Likewise.
813 * ld-powerpc/tlsexe.r: Likewise.
814 * ld-powerpc/tlsexe.t: Likewise.
816 * ld-powerpc/tls32.s: New file.
817 * ld-powerpc/tlslib32.s: New file.
818 * ld-powerpc/tls32.d: New file.
819 * ld-powerpc/tls32.g: New file.
820 * ld-powerpc/tls32.t: New file.
821 * ld-powerpc/tlsexe32.d: New file.
822 * ld-powerpc/tlsexe32.g: New file.
823 * ld-powerpc/tlsexe32.r: New file.
824 * ld-powerpc/tlsexe32.t: New file.
825 * ld-powerpc/tlsso32.d: New file.
826 * ld-powerpc/tlsso32.g: New file.
827 * ld-powerpc/tlsso32.r: New file.
828 * ld-powerpc/tlsso32.t: New file.
829 * ld-powerpc/powerpc.exp: Run new tests.
833 * ld-powerpc/tlsexe.g: Update for 2003-02-14 elf64-ppc.c change.
837 * ld-shared/shared.exp: Run on s390*-*-linux* and x86_64-*-linux* too.
838 xfail tests linking non-pic code into shared libs on x86_64-*-linux*.
839 * ld-elfvsb/elfvsb.exp: Likewise.
840 * ld-elfvers/vers.exp: Likewise. Add vers24a, vers24b and vers24c
842 * ld-elfvers/vers3.ver: Allow VERS_2.0 to come before GLIBC_*
844 * ld-elfvers/vers19.ver: Likewise.
845 * ld-elfvers/vers24a.c: New test.
846 * ld-elfvers/vers24b.c: New test.
847 * ld-elfvers/vers24c.c: New test.
848 * ld-elfvers/vers24.map: New test.
849 * ld-elfvers/vers24.rd: New test.
850 * lib/ld-lib.exp (run_ld_link_tests): Add optional 7th argument
851 cflags. If source files have .c extension, compile them first.
855 * ld-sh/tlstpoff-1.d: New.
856 * ld-sh/tlstpoff-2.d: New.
857 * ld-sh/tlstpoff1.s: New.
858 * ld-sh/tlstpoff2.s: New.
862 * ld-powerpc/tlslib.s: Give .__tls_get_addr function type.
863 * ld-powerpc/tlsexe.d: Update for changed handling of (invalid) ld var
865 * ld-powerpc/tlsexe.g: Likewise.
866 * ld-powerpc/tlsexe.r: Likewise.
867 * ld-powerpc/tlsexe.t: Likewise.
868 * ld-powerpc/tlsexetoc.d: Likewise.
869 * ld-powerpc/tlsexetoc.g: Likewise.
870 * ld-powerpc/tlsexetoc.r: Likewise.
871 * ld-powerpc/tlsexetoc.t: Likewise.
875 * ld-powerpc/powerpc.exp (supports_ppc64): New.
876 (ppcelftests): Force 32 bit mode.
877 (ppc64elftests): New.
878 * ld-powerpc/tls.d: New.
879 * ld-powerpc/tls.g: New.
880 * ld-powerpc/tls.s: New.
881 * ld-powerpc/tls.t: New.
882 * ld-powerpc/tlsexe.d: New.
883 * ld-powerpc/tlsexe.g: New.
884 * ld-powerpc/tlsexe.r: New.
885 * ld-powerpc/tlsexe.t: New.
886 * ld-powerpc/tlsexetoc.d: New.
887 * ld-powerpc/tlsexetoc.g: New.
888 * ld-powerpc/tlsexetoc.r: New.
889 * ld-powerpc/tlsexetoc.t: New.
890 * ld-powerpc/tlslib.s: New.
891 * ld-powerpc/tlsso.d: New.
892 * ld-powerpc/tlsso.g: New.
893 * ld-powerpc/tlsso.r: New.
894 * ld-powerpc/tlsso.t: New.
895 * ld-powerpc/tlstoc.d: New.
896 * ld-powerpc/tlstoc.g: New.
897 * ld-powerpc/tlstoc.s: New.
898 * ld-powerpc/tlstoc.t: New.
899 * ld-powerpc/tlstocso.d: New.
900 * ld-powerpc/tlstocso.g: New.
901 * ld-powerpc/tlstocso.r: New.
902 * ld-powerpc/tlstocso.t: New.
906 * ld-mips-elf/multi-got-1.d: New.
907 * ld-mips-elf/multi-got-1-1.s: New.
908 * ld-mips-elf/multi-got-1-2.s: New.
909 * ld-mips-elf/mips-elf.exp (elf): mips*-*-irix* is elf.
914 * ld-sparc/sparc.exp: New.
915 * ld-sparc/tlsg32.s: New test.
916 * ld-sparc/tlsg32.sd: Likewise.
917 * ld-sparc/tlsg64.s: Likewise.
918 * ld-sparc/tlsg64.sd: Likewise.
919 * ld-sparc/tlslib.s: Likewise.
920 * ld-sparc/tlsnopic.s: Likewise.
921 * ld-sparc/tlspic.s: Likewise.
922 * ld-sparc/tlssunbin32.dd: Likewise.
923 * ld-sparc/tlssunbin32.rd: Likewise.
924 * ld-sparc/tlssunbin32.s: Likewise.
925 * ld-sparc/tlssunbin32.sd: Likewise.
926 * ld-sparc/tlssunbin32.td: Likewise.
927 * ld-sparc/tlssunbin64.dd: Likewise.
928 * ld-sparc/tlssunbin64.rd: Likewise.
929 * ld-sparc/tlssunbin64.s: Likewise.
930 * ld-sparc/tlssunbin64.sd: Likewise.
931 * ld-sparc/tlssunbin64.td: Likewise.
932 * ld-sparc/tlssunbinpic32.s: Likewise.
933 * ld-sparc/tlssunbinpic64.s: Likewise.
934 * ld-sparc/tlssunnopic32.dd: Likewise.
935 * ld-sparc/tlssunnopic32.rd: Likewise.
936 * ld-sparc/tlssunnopic32.s: Likewise.
937 * ld-sparc/tlssunnopic32.sd: Likewise.
938 * ld-sparc/tlssunnopic64.dd: Likewise.
939 * ld-sparc/tlssunnopic64.rd: Likewise.
940 * ld-sparc/tlssunnopic64.s: Likewise.
941 * ld-sparc/tlssunnopic64.sd: Likewise.
942 * ld-sparc/tlssunpic32.dd: Likewise.
943 * ld-sparc/tlssunpic32.rd: Likewise.
944 * ld-sparc/tlssunpic32.s: Likewise.
945 * ld-sparc/tlssunpic32.sd: Likewise.
946 * ld-sparc/tlssunpic32.td: Likewise.
947 * ld-sparc/tlssunpic64.dd: Likewise.
948 * ld-sparc/tlssunpic64.rd: Likewise.
949 * ld-sparc/tlssunpic64.s: Likewise.
950 * ld-sparc/tlssunpic64.sd: Likewise.
951 * ld-sparc/tlssunpic64.td: Likewise.
955 * ld-s390/s390.exp: New file.
956 * ld-s390/tlsbin_64.dd: New file.
957 * ld-s390/tlsbin_64.rd: New file.
958 * ld-s390/tlsbin_64.s: New file.
959 * ld-s390/tlsbin_64.sd: New file.
960 * ld-s390/tlsbin_64.td: New file.
961 * ld-s390/tlsbin.dd: New file.
962 * ld-s390/tlsbinpic_64.s: New file.
963 * ld-s390/tlsbinpic.s: New file.
964 * ld-s390/tlsbin.rd: New file.
965 * ld-s390/tlsbin.s: New file.
966 * ld-s390/tlsbin.sd: New file.
967 * ld-s390/tlsbin.td: New file.
968 * ld-s390/tlslib_64.s: New file.
969 * ld-s390/tlslib.s: New file.
970 * ld-s390/tlspic1_64.s: New file.
971 * ld-s390/tlspic1.s: New file.
972 * ld-s390/tlspic2_64.s: New file.
973 * ld-s390/tlspic2.s: New file.
974 * ld-s390/tlspic_64.dd: New file.
975 * ld-s390/tlspic_64.rd: New file.
976 * ld-s390/tlspic_64.sd: New file.
977 * ld-s390/tlspic_64.td: New file.
978 * ld-s390/tlspic.dd: New file.
979 * ld-s390/tlspic.rd: New file.
980 * ld-s390/tlspic.sd: New file.
981 * ld-s390/tlspic.td: New file.
985 * ld-alpha/tlsbin.sd: Cope with truncated address in data dumps.
986 * ld-alpha/tlsbin.td: Likewise.
987 * ld-alpha/tlsbinr.sd: Likewise.
991 * ld-alpha/alpha.exp: New.
992 * ld-alpha/align.s: New.
993 * ld-alpha/tlsbin.dd: New.
994 * ld-alpha/tlsbin.rd: New.
995 * ld-alpha/tlsbin.s: New.
996 * ld-alpha/tlsbin.sd: New.
997 * ld-alpha/tlsbin.td: New.
998 * ld-alpha/tlsbinpic.s: New.
999 * ld-alpha/tlsbinr.dd: New.
1000 * ld-alpha/tlsbinr.rd: New.
1001 * ld-alpha/tlsbinr.sd: New.
1002 * ld-alpha/tlsg.s: New.
1003 * ld-alpha/tlsg.sd: New.
1004 * ld-alpha/tlslib.s: New.
1005 * ld-alpha/tlspic.dd: New.
1006 * ld-alpha/tlspic.rd: New.
1007 * ld-alpha/tlspic.sd: New.
1008 * ld-alpha/tlspic.td: New.
1009 * ld-alpha/tlspic1.s: New.
1010 * ld-alpha/tlspic2.s: New.
1014 * ld-srec/srec.exp (run_srec_test): Pass --traditional-format to ld.
1018 * ld-ia64/tlspic1.s: Add tests for IE in shared libraries.
1019 * ld-ia64/tlspic.rd: Adjust.
1020 * ld-ia64/tlspic.dd: Adjust.
1021 * ld-ia64/tlspic.sd: Adjust.
1025 * ld-ia64/ia64.exp: New.
1026 * ld-ia64/tlsbin.dd: New test.
1027 * ld-ia64/tlsbinpic.s: New test.
1028 * ld-ia64/tlsbin.rd: New test.
1029 * ld-ia64/tlsbin.s: New test.
1030 * ld-ia64/tlsbin.sd: New test.
1031 * ld-ia64/tlsbin.td: New test.
1032 * ld-ia64/tlsg.s: New test.
1033 * ld-ia64/tlsg.sd: New test.
1034 * ld-ia64/tlslib.s: New test.
1035 * ld-ia64/tlspic1.s: New test.
1036 * ld-ia64/tlspic2.s: New test.
1037 * ld-ia64/tlspic.dd: New test.
1038 * ld-ia64/tlspic.rd: New test.
1039 * ld-ia64/tlspic.sd: New test.
1040 * ld-ia64/tlspic.td: New test.
1044 * ld-mips-elf/mips-elf-flags.exp: Add -mips4 to a -mgp64 test.
1048 * ld-mips-elf/jr.s: New file.
1049 * ld-mips-elf/mips-elf-flags.exp: New test.
1053 * ld-auto-import: New directory.
1054 * ld-auto-import/auto-import.exp: Test the auto importing direct
1055 from a dll functionality.
1056 * ld-auto-import/client.c: Source code for test.
1057 * ld-auto-import/dll.c: Likewise.
1061 * ld-mips-elf/mips-elf.exp: Remove branch-misc-2 test.
1062 * ld-mips-elf/branch-misc-2.d: Removed.
1066 * lib/ld-lib.exp (is_elf_format): Match NetBSD ELF targets.
1070 * ld-powerpc/powerpc.exp (ppcelftests): Add apuinfo merging
1072 * ld-powerpc/apuinfo1.s: New assembler source file.
1073 * ld-powerpc/apuinfo2.s: New assembler source file.
1074 * ld-powerpc/apuinfo.rd: New expected output file.
1078 Fix PR savannah/1417:
1079 * ld-m68hc11/bug-1417.s: New test.
1080 * ld-m68hc11/bug-1417.d: Likewise.
1084 * ld-i386/tlsnopic.rd: Change NOTYPE to TLS for UND sg* symbols.
1088 * ld-sh/refdbg-0-dso.d: New test.
1089 * ld-sh/refdbg-1.d: Likewise.
1090 * ld-sh/refdbg.s: Likewise.
1091 * ld-sh/refdbglib.s: Likewise.
1095 * ld-elf/elf.exp: Remove sec64k test.
1096 * ld-elf/sec64k.exp: Reinstate.
1100 * ld-elf/elf.exp: Renamed from sec64k.exp. Add test_list loop.
1101 * ld-elf/merge.s: New file.
1102 * ld-elf/merge.d: New file.
1103 * ld-elf/merge.ld: New file.
1107 * ld-scripts/script.exp: Setup for tic4x testcase
1111 * ld-h8300: New directory.
1112 * ld-h8300/h8300.exp: New expect script. Only run tests for h8300
1114 * ld-h8300/relax.s: New assembler source file.
1115 * ld-h8300/relax.d: New expected output file.
1119 * ld-elf/sec64k.exp: New test.
1120 * lib/ld-lib.exp (run_dump_test): Don't prepend "$srcdir/$subdir/"
1121 to a source file starting with "/".
1125 * ld-mmix/local1.d, ld-mmix/local3.d, ld-mmix/local5.d,
1126 ld-mmix/local7.d: Tweak for change in readelf output.
1130 * ld-elfvsb/define.s: Avoid use of @ in .type directive.
1134 * ld-cris/expdyn6.d, ld-cris/weakref2.d, ld-cris/expdyn7.d,
1135 ld-cris/nodyn5.d, ld-cris/expdyn5.d: New tests.
1139 * ld-fastcall/fastcall.exp: Only run tests for PE type x86
1144 * ld-sh/rd-sh.exp: Set asflags_save always.
1148 * ld-fastcall: New directory for testing fastcall support.
1149 * ld-fastcall/export.s: New file for testing fastcall symbol
1151 * ld-fastcall/import.s: Likewise.
1152 * ld-fastcall/fastcall.exp: Likewise.
1156 * ld-sh/rd-sh.exp: Add -isa=SHcompact to ASFLAGS for SH-5.
1157 * ld-sh/tlsbin-1.d: Handle GOT_BIAS appropriately for SH-5.
1158 * ld-sh/tlspic-1.d: Likewise.
1159 * ld-sh/tlspic-2.d: Likewise.
1160 * ld-sh/tlsbin-2.d: Likewise. Make it robust for the symbols
1161 defined by the linker scripts.
1165 * ld-m68hc11/m68hc11.exp: Specific tests for 68HC11/68HC12.
1166 * ld-m68hc11/adj-jump.d: New test for linker relaxation.
1167 * ld-m68hc11/adj-jump.s: Likewise.
1168 * ld-m68hc11/adj-brset.s: Likewise.
1169 * ld-m68hc11/adj-brset.d: Likewise.
1170 * ld-m68hc11/relax-direct.s: Likewise.
1171 * ld-m68hc11/relax-direct.d: Likewise.
1172 * ld-m68hc11/relax-group.s: Likewise.
1173 * ld-m68hc11/relax-group.d: Likewise.
1174 * ld-m68hc11/bug-1403.d: Likewise.
1175 * ld-m68hc11/bug-1403.s: Likewise.
1178 * ld-sh/ld-r-1.d: Disable for sh64*-*-linux*.
1179 * ld-sh/sh64/sh64.exp: Likewise.
1180 * ld-sh/sh.exp: Disable relaxing tests for sh64*-*-linux*.
1181 * ld-sh/sh64/abi32.sd: Adjust expected output to include
1182 sh64*-*-linux* formats too.
1183 * ld-sh/sh64/relax.exp: Add emul32 variable to hold target
1184 emulation, and set it appropriately for sh*-*-linux*.
1185 * ld-sh/sh64/relfail.exp: Add variables to hold target
1186 emulation, output format, start symbol, and whether target
1187 supports 64-bit ABI. Set appropriately for sh*-*-linux*.
1191 * ld-discard/extern.d: Remove $srcdir/$subdir/.
1192 * ld-discard/start.d: Likewise.
1193 * ld-discard/static.d: Likewise.
1194 * ld-linkonce/zeroehl32.d: Likewise.
1195 * ld-selective/keepdot.d: Likewise.
1196 * ld-selective/keepdot0.d: Likewise.
1200 * ld-sh/rd-sh.exp: If the test matches *-dso.d, copy the output
1201 of linker to the file tmpdir/*-dso.so.
1202 * ld-sh/tlsbin.s, ld-sh/tlsbinpic.s, ld-sh/tlslib.s: New.
1203 * ld-sh/tlsbin-0-dso.d: New.
1204 * ld-sh/tlsbin-1.d: New.
1205 * ld-sh/tlsbin-2.d: New.
1206 * ld-sh/tlsbin-3.d: New.
1207 * ld-sh/tlsbin-4.d: New.
1208 * ld-sh/tlspic1.s, ld-sh/tlspic2.s: New.
1209 * ld-sh/tlspic-1.d: New.
1210 * ld-sh/tlspic-2.d: New.
1211 * ld-sh/tlspic-3.d: New.
1212 * ld-sh/tlspic-4.d: New.
1216 * ld-i386/combreloc.s: New test.
1217 * ld-i386/combreloc.d: New test.
1218 * ld-i386/i386.exp (i386tests): Add it.
1222 * ld-i386/i386.exp (reloc): Turn off combreloc.
1223 * ld-i386/reloc.d: Likewise.
1224 * ld-powerpc/powerpc.exp: Likewise.
1225 * ld-powerpc/reloc.d: Likewise.
1229 * ld-elfvers/vers21.c (_old_foobar): Initialized to -1 for gcc
1234 * ld-mips-elf/branch-misc-1.d: Link at 0x500000 and use -N, to be
1235 more compatible with non-embedded targets.
1236 * ld-mips-elf/branch-misc-2.d: Likewise.
1238 * ld-mips-elf/mips-elf.exp: Clean up some comments about embedded
1240 (elf): New variable, to control whether generic ELF tests are run.
1241 (embedded_elf): New variable, to control whether ELF tests
1242 requiring embedded PIC or embedded relocs are run.
1246 * ld-sh/sh64/gotplt.d, ld-sh/sh64/gotplt.map,
1247 ld-sh/sh64/gotplt.s: New test.
1250 * ld-sh/sh64/cmpct1.sd : Fix linked file name.
1251 * ld-sh/sh64/crange3.dd: Likewise.
1255 * ld-i386/i386.exp: Add tlsindntpoff test.
1256 * ld-i386/tlsindntpoff.s: New test.
1257 * ld-i386/tlsindntpoff.dd: New test.
1261 * ld-x86-64/tlspic1.s: Change TLSGD sequences.
1262 * ld-x86-64/tlsbinpic.s: Likewise.
1263 * ld-x86-64/tlspic.dd: Adjust.
1267 * ld-i386/i386.exp: Add tlsg test.
1268 * ld-i386/tlsg.s: New test.
1269 * ld-i386/tlsg.sd: New test.
1270 * ld-i386/tlsbin.dd: Change LD into LD -> LE in comments.
1271 * ld-i386/tlsbinpic.s: Likewise.
1272 * ld-x86-64/x86-64.exp: Add tlsg test.
1273 * ld-x86-64/tlsg.s: New test.
1274 * ld-x86-64/tlsg.sd: New test.
1275 * ld-x86-64/tlsbin.dd: Change LD into LD -> LE in comments.
1276 * ld-x86-64/tlsbinpic.s: Likewise.
1280 * ld-powerpc/powerpc.exp: Restrict to 32 bit ELF.
1284 * ld-powerpc/reloc.s, ld-powerpc/reloc.d: New.
1285 * ld-powerpc/powerpc.exp: New.
1287 * ld-i386/reloc.s, ld-i386/reloc.d: New.
1288 * ld-i386/i386.exp: Run new test.
1292 * lib/ld-lib.exp (run_ld_link_tests): Add.
1293 * ld-sh/sh64/sh64.exp (run_ld_link_tests, regexp_diff,
1294 file_contents): Remove.
1295 (sh64tests): Add 6th field to the tests array.
1296 * ld-i386/i386.exp (run_ld_link_tests): Remove.
1297 * ld-x86-64/x86-64.exp: New.
1298 * ld-x86-64/tlsbin.dd: New test.
1299 * ld-x86-64/tlsbinpic.s: New test.
1300 * ld-x86-64/tlsbin.rd: New test.
1301 * ld-x86-64/tlsbin.s: New test.
1302 * ld-x86-64/tlsbin.sd: New test.
1303 * ld-x86-64/tlsbin.td: New test.
1304 * ld-x86-64/tlslib.s: New test.
1305 * ld-x86-64/tlspic1.s: New test.
1306 * ld-x86-64/tlspic2.s: New test.
1307 * ld-x86-64/tlspic.dd: New test.
1308 * ld-x86-64/tlspic.rd: New test.
1309 * ld-x86-64/tlspic.sd: New test.
1310 * ld-x86-64/tlspic.td: New test.
1314 * ld-undefined/undefined.exp: Adjust function test.
1318 * ld-i386/i386.exp: Only run tests on ELF targets.
1322 * ld-i386/i386.exp: New.
1323 * ld-i386/tlsbin.dd: New test.
1324 * ld-i386/tlsbinpic.s: New test.
1325 * ld-i386/tlsbin.rd: New test.
1326 * ld-i386/tlsbin.s: New test.
1327 * ld-i386/tlsbin.sd: New test.
1328 * ld-i386/tlsbin.td: New test.
1329 * ld-i386/tlslib.s: New test.
1330 * ld-i386/tlsnopic1.s: New test.
1331 * ld-i386/tlsnopic2.s: New test.
1332 * ld-i386/tlsnopic.dd: New test.
1333 * ld-i386/tlsnopic.rd: New test.
1334 * ld-i386/tlsnopic.sd: New test.
1335 * ld-i386/tlspic1.s: New test.
1336 * ld-i386/tlspic2.s: New test.
1337 * ld-i386/tlspic.dd: New test.
1338 * ld-i386/tlspic.rd: New test.
1339 * ld-i386/tlspic.sd: New test.
1340 * ld-i386/tlspic.td: New test.
1344 * ld-mips-elf/branch-misc-1.d: New file.
1345 * ld-mips-elf/branch-misc-2.d: New file.
1346 * ld-mips-elf/mips-elf.exp: Run new tests.
1350 * ld-sh/sh64/cmpct1.xd: Adjust for lack of abs section sym.
1351 * ld-sh/sh64/crange3-cmpct.rd: Likewise.
1352 * ld-sh/sh64/crange3-media.rd: Likewise.
1353 * ld-sh/sh64/crange3.rd: Likewise.
1357 * ld-mmix/bpo-10.d: Tweak for change in symbols handling.
1358 * ld-mmix/bpo-11.d: Ditto.
1360 * ld-mmix/b-nosym.d: Adjust for changed output for absence of
1363 * ld-mmix/sec-7m.d: Rename tested section from .debug_info to
1365 * ld-mmix/sec-7a.s, ld-mmix/sec-7b.s, ld-mmix/sec-7c.s,
1366 ld-mmix/sec-7d.s, ld-mmix/sec-7e.s: Ditto.
1370 * ld-discard/discard.exp: xfail m6812.
1371 * ld-scripts/map-address.d: Adjust for extras emitted by pe targets.
1375 * ld-mmix/b-nosym.d: Revert last change.
1379 * ld-mmix/b-nosym.d: Adjust for "no symbols" on stdout.
1383 * ld-sh/sh64/rd-sh64.exp: New framework file.
1384 * ld-sh/sh64/init-cmpct.d, ld-sh/sh64/init-media.d,
1385 ld-sh/sh64/init64.d, ld-sh/sh64/init.s: New tests for
1386 correct setting of ISA bit for init and fini entry-points.
1390 * ld-sh/sh64/sh64.exp: Add dlsection.
1391 * ld-sh/sh64/dlsection-1.s, ld-sh/sh64/dlsection.sd: New.
1395 * ld-discard/discard.exp: xfail targets using generic linker.
1396 * ld-discard/extern.d: Allow "data" to be reduced to a section sym.
1400 * ld-cris/libdso-4.d, ld-cris/undef1.d: New test.
1404 * ld-elfvers/vers.exp: Add vers23c and vers23d.
1406 * ld-elfvers/vers23c.ver: New.
1407 * ld-elfvers/vers23d.dsym: New.
1411 * ld-elfvers/vers.exp: Add vers23.
1413 * ld-elfvers/vers23.c: New.
1414 * ld-elfvers/vers23.dsym: New.
1415 * ld-elfvers/vers23.ver: New.
1416 * ld-elfvers/vers23a.c: New.
1417 * ld-elfvers/vers23a.dsym: New.
1418 * ld-elfvers/vers23a.map: New.
1419 * ld-elfvers/vers23a.sym: New.
1420 * ld-elfvers/vers23a.ver: New.
1421 * ld-elfvers/vers23b.c: New.
1422 * ld-elfvers/vers23b.dsym: New.
1423 * ld-elfvers/vers23b.map: New.
1424 * ld-elfvers/vers23b.ver: New.
1428 * ld-sh/sh64/abi32.xd: Adjust whitespace in elf32 section
1430 * ld-sh/sh64/cmpct1.xd, ld-sh/sh64/mix1.xd, ld-sh/sh64/mix2.xd,
1431 ld-sh/sh64/rel32.xd, ld-sh/sh64/shdl32.xd: Likewise.
1432 * ld-sh/sh64/abi32.xd: Adjust as type of linker-script-symbols
1433 is no longer set to object.
1434 * ld-sh/sh64/abi64.xd, ld-sh/sh64/cmpct1.xd, ld-sh/sh64/crange1.rd,
1435 ld-sh/sh64/crange2.rd, ld-sh/sh64/crange3-cmpct.rd,
1436 ld-sh/sh64/crange3-media.rd, ld-sh/sh64/crange3.rd,
1437 ld-sh/sh64/mix1.xd, ld-sh/sh64/mix2.xd, ld-sh/sh64/shdl32.xd,
1438 ld-sh/sh64/shdl64.xd: Likewise.
1442 * ld-discard/discard.exp: Don't run on linuxaout or linuxoldld.
1443 * ld-linkonce/linkonce.exp: Likewise.
1444 * ld-selective/sel-dump.exp: Likewise.
1445 * ld-selective/selective.exp: Don't run on aout or bout.
1449 * ld-elfvers/vers.exp: Add vers22.
1451 * ld-elfvers/vers22.c: New.
1452 * ld-elfvers/vers22.dsym: New.
1453 * ld-elfvers/vers22.map: New.
1454 * ld-elfvers/vers22.ver: New.
1455 * ld-elfvers/vers22a.c: New.
1456 * ld-elfvers/vers22a.dsym: New.
1457 * ld-elfvers/vers22a.sym: New.
1458 * ld-elfvers/vers22a.ver: New.
1459 * ld-elfvers/vers22b.c: New.
1460 * ld-elfvers/vers22b.dsym: New.
1461 * ld-elfvers/vers22b.ver: New.
1465 * ld-elfvers/vers.exp: Add --no-undefined-version.
1467 * ld-elfvers/vers1.map: Remove the unused foo1 and foo2.
1468 * ld-elfvers/vers8.map: Likewise.
1469 * ld-elfvers/vers18.map: Likewise.
1473 * ld-discard/discard.exp, ld-scripts/phdrs.exp, ld-scripts/phdrs2.exp,
1474 ld-selective/sel-dump.exp: Test hppa*64*-*-hpux* target.
1475 * ld-elfvers/vers.exp, ld-elfvsb/elfvsb.exp, ld-elfweak/elfweak.exp,
1476 ld-linkonce/linkonce.exp, ld-shared/shared.exp,
1477 ld-undefined/weak-undef.exp: Test hppa*64*-*-hpux* and hppa*-*-linux*
1479 * ld-discard/exit.s, ld-discard/extern.s, ld-discard/start.s,
1480 ld-discard/static.s: Add whitespace before assembler directives.
1484 * ld-mips-elf/mips16-1.d: Check that ASE flag is actually set.
1488 * ld-mips-elf/mips16-1.d,
1489 * ld-mips-elf/mips16-1[ab].s: New test.
1490 * ld-mips-elf/mips-elf.exp: Run it.
1494 * ld-mmix/sec-1.d: Adjust for changes in padding.
1495 * ld-mmix/sec-3.d: Ditto.
1499 * ld-elfvers/vers.exp: Add vers21.
1501 * ld-elfvers/vers21.c: New.
1502 * ld-elfvers/vers21.dsym: New.
1503 * ld-elfvers/vers21.map: New.
1504 * ld-elfvers/vers21.sym: New.
1505 * ld-elfvers/vers21.ver: New.
1509 * ld-cris/nodyn4.d, ld-cris/expdyn4.d, ld-cris/comref1.s,
1510 ld-cris/euwref1.s, ld-cris/expdyn3.d, ld-cris/expdyn2.d,
1511 ld-cris/expdref1.s: New tests.
1515 * ld-scripts/dynamic-sections*: New test.
1519 * ld-cris/libdso-3.d, ld-cris/dso-3.s, ld-cris/noglob1.s,
1520 ld-cris/noglob1.d: New tests.
1522 * ld-cris/libdso-1.d: Tweak for change in size of dynamic sections.
1526 * lib/ld-lib.exp (default_ld_nm): Run nm with LC_ALL=C to ensure
1528 (run_dump_test): Likewise for objdump/nm/objcopy/readelf.
1529 * ld-sh/sh64/sh64.exp (run_ld_link_tests): Likewise.
1533 * ld-mmix/sec-8m.d, ld-mmix/sec-8m.s, ld-mmix/sec-8a.s,
1534 ld-mmix/sec-8b.s, ld-mmix/sec-8d.s: New test.
1538 * ld-mips-elf/empic2-ref.s: Add a missing .end, apparently
1539 turned up by recent assembler changes.
1543 * ld-d10v/d10v.exp: New driver for d10v.
1544 * ld-d10v/default_layout.d : New test.
1545 * ld-d10v/regression-001.lt: New test for a linker regression.
1546 * ld-d10v/linktest-002.lt: New test for run_link_test.
1547 * ld-d10v/reloc-001.d - reloc-016.d: New tests.
1551 * ld-scripts/cross1.t: Add .hash, .dynstr and .dynsym sections to
1556 * ld-undefined/undefined.exp: Add s390x to dwarf2 xfails.
1560 * ld-mips-elf/region1a.s,
1561 * ld-mips-elf/region1b.s,
1562 * ld-mips-elf/region1.t,
1563 * ld-mips-elf/region1.d: New test.
1564 * ld-mips-elf/mips-elf.exp: Run it.
1568 * ld-scripts/phdrs2.s: Use .p2align instead of .align.
1569 Use section names .foo and .bar instead of .text and .data.
1570 * ld-scripts/phdrs2.t: Refer to .foo and .bar instead of .text
1575 * ld-scripts/phdrs2.exp: New file: Run second phdrs test.
1576 * ld-scripts/phdrs2.s: New file: Dummy assembler source.
1577 * ld-scripts/phdrs2.t: New file: Linker script with an empty
1578 section at the start of a loadable segment.
1582 * ld-srec/sr3.cc (__dso_handle): Added for gcc 3.1 with
1584 (__cxa_atexit): Likewise.
1588 * ld-bootstrap/bootstrap.exp: Test --relax.
1592 * ld-cris/libdso-2.d: Tweak for combreloc now default on.
1596 * lib/ld-lib.exp (run_dump_test): Add -L$srcdir/$subdir.
1597 (is_elf_format): New, extracted from...
1598 * ld-scripts/weak.exp: ...here.
1599 * ld-scripts/overlay-size.exp: New test.
1600 * ld-scripts/overlay-size.[tsd],
1601 * ld-scripts/overlay-size-map.d: New files for it.
1605 * ld-scripts/map-address.exp: Quote conditions.
1609 * ld-scripts/map-address.exp: New test.
1610 * ld-scripts/map-address.[td]: New files for it.
1614 * ld-elfvsb/elfvsb.exp: Mirror ia64 non-pic xfails for alpha.
1615 * ld-shared/shared.exp: Likewise.
1616 * ld-selective/selective.exp: Disable for alpha.
1617 * ld-undefined/undefined.exp: Add alpha to dwarf2 xfails.
1621 * ld-cris/libdso-2.d, ld-cris/dso-2.s, ld-cris/hide1: New test.
1625 * ld-cris/ldsym1.d: New test.
1627 * ld-mmix/bpo-1.d: Tweak for type of linker-script-symbols no
1628 longer set to object.
1629 * ld-mmix/undef-3.d, ld-mmix/start-1.d, ld-mmix/locto-1.d,
1630 ld-mmix/loct-1.d, ld-mmix/locdo-1.d, ld-mmix/local7.d,
1631 ld-mmix/local5.d, ld-mmix/local3.d, ld-mmix/local1.d,
1632 ld-mmix/loc6.d, ld-mmix/loc4.d, ld-mmix/loc3.d, ld-mmix/loc2.d,
1633 ld-mmix/loc1.d, ld-mmix/greg-7.d, ld-mmix/greg-6.d,
1634 ld-mmix/greg-5.d, ld-mmix/greg-4.d, ld-mmix/greg-3.d,
1635 ld-mmix/greg-2.d, ld-mmix/greg-19.d, ld-mmix/greg-1.d,
1636 ld-mmix/bspec2.d, ld-mmix/bspec1.d, ld-mmix/bpo-9.d,
1637 ld-mmix/bpo-6.d, ld-mmix/bpo-5.d, ld-mmix/bpo-4.d,
1638 ld-mmix/bpo-3.d, ld-mmix/bpo-2.d, ld-mmix/bpo-19.d,
1639 ld-mmix/bpo-18.d, ld-mmix/bpo-17.d, ld-mmix/bpo-16.d,
1640 ld-mmix/bpo-14.d, ld-mmix/bpo-11.d, ld-mmix/bpo-10.d: Ditto.
1644 * ld-elfweak/strongdata.sym: Allow bss section for GCC 3.2 that
1645 places zero initialized data in the bss.
1646 * ld-elfweak/lddsodata.dsym: Likewise.
1650 * ld-cris/expdyn1.d: Tweak for change in elf.sc.
1654 * ld-sh/ld-r-1.d: Adjust to changes in readelf output.
1655 * ld-sh/shared-1.d, ld-sh/sh64/crangerel1.rd, ld-sh/crangerel2.rd,
1656 ld-sh/sh64/reldl32.rd, ld-sh/sh64/reldl64.rd: Ditto.
1660 * ld-elfvsb/sh1.c: Fix typo in last change.
1664 * ld-elfvsb/sh1.c: Use #pragma weak.
1668 * vers.exp: Do not call diff -q.
1672 * ld-mmix/b-nosym.d, ld-mmix/sec-6.d: Tweak for change in symbol
1674 * ld-mmix/sec-7m.d, ld-mmix/sec-7a.s, ld-mmix/sec-7b.s,
1675 ld-mmix/sec-7c.s, ld-mmix/sec-7d.s, ld-mmix/sec-7e.s: New test.
1677 * ld-mmix/bpo-22.d: New test.
1679 * ld-mmix/local12.d (Sections): Match any LMA for .data, .sbss,
1684 * ld-selective/selective.exp: Link against libgcc on
1685 hppa*-*-linux* targets.
1689 * ld-sh/sh64/reldl64.rd: Add relocation symbol data in info field.
1690 * ld-sh/sh64/crange-2i.s: Add align to match align in crange-2h.s.
1691 * ld-sh/sh64/crange3-cmpct.rd: Adjust to reflect modifications
1692 in section ordering.
1693 * ld-sh/sh64/crange3-media.rd: Likewise.
1694 * ld-sh/sh64/crange3.rd: Likewise.
1695 * ld-sh/sh64/crange3.dd: Likewise.
1697 * ld-sh/shared-1.d: Fix relocation addend.
1701 * ld-mmix/bpo-21.d, ld-mmix/bpo-21m.d, ld-mmix/bpo-11.s: New
1706 Contribute sh64-elf.
1708 * ld-sh/sh64/crange3-cmpct.rd: Adjust offsets.
1709 * ld-sh/sh64/crange3-media.rd: Likewise.
1710 * ld-sh/sh64/crange3.rd: Likewise.
1711 * ld-sh/sh64/crangerel1.rd: Likewise.
1712 * ld-sh/sh64/crangerel2.rd: Likewise.
1713 * ld-sh/sh64/reldl32.rd: Likewise.
1714 * ld-sh/sh64/reldl64.rd: Likewise.
1716 * ld-sh/sh64/abi32.xd: Formatting changes to match the current
1718 * ld-sh/sh64/cmpct1.xd: Likewise.
1719 * ld-sh/sh64/crange1.rd: Likewise.
1720 * ld-sh/sh64/crange2.rd: Likewise.
1721 * ld-sh/sh64/crange3-cmpct.rd: Likewise.
1722 * ld-sh/sh64/crange3-media.rd: Likewise.
1723 * ld-sh/sh64/crange3.rd: Likewise.
1724 * ld-sh/sh64/crangerel1.rd: Likewise.
1725 * ld-sh/sh64/crangerel2.rd: Likewise.
1726 * ld-sh/sh64/mix1.xd: Likewise.
1727 * ld-sh/sh64/mix2.xd: Likewise.
1728 * ld-sh/sh64/rel32.xd: Likewise.
1729 * ld-sh/sh64/reldl32.rd: Likewise.
1730 * ld-sh/sh64/reldl64.rd: Likewise.
1731 * ld-sh/sh64/sh64.exp: Likewise. Reordered cranges and stack
1732 sessions, to match changes in the linker script.
1734 * ld-sh/sh64/reldl32.rd, ld-sh/sh64/reldl64.rd: Adjust relocation
1735 info to reflect renumbering of relocation types.
1737 * ld-sh/sh64/endian.dbd: New file, endian tests.
1738 * ld-sh/sh64/endian.dld: Ditto.
1739 * ld-sh/sh64/endian.ld: Ditto.
1740 * ld-sh/sh64/endian.s: Ditto.
1741 * ld-sh/sh64/endian.sbd: Ditto.
1742 * ld-sh/sh64/endian.sld: Ditto.
1743 * ld-sh/sh64/sh64.exp: Add above tests. Add -L option to ld.
1745 * ld-sh/sh64/relax.exp: New file, test disabling relaxing.
1746 * ld-sh/sh64/relax1.s: Ditto.
1747 * ld-sh/sh64/relax2.s: Ditto.
1748 * ld-sh/sh64/relax3.s: Ditto.
1749 * ld-sh/sh64/relax4.s: Ditto.
1750 * ld-sh/sh64/relfail.exp: New file, test for bogus relocs.
1751 * ld-sh/sh64/relfail.s: Ditto.
1753 * ld-sh/sh.exp: This test isn't appropriate for SH64 since it
1754 uses SH32 assembler files.
1756 * ld-selective/selective.exp: Pass "-e _start" for sh64 to
1757 accomodate expected start symbol in test.
1759 * ld-scripts/crossref.exp: Pass -mshelf32 to the linker for sh64,
1760 to match what gcc passes to the linker by default.
1761 * ld-selective/selective.exp: Ditto.
1762 * ld-srec/srec.exp: Ditto, plus XFAIL for sh64.
1763 * ld-undefined/undefined.exp: Add XFAIL for sh64 (it's dwarf2).
1765 * ld-sh/sh64/abi32.xd (stack): Adjust for new default stack layout.
1766 * ld-sh/sh64/abi64.xd (stack): Ditto.
1767 * ld-sh/sh64/cmpct1.xd (stack): Ditto.
1768 * ld-sh/sh64/crange1.rd (stack): Ditto.
1769 * ld-sh/sh64/crange2.rd (stack): Ditto.
1770 * ld-sh/sh64/crange3-cmpct.rd (stack): Ditto.
1771 * ld-sh/sh64/crange3-media.rd (stack): Ditto.
1772 * ld-sh/sh64/crange3.rd (stack): Ditto.
1773 * ld-sh/sh64/mix1.xd (stack): Ditto.
1774 * ld-sh/sh64/mix2.xd (stack): Ditto.
1775 * ld-sh/sh64/shdl32.xd (stack): Ditto.
1776 * ld-sh/sh64/shdl64.xd (stack): Ditto.
1778 * ld-sh/sh64/mix1.xd: Add SORT_ENTRIES for .cranges section.
1779 * ld-sh/sh64/mix2.xd: Ditto.
1781 * ld-sh/sh64/abi32.xd: Adjust for bit 0 set on an entry address
1783 * ld-sh/sh64/shdl64.xd: Ditto.
1784 * ld-sh/sh64/shdl32.xd: Ditto.
1785 * ld-sh/sh64/mix2.xd: Ditto.
1786 * ld-sh/sh64/crange3-media.rd: Ditto.
1787 * ld-sh/sh64/abi64.xd: Ditto.
1789 * ld-sh/sh64/crange-2a.s (diversion2): New global symbol.
1790 * ld-sh/sh64/crange1.rd: Adjust to presence of new symbol.
1791 Adjust section type for .cranges; expect sorted contents.
1792 * ld-sh/sh64/crange2.rd: Ditto.
1793 * ld-sh/sh64/crange3.dd, ld-sh/sh64/crange3.rd: Ditto.
1794 * ld-sh/sh64/crangerel1.rd: Adjust to presence of new symbol.
1795 * ld-sh/sh64/crangerel2.rd: Ditto.
1796 * ld-sh/sh64/mix1.xd: Adjust to DEBUGGING being set for .cranges.
1797 * ld-sh/sh64/mix2.xd: Ditto.
1798 * ld-sh/sh64/crange3-cmpct.rd, ld-sh/sh64/crange3-media.rd: New
1800 * ld-sh/sh64/sh64.exp: Tweak test message. Run new tests.
1802 * ld-sh/sh64/shmix-1.s (start2): Add a NOP to provide a valid
1803 target for (unexpanded) PTB. Add an .align 2 to SHmedia code to
1804 keep properly aligned.
1805 * ld-sh/sh64/mix1.sd, ld-sh/sh64/mix1.xd: Adjust accordingly.
1806 * ld-sh/sh64/mix1-noexp.sd, ld-sh/sh64/mix2-noexp.sd,
1807 ld-sh/sh64/abixx-noexp.sd: New tests for GAS -no-expand and
1808 R_SH_PT_16 relocation.
1809 * ld-sh/sh64/sh64.exp: Run new tests.
1811 * ld-sh/sh64/crange-2f.s, ld-sh/sh64/crange-2g.s,
1812 ld-sh/sh64/crange-2h.s, ld-sh/sh64/crange-2i.s,
1813 ld-sh/sh64/crange3.dd, ld-sh/sh64/crange3.rd: New tests.
1814 * ld-sh/sh64/sh64.exp: Run new tests.
1815 * ld-sh/sh64/crange1.rd: Correct section flags.
1816 * ld-sh/sh64/crange2.rd: Ditto.
1817 * ld-sh/sh64/crangerel1.rd: Ditto.
1819 * ld-sh/sh64/crange-1.s, ld-sh/sh64/crange-2a.s,
1820 ld-sh/sh64/crange-2b.s, ld-sh/sh64/crange-2c.s,
1821 ld-sh/sh64/crange-2d.s, ld-sh/sh64/crange-2e.s,
1822 ld-sh/sh64/crange1.rd, ld-sh/sh64/crange2.rd,
1823 ld-sh/sh64/crangerel1.rd, ld-sh/sh64/crangerel2.rd: New tests for
1824 handling .cranges section.
1825 * ld-sh/sh64/sh64.exp: Run new tests.
1826 * ld-sh/sh64/mix1.sd, ld-sh/sh64/mix1.xd, ld-sh/sh64/mix2.sd,
1827 ld-sh/sh64/mix2.xd: Adjust for .cranges section.
1829 * ld-sh/sh64/abi32.sd, ld-sh/sh64/abi32.xd, ld-sh/sh64/abi64.sd,
1830 ld-sh/sh64/abi64.xd, ld-sh/sh64/cmpct1.xd, ld-sh/sh64/mix1.sd,
1831 ld-sh/sh64/mix1.xd, ld-sh/sh64/mix2.sd, ld-sh/sh64/mix2.xd,
1832 ld-sh/sh64/shdl32.xd, ld-sh/sh64/shdl64.xd: Adjust to .bss and
1833 .data individually 8-byte aligned.
1835 * ld-sh/sh64/rel-1.s, ld-sh/sh64/rel-2.s, ld-sh/sh64/rel32.xd,
1836 ld-sh/sh64/rel64.xd, ld-sh/sh64/reldl-1.s, ld-sh/sh64/reldl-2.s,
1837 ld-sh/sh64/reldl32.rd, ld-sh/sh64/reldl64.rd: New tests.
1838 * ld-sh/sh64/sh64.exp: Make it possible to use readelf as
1839 inspection tool. Run new tests.
1841 * ld-sh/sh64/abi64.sd, ld-sh/sh64/abi32.sd, ld-sh/sh64/mix1.sd,
1842 ld-sh/sh64/mix2.sd: Correct offsets in PT/PTA/PTB expansions.
1843 * ld-sh/sh64/shdl-1.s, ld-sh/sh64/shdl-2.s, ld-sh/sh64/shdl64.sd,
1844 ld-sh/sh64/shdl64.xd, ld-sh/sh64/shdl32.xd: New tests.
1845 * ld-sh/sh64/sh64.exp: Run new tests.
1847 * ld-sh/sh64/cmpct1.sd, ld-sh/sh64/cmpct1.xd,
1848 ld-sh/sh64/shcmp-1.s: New test.
1849 * ld-sh/sh64/sh64.exp: Add new test to sh64tests. Reformat.
1851 * ld-sh/sh64/sh64.exp: Use linker option -mshelf64 for 64-bit ABI
1853 * ld-sh/sh64/abi64.xd: Tweak for 64-bit ELF.
1855 * ld-sh/sh64/sh64.exp (sh64tests): Use linker option -mshelf32 for
1858 * ld-sh/sh64/abi32.sd, ld-sh/sh64/abi64.sd: Correct MOVI
1860 * ld-sh/sh64/mix1.sd, ld-sh/sh64/mix1.xd, ld-sh/sh64/shmix-1.s:
1862 * ld-sh/sh64/mix2.sd, ld-sh/sh64/mix2.xd, ld-sh/sh64/shmix-2.s,
1863 ld-sh/sh64/shmix-3.s: New test.
1864 * ld-sh/sh64/sh64.exp: Add new tests to sh64tests.
1866 * ld-sh/sh64: New testsuite.
1870 * ld-selective/keepdot.s: Remove section specifier.
1874 * ld-selective/keepdot.d, ld-selective/keepdot.ld,
1875 ld-selective/keepdot.s, ld-selective/keepdot0.d: New tests.
1876 * ld-selective/sel-dump.exp: New, driver for run_dump_test:s.
1880 * ld-mmix/bpo-18.d, ld-mmix/bpo64addr.ld, ld-mmix/bpo-18m.d,
1881 ld-mmix/bpo-9.s, ld-mmix/bpo-19.d, ld-mmix/bpo-19m.d,
1882 ld-mmix/bpo-10.s, ld-mmix/bpo-20.d, ld-mmix/bpo-20m.d: New tests
1883 for on-demand global register allocation.
1887 * ld-sh/shared-1.d: Fix incorrect offsets.
1891 * ld-mmix/bpo-1.d, ld-mmix/bpo-1.s, ld-mmix/bpo-1m.d,
1892 ld-mmix/bpo-15.d, ld-mmix/bpo-4.s, ld-mmix/bpo-6.d,
1893 ld-mmix/bpo-6.s, ld-mmix/bpo-2.d, ld-mmix/bpo-6m.d,
1894 ld-mmix/bpo-12m.d, ld-mmix/bpo-2m.d, ld-mmix/bpo-2.s,
1895 ld-mmix/bpo-5.s, ld-mmix/bpo-3.d, ld-mmix/start3.s,
1896 ld-mmix/bpo-3m.d, ld-mmix/bpo-9m.d, ld-mmix/bpo-4.d,
1897 ld-mmix/bpo-3.s, ld-mmix/bpo-4m.d, ld-mmix/bpo-7.d,
1898 ld-mmix/bpo-5.d, ld-mmix/bpo-16.d, ld-mmix/bpo-5m.d,
1899 ld-mmix/bpo-7m.d, ld-mmix/bpo-9.d, ld-mmix/bpo-8.d,
1900 ld-mmix/start4.s, ld-mmix/bpo-8m.d, ld-mmix/bpo-13m.d,
1901 ld-mmix/bpo-15m.d, ld-mmix/bpo-10.d, ld-mmix/bpo-11.d,
1902 ld-mmix/bpo-14m.d, ld-mmix/bpo-13.d, ld-mmix/bpo-7.s,
1903 ld-mmix/bpo-12.d, ld-mmix/bpo-16m.d, ld-mmix/bpo-14.d,
1904 ld-mmix/bpo-8.s, ld-mmix/bpo-17.d, ld-mmix/bpo-17m.d: New tests.
1908 * ld-cris/weakref1.d, ld-cris/libdso-1.d, ld-cris/gotrel2.s,
1909 ld-cris/expdyn1.d, ld-cris/expdyn1.s, ld-cris/dso-1.s: New tests.
1910 * ld-cris/cris.exp: Split run_dump_tests in two parts, executing
1911 tests named *dso-*.d first and copying their tmpdir/dump to files
1912 named as the .d-file.
1916 * ld-scripts/crossref.exp: Allow foo to have a leading dot.
1917 * ld-scripts/cross1.t: Add .opd.
1918 * ld-undefined/undefined.exp: Allow leading dot on sym names.
1919 * lib/ld-lib.exp (default_ld_nm): Strip leading dots from syms.
1923 * ld-mips-elf/emrelocs-eb.d: New file to test --embedded-relocs.
1924 * ld-mips-elf/emrelocs-el.d: Likewise.
1925 * ld-mips-elf/emrelocs1.s: Likewise.
1926 * ld-mips-elf/emrelocs2.s: Likewise.
1927 * ld-mips-elf/emrelocs.ld: Likewise.
1928 * ld-mips-elf/mips-elf.exp: Add the above to the list of tests.
1932 * ld-cris: New testsuite directory.
1936 * ld-sh/sh.exp: Copy start.s file into test directory.
1940 * ld-selective/selective.exp: For ARM targets, link with libgcc.a.
1944 * ld-mips-elf/empic1-ln.d: New file to test basic linking of
1945 R_MIPS_GNU_REL_HI16 and R_MIPS_GNU_REL_LO16 relocations.
1946 * ld-mips-elf/empic1-lp.d: Likewise.
1947 * ld-mips-elf/empic1-mn.d: Likewise.
1948 * ld-mips-elf/empic1-mp.d: Likewise.
1949 * ld-mips-elf/empic1-sn.d: Likewise.
1950 * ld-mips-elf/empic1-sp.d: Likewise.
1951 * ld-mips-elf/empic1-ref.s: Likewise.
1952 * ld-mips-elf/empic1-space.s: Likewise.
1953 * ld-mips-elf/empic1-tgt.s: Likewise.
1954 * ld-mips-elf/empic2-fwd-0.d: New file to test
1955 R_MIPS_GNU_REL_HI16 and R_MIPS_GNU_REL_LO16 relocation edge
1957 * ld-mips-elf/empic2-fwd-1.d: Likewise.
1958 * ld-mips-elf/empic2-rev-0.d: Likewise.
1959 * ld-mips-elf/empic2-rev-1.d: Likewise.
1960 * ld-mips-elf/empic2-ref.s: Likewise.
1961 * ld-mips-elf/empic2-space.s: Likewise.
1962 * ld-mips-elf/empic2-fwd-tgt.s: Likewise.
1963 * ld-mips-elf/empic2-rev-tgt.s: Likewise.
1964 * ld-mips-elf/mips-elf.exp: New file to run MIPS 32-bit ELF
1965 tests (including those above).
1969 * ld-elfvers/vers.exp (build_vers_lib): Preserve the library
1974 * ld-elfvers/vers.exp (build_vers_lib): Support linking against
1975 more than one libraries.
1976 Add "vers20a" and "vers20" tests for common symbols.
1978 * ld-elfvers/vers20.c: New.
1979 * ld-elfvers/vers20.dsym: New.
1980 * ld-elfvers/vers20.map: New.
1981 * ld-elfvers/vers20.ver: New.
1982 * ld-elfvers/vers20a.ver: New.
1986 * ld-elfvsb/define.s: Mark all global lables as object.
1988 * ld-elfvsb/hidden0.d: Match large section number.
1989 * ld-elfvsb/hidden1.d: Likewise.
1990 * ld-elfvsb/internal0.d: Likewise.
1991 * ld-elfvsb/internal1.d: Likewise.
1992 * ld-elfvsb/protected0.d: Likewise.
1993 * ld-elfvsb/protected1.d: Likewise.
1995 * ld-elfvsb/hidden0.d: Change NOTYPE to OBJECT.
1996 * ld-elfvsb/internal0.d: Likewise.
1997 * ld-elfvsb/protected0.d: Likewise.
2001 * ld-sh/ld-r-1.d: Updated.
2005 * ld-bootstrap/bootstrap.exp: Only scan tail of executable for
2010 * ld-bootstrap/bootstrap.exp: Only compare the tail end of the two
2011 binary files produced in order to avoid date stamp present in PE
2016 * ld-mmix/sec-5.d (Sections): Add whitespace missing in commit.
2020 * ld-discard/discard.exp: New. Test ld discard.
2021 * ld-discard/discard.ld: Likewise.
2022 * ld-discard/exit.s: Likewise.
2023 * ld-discard/extern.d: Likewise.
2024 * ld-discard/extern.s: Likewise.
2025 * ld-discard/start.d: Likewise.
2026 * ld-discard/start.s: Likewise.
2027 * ld-discard/static.d: Likewise.
2028 * ld-discard/static.s: Likewise.
2032 * ld-elfvsb/elfvsb.exp: Add the "ld -r" test.
2034 * ld-elfvsb/hidden0.d: New.
2035 * ld-elfvsb/hidden1.d: New.
2036 * ld-elfvsb/internal0.d: New.
2037 * ld-elfvsb/internal1.d: New.
2038 * ld-elfvsb/protected0.d: New.
2039 * ld-elfvsb/protected1.d: New.
2040 * ld-elfvsb/undef.s: New.
2041 * ld-elfvsb/undef.s: New.
2045 * ld-sh/sh.exp: Have its own start.s for linux.
2049 * ld-mmix/locdo-1.d: Prune character dump part.
2050 * ld-mmix/local7m.d, ld-mmix/loc4.d, ld-mmix/loc4m.d,
2051 ld-mmix/loc1.d, ld-mmix/bspec1m.d, ld-mmix/bspec2m.d,
2052 ld-mmix/b-nosym.d, ld-mmix/b-fixo2.d, ld-mmix/b-loc64k.d,
2053 ld-mmix/undef-3m.d, ld-mmix/locto.s, ld-mmix/loct.s,
2054 ld-mmix/local3m.d, ld-mmix/local1m.d, ld-mmix/loc6m.d,
2055 ld-mmix/loc2.s, ld-mmix/loc1.s, ld-mmix/gregldo1.s,
2056 ld-mmix/dloc1.s, ld-mmix/b-widec3.s, ld-mmix/b-nosym.s: Remove
2057 unnecessary empty lines.
2061 * ld-mmix: New testsuite directory.
2065 * ld-sh/sub2l-1.d, ld-sh/shared-1.d, ld-sh/weak1.d: Only run on
2068 * lib/ld-lib.exp (run_dump_test): Fix typo: asflags(), not asflags{}.
2070 * ld-sh/rd-sh.exp: New framework file.
2071 * ld-sh/ld-r-1.d, ld-sh/ldr1.s, ld-sh/ldr2.s, ld-sh/shared-1.d,
2072 ld-sh/weak1.s, ld-sh/weak1.d, ld-sh/sub2l.s, ld-sh/sub2l-1.d: New
2077 * ld-linkonce/linkonce.exp: New file.
2078 * ld-linkonce/x.s, ld-linkonce/y.s, ld-linkonce/zeroeh.ld,
2079 ld-linkonce/zeroehl32.d: New test.
2083 * ld-elfweak/dso.dsym: Updated for alpha.
2084 * ld-elfweak/dsodata.dsym: Likewise.
2085 * ld-elfweak/strong.sym: Likewise.
2086 * ld-elfweak/strongcomm.sym: Likewise.
2087 * ld-elfweak/strongdata.sym: Likewise.
2091 * lib/ld-lib.exp (run_dump_test): Handle new option
2092 "objcopy_linked_file". Return after failing, if errors were
2093 expected but none were found.
2094 (slurp_options): Support underscores in option names.
2098 * ld-elfweak/bar.c: Updated.
2099 * ld-elfweak/bar1a.c: Likewise.
2100 * ld-elfweak/main.c: Likewise.
2101 * ld-elfweak/main1.c: Likewise.
2102 * ld-elfweak/elfweak.exp: Likewise.
2103 * ld-elfweak/weakdata.dsym: Updated.
2107 * ld-elfweak/elfweak.exp (build_lib): Take a list of object
2109 (build_exec): Likewise.
2110 Add more tests and make some xfail.
2112 * ld-elfweak/dso.dsym: Support symbol versioning.
2113 * ld-elfweak/dsow.dsym: Likewise.
2115 * ld-elfweak/main1.c: New.
2116 * ld-elfweak/bar1a.c: Likewise.
2117 * ld-elfweak/bar1b.c: Likewise.
2118 * ld-elfweak/bar1c.c: Likewise.
2119 * ld-elfweak/foo1a.c: Likewise.
2120 * ld-elfweak/foo1b.c: Likewise.
2121 * ld-elfweak/dsodata.dsym: Likewise.
2122 * ld-elfweak/dsowdata.dsym: Likewise.
2123 * ld-elfweak/weakdata.dsym: Likewise.
2124 * ld-elfweak/strongcomm.sym: Likewise.
2125 * ld-elfweak/strongdata.sym: Likewise.
2126 * ld-elfweak/weakdata.dat: Likewise.
2127 * ld-elfweak/strongdata.dat: Likewise.
2131 * ld-elfweak/elfweak.exp: New.
2132 * ld-elfweak/bar.c: Likewise.
2133 * ld-elfweak/foo.c: Likewise.
2134 * ld-elfweak/main.c: Likewise.
2135 * ld-elfweak/dso.dsym: Likewise.
2136 * ld-elfweak/dsow.dsym: Likewise.
2137 * ld-elfweak/strong.sym: Likewise.
2138 * ld-elfweak/strong.dat: Likewise.
2139 * ld-elfweak/weak.dat: Likewise.
2144 * ld-checks/checks.exp: .lcomm is incompatible with ppc coff.
2145 * ld-scripts/cross1.t: Add .toc section.
2146 * ld-scripts/cross2.t: Likewise.
2147 * ld-scripts/phdrs.exp: powerpc64 is 64 bit.
2148 * ld-srec/srec.exp: xfail powerpc64
2152 * ld-selective/selective.exp: Return if target is `vax-*-ultrix*'.
2153 Continue with other tests when there is a compilation error.
2157 * ld-cdtest/cdtest-nrv.dat: New file.
2158 * ld-cdtest/cdtest.exp: Do not require any exception support
2159 library. Check results against NRV.
2163 * ld-srec/srec.exp: Do not require any exception support
2168 * ld-selective/selective.exp: Fix the error in the last change.
2172 * ld-selective/selective.exp: Support g++ V3 ABI (along side
2173 the old ABI). Make comparisons against normalized (to
2174 V3-style) demangled nm output.
2178 * config/default.exp (ld_nm): Add "nmflags" arg.
2179 * lib/ld-lib.exp (default_ld_nm): Likewise.
2180 * ld-empic/empic.exp: Adjust call to ld_nm.
2181 * ld-scripts/defined.exp: Likewise.
2182 * ld-scripts/script.exp: Likewise.
2183 * ld-scripts/sizeof.exp: Likewise.
2184 * ld-selective/selective.exp: Likewise.
2185 * ld-sh/sh.exp: Likewise.
2189 * ld-selective/selective.exp: Mark selective1, selective2,
2190 selective4 and selective5 xfail on alpha*-*.
2194 * config/default.exp (AS, GASP, OBJDUMP, NM, NMFLAGS, OBJCOPY,
2195 OBJCOPYFLAGS, READELF, READELFFLAGS, LD, LDFLAGS): Provide
2198 * lib/ld-lib.exp (run_dump_test): Import from gas testsuite. Add
2199 new options "ld", "source", "xfail", "target", "notarget" and
2200 "error". Support the runtest_file_p "*.exp=testname" feature.
2201 (slurp_options, regexp_diff, file_contents, verbose_eval): Import
2206 * testsuite/ld-undefined/undefined.exp: Correct setup_xfail rule.
2210 * ld-bootstrap/bootstrap.exp: Rebuild tmpdir/ld2 with tmpdir/ld3
2213 * ld-elfvers/vers.exp: Also run on Linux/mips.
2214 * ld-elfvsb/elfvsb.exp: Likewise.
2215 * ld-shared/shared.exp: Likewise.
2217 * ld-selective/selective.exp: Mark selective2, selective3,
2218 selective4 and selective5 xfail on Linux/mips.
2220 * ld-shared/main.c: Skip invalid -Bsymbolic tests on Linux/mips.
2222 * symbolic.dat: Remove invalid -Bsymbolic tests on Linux/mips.
2224 * ld-srec/srec.exp: Add Linux/mips to xfail.
2228 * ld-undefined/undefined.exp: Add a setup_xfail line for a test
2229 that will always fail on s/390.
2233 * ld-sh/sh.exp: For sh-*-linux-gnu target add a start address for
2238 * ld-elfvers/vers.exp: Replace linuxoldld with linux*oldld and
2239 linuxaout with linux*aout.
2243 * ld-scripts/phdrs.exp: Add sparc64 to 64 bit platform.
2247 * ld-elfvers/vers.exp: Revert the last change.
2249 * ld-elfvers/vers2.ver: Put back "tmpdir/" the version
2251 * ld-elfvers/vers3.ver: Likewise.
2252 * ld-elfvers/vers6.ver: Likewise.
2253 * ld-elfvers/vers18.ver: Likewise.
2257 * ld-elfvers/vers.exp: Pass "-rpath .:$tmpdir" to "vers19".
2259 * ld-elfvers/vers1.ver: Remove "tmpdir/" from the version
2261 * ld-elfvers/vers2.ver: Likewise.
2262 * ld-elfvers/vers3.ver: Likewise.
2263 * ld-elfvers/vers4a.ver: Likewise.
2264 * ld-elfvers/vers6.ver: Likewise.
2265 * ld-elfvers/vers7a.ver: Likewise.
2266 * ld-elfvers/vers8.ver: Likewise.
2267 * ld-elfvers/vers9.ver: Likewise.
2268 * ld-elfvers/vers15.ver: Likewise.
2269 * ld-elfvers/vers16a.ver: Likewise.
2270 * ld-elfvers/vers17.ver: Likewise.
2271 * ld-elfvers/vers18.ver: Likewise.
2275 * ld-elfvers/vers19.ver: Expect vers17.so instead of
2280 * ld-scripts/phdrs.exp: Fix regexp, s390x is 64 bit platform.
2282 * ld-scripts/phdrs.t: Use startaddress that's greater than any
2287 * ld-shared/symbolic.dat: New.
2289 * ld-shared/shared.exp: Also check -Bsymbolic.
2293 * ld-scripts/phdrs.exp: x86-64 is a 64 bit ELF platform, handle it
2297 * ld-undefined/undefined.exp: XFAIL on FreeBSD/i386 for the usual (even
2298 though it doesn't use DWARF2 yet (but its output is identical).
2302 * ld-selective/selective.exp: Use -O with gcc rather than -O2.
2303 This optimization level is buggy on some platforms, and this test
2304 is not intended to test compiler optimizations.
2308 * ld-scripts/cross2.t: Support any type of text/data sections, not
2309 just the canonical ones.
2313 * ld-scripts/crossref.exp: Initialize flags to [big_or_little_endian].
2314 * ld-undefined/undefined.exp: Ditto, and include $flags in ld
2316 * lib/ld-lib.exp (big_or_little_endian): Recognize -EB, -eb, -EL
2318 (is_endian_output_format): New function.
2319 (default_ld_link): Set flags to [big_or_little_endian] only if ld
2320 is being invoked such that the output format being used is of
2322 (default_ld_simple_link): Ditto.
2326 * ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2331 * ld-bootstrap/bootstrap.exp: Rebuild tmpdir/ld2 with tmpdir/ld3
2332 for -static on ia64.
2334 * ld-checks/checks.exp: Don't run on ia64-*-elf* nor
2337 * ld-elfvers/vers.exp: Also run ia64-*-elf* and ia64-*-linux*.
2339 * ld-elfvsb/elfvsb.exp: Use i?86-*-*. Also run on ia64-*-linux*.
2340 Set up expected failures for ia64-*-linux*.
2341 * ld-shared/shared.exp: Likewise.
2345 * ld-srec/srec.exp (run_srec_test): m6811 code has references
2346 to soft registers, define them with --defsym.
2347 * ld-selective/selective.exp: Likewise.
2351 * ld-srec/sr3.cc (__rethrow): New.
2355 * ld-sh/sh.exp: Use --oformat srec, not -oformat srec.
2359 * ld-elfvsb/elfvsb.exp: Run test on Linux/Alpha.
2360 * ld-shared/shared.exp: Likewise.
2364 * ld-undefined/weak-undef.exp: New test.
2365 * ld-undefined/weak-undef.s, ld-undefined/weak-undef.t: Supporting
2368 * ld-elfvers/vers.exp: Run test on Linux/ARM.
2369 * ld-elfvsb/elfvsb.exp: Likewise.
2370 * ld-shared/shared.exp: Likewise.
2374 * ld-srec/srec.exp: Use --oformat instead of -oformat.
2378 * ld-selective/selective.exp: Link in libgcc when target is v850.
2380 * ld-srec/srec.exp: Expect the srec_test to fail for ARM targets
2381 because the -oformat linker command switch cannot be used.
2385 * ld-elfvsb/main.c (PROTECTED_CHECK): Include stdio.h.
2386 (main): Prune unused args.
2390 * ld-selective/selective.exp <no CXX>: Fix typo for argument to
2395 * ld-elfvsb/elfvsb.exp (visibility_run): Set expected failures
2397 * ld-shared/shared.exp: Likewise.
2401 * ld-selective/selective.exp: Rearrange to be table-driven.
2405 * ld-scripts/phdrs.exp: hppa*64*-*-* is 64-bit ELF too.
2409 * ld-scripts/weak.exp: Don't set $global$ for hppa-elf any more.
2410 * ld-scripts/crossref.exp: Ditto.
2414 * ld-selective/5.cc: New test.
2415 * ld-selective/selective.exp: Run it as xfailed.
2417 * ld-selective/4.cc: Correct spelling of "lose".
2421 * ld-selective/selective.exp: Remove the xfails for hppa.
2425 * ld-undefined/undefined.exp (hppa*64*-*-*, mn10300-*-elf,
2426 sh-*-*): With dwarf-2, `undefined function' can't pass.
2430 * ld-bootstrap/bootstrap.exp: Add strip.
2434 * ld-elfvsb/elfvsb.exp: Add -g to $CC to get the location of
2435 the undefined reference.
2439 * ld-elfvsb/elfvsb.exp (support_protected): New variable. Check
2440 and set to "yes" if the protected visibility is expected to
2442 (visibility_run): Set expected to fail for the "protected"
2443 and "protected_undef_def" tests only if $support_protected is
2446 * ld-elfvsb/main.c (PROTECTED_CHECK): Check for the protected
2447 visibility support if defined.
2451 * ld-elfvsb/elfvsb.exp (visibility_run): Set expected failure
2452 for "protected_undef_def".
2454 * ld-elfvsb/main.c: Don't define HIDDEN_UNDEF_TEST when
2455 PROTECTED_WEAK_TEST is defined.
2456 Don't define PROTECTED_UNDEF_TEST when PROTECTED_WEAK_TEST is
2458 Define PROTECTED_TEST when PROTECTED_UNDEF_TEST is defined.
2460 * ld-elfvsb/sh1.c (visibility): Mark protected only if
2461 PROTECTED_TEST, PROTECTED_UNDEF_TEST or PROTECTED_WEAK_TEST
2463 (visibility_var): Likewise.
2467 * ld-srec/srec.exp: xfail hppa.
2469 * ld-scripts/weak.exp: Define $global$ for hppa.
2471 * ld-scripts/crossref.exp: Fix string quoting.
2475 * lib/ld-lib.exp (default_ld_link): Redirect the linker output
2476 to link_output and make it global.
2478 * ld-elfvsb/elfvsb.exp (visibility_test): Add "hidden_undef",
2479 "hidden_undef_def", "hidden_weak", "protected_undef",
2480 "protected_undef_def" and "protected_weak".
2481 (visibility_run): Likewise.
2482 * ld-elfvsb/main.c: Likewise.
2483 * ld-elfvsb/sh1.c: Likewise.
2484 * ld-elfvsb/sh2.c: Likewise.
2486 * ld-elfvsb/elfvsb.dat: Updated.
2490 * ld-elfvsb/main.c (main_visibility_check): Fix the protected
2495 * lib/ld-lib.exp (default_ld_link): Redirect the linker output
2496 to link_output and make it global.
2498 * ld-elfvsb/elf-offset.ld: New. ELF visibility fearture
2500 * ld-elfvsb/elfvsb.dat: Likewise.
2501 * ld-elfvsb/elfvsb.exp: Likewise.
2502 * ld-elfvsb/main.c: Likewise.
2503 * ld-elfvsb/sh1.c: Likewise.
2504 * ld-elfvsb/sh2.c: Likewise.
2508 * ld-scripts/phdrs.exp: IA-64 is 64-bit ELF too.
2512 * ld-selective/3.cc (_start): Add cheat for gcc-2.95.2 failure.
2514 * ld-selective/selective.exp (test4): Test for presence of
2515 foo__1B, not absence. Also check for foo__1A and _start.
2516 White space changes throughout file.
2520 * ld-scripts/phdrs.t: Discard all unexpected sections.
2524 * lib/ld-lib.exp (default_ld_link): Added "$LIBS" to libs.
2528 * ld-selective/selective.exp: Fix test to disable these checks for
2533 * ld-selective/selective.exp: Remove test6.
2534 * ld-selective/5.cc: Delete.
2538 * ld-srec/srec.exp: Setup expected failures for
2539 srec tests on ARM Linux.
2543 * ld-shared/shared.exp: xfail linux*libc1 shared (non PIC, load
2548 * ld-scripts/script.exp: Add --image-base 0 for PE targets.
2552 * ld-cdtest/cdtest-foo.cc (Foo::init_foo): Use "%ld" for sizeof.
2556 * ld-elfvers/vers.exp: Run tests on sparc*-*-linux*.
2557 * ld-shared/shared.exp: Likewise.
2561 * lib/ld-lib.exp (proc big_or_little_endian): New proc.
2562 Determine if a big endian or little endian output format hass
2563 been selected by any of the multilib options, and if so return
2564 a suitable command line option for the linker/assembler.
2565 (proc default_ld_link): Include the result of proc
2566 big_or_little_endian on the command line to the linker.
2567 (proc ld_simple_link): Include the result of proc
2568 big_or_little_endian on the command line to the linker.
2569 (proc default_ld_compile): Append multilib flags to compiler
2571 (proc default_ld_assemble): Include the result of proc
2572 big_or_little_endian on the command line to the linker.
2576 * ld-elfvers/vers1.c: Add missing prototypes and include
2577 <stdio.h> if necessary.
2578 * ld-elfvers/vers15.c: Likewise.
2579 * ld-elfvers/vers19.c: Likewise.
2580 * ld-elfvers/vers2.c: Likewise.
2581 * ld-elfvers/vers3.c: Likewise.
2582 * ld-elfvers/vers4.c: Likewise.
2583 * ld-elfvers/vers6.c: Likewise.
2584 * ld-elfvers/vers7.c: Likewise.
2585 * ld-elfvers/vers9.c: Likewise.
2586 * ld-shared/main.c: Likewise.
2587 * ld-srec/sr3.cc (Foo::Foo): Remove arg name.
2591 * ld-undefined/undefined.exp: XFAIL on IRIX6 for the usual as
2592 with other DWARF2 targets.
2596 * ld-undefined/undefined.exp: Do not expect arm toolchains to fail
2597 the undefined line test.
2601 * ld-elfvers/vers.exp: Use -rpath in new vers19 test.
2605 * ld-elfvers/vers.exp: Add new tests vers17 to vers19.
2606 * ld-elfvers/{vers17.*, vers18.*, vers19.*}: New files.
2610 * ld-checks/asm.s: Use a symbol name for .lcomm.
2611 * ld-checks/checks.exp: Use different names for the two tests.
2612 Don't add extra text when invoking fail.
2616 * ld-scripts/phdrs.exp: Change target check from "*-*-linuxaout*"
2617 to "*-*-linux*aout*".
2618 * ld-scripts/weak.exp: Likewise.
2619 * ld-shared/shared.exp: Likewise. Simplify condition a bit.
2623 * ld-cdtest/cdtest-main.cc: Avoid `implicit int' warning.
2624 * ld-shared/sh1.c: Fix typo.
2628 * lib/ld-lib.exp (default_ld_nm): Clear nm_output first if
2633 * ld-undefined/undefined.exp: Add xfail for mcore-elf.
2637 * ld-srec/srec.exp: Do not run tests for PE based ports.
2641 * ld-selective/selective.exp: Do not run tests for COFF or PE
2646 * ld-undefined/undefined.exp: Add expected failures for StrongARM
2649 * ld-srec/srec.exp: Add expected failures for StrongARM targets.
2651 * ld-selective/selective.exp: Add expected failure for ARM-COFF
2656 * ld-checks/asm.s: Use .long instead of .word.
2657 Replace custom section names with .text, .data and .bss.
2658 * ld-checks/script: Replace custom section names with .text, .data
2660 * ld-checks/checks.exp: Replace custom section names with .text,
2665 * ld-checks: New directory: Tests for the linker's
2666 --check-sections option.
2667 * ld-checks/checks.exp: New file.
2668 * ld-checks/script: Bogus linker script.
2669 * ld-checks/asm.s: Simple test assembler file.
2673 * ld-selective/selective.exp: Disable test for unsupported
2674 targets. Change tests to check for absence of symbols instead
2679 * config/default.exp (get_link_files): Quote target_triplet and CC
2680 when invoking shell.
2681 (get_target_emul): Likewise.
2685 * config/default.exp (get_link_files, get_target_emul): New procs;
2686 run shell commands to extract information from configure.host and
2687 configure.tgt in the source tree.
2688 (top level): Use them to get information needed to run tests, if
2689 not otherwise provided.
2691 * ld-shared/elf-offset.ld: New file. Builds a shared library, but
2692 gives non-zero addresses for memory region.
2693 * ld-shared/shared.exp: Run the non-PIC non-AIX test again using
2694 the new linker script.
2698 * ld-srec/srec.exp: Delete xfails for PPC Linux targets,
2699 newer glibc lets link succeed.
2703 * ld-elfvers/vers1.c: Add missing return types and values.
2704 * ld-elfvers/vers2.c: Likewise.
2705 * ld-elfvers/vers3.c: Likewise.
2706 * ld-elfvers/vers4.c: Likewise.
2707 * ld-elfvers/vers5.c: Likewise.
2708 * ld-elfvers/vers6.c: Likewise.
2709 * ld-elfvers/vers7.c: Likewise.
2710 * ld-elfvers/vers9.c: Likewise.
2711 * ld-elfvers/vers15.c: Likewise.
2715 * ld-selective: New directory with new files to test
2718 * lib/ld-lib.exp (ld_nm): Strip leading underscore from $name.
2722 * ld-elfvers/vers16.dsym: Work correctly on a system without
2723 versioned system libraries.
2727 * ld-elfvers/vers.exp: Run tests on alpha-linux.
2728 * ld-elfvers/*.sym, ld-elfvers/*.dsym: Adjust patters to match
2729 Alpha's use of st_other.
2733 * ld-elfvers/vers.exp (vers16, vers16a): New tests.
2734 * ld-elfvers/{vers16.*, vers16a.*}: New files.
2738 * ld-undefined/undefined.exp: Make undefined line test be an xfail
2739 for arm/thunb elf toolchains.
2743 * ld-undefined/undefined.exp: change test for elf/dwarf2 targets.
2745 * ld-srec/srec.exp: Arm-elf now passes this test.
2749 * ld-srec/srec.exp: Add arm/thumb-elf expected failures.
2753 * ld-bootstrap/bootstrap.exp: Don't run the --static bootstrap
2754 test if we don't have a static libbfd.a.
2759 * ld-srec/srec.exp: Add xfails for Alpha ELF targets.
2763 * ld-scripts/weak.t (.text, .data): Focus data to be used.
2764 (/DISCARD/): All the rest.
2765 * ld-scripts/weak1.s, ld-scripts/weak2.s: Put stuff in .data.
2769 * config/default.exp: Create tmpdir/gas subdirectory, add a
2770 symlink to as-new, and set gcc_gas_flag variable.
2771 * lib/ld-lib.exp (default_ld_compile): If the compiler appears to
2772 be gcc, use gcc_gas_flag when compiling.
2776 * ld-elfvers/vers.exp: Just check for i?86 rather than checking
2777 for i386, i486, and i586.
2778 (objdump_versionstuff): If we can't find the line, dump the file.
2782 * ld-scripts/phdrs.exp: Run test on *-*-eabi*.
2783 * ld-scripts/weak.exp: Likewise.
2787 * ld-srec/srec.exp: Add xfail for v850.
2789 * ld-undefined/undefined.exp: arm and thumb PE toolchains now pass
2794 * ld-scripts/weak.exp: New test.
2795 * ld-scripts/weak.t: New file.
2796 * ld-scripts/weak1.s: New file.
2797 * ld-scripts/weak2.s: New file.
2801 * ld-elfvers/vers.exp: Run tests on powerpc ELF targets.
2802 * ld-shared/shared.exp: Likewise.
2803 * ld-elfvers/vers1.dsym: Allow for .sdata.
2804 * ld-srec/srec.exp: Add setup_xfails for PowerPC Linux.
2808 * ld-srec/srec.exp: Add xfails for powerpc*-*-eabi.
2809 (run_srec_test): On mn10200, define __truncsipsi2_do_d2.
2810 * ld-srec/sr1.c (__main): Change return type to void.
2811 * ld-srec/sr3.cc (__main): Likewise.
2812 (__builtin_delete, __builtin_new): Likewise.
2813 (__get_dynamic_handler_chain): Return 0.
2814 (__get_eh_context): Likewise.
2818 * ld-undefined/undefined.exp: Add support for thumb-pe target.
2819 * ld-srec/srec.exp: Add support for arm-pe and thumb-pe targets.
2823 * ld-shared/shared.exp: Remove setup_xfails for m68k-linux.
2827 * ld-shared/main.c (shlib_overriddencall2): New function.
2828 (main): Call shlib_shlibcall2.
2829 * ld-shared/sh1.c (shlib_shlibcall2): New function.
2830 (shlib_overriddencall2): New function.
2831 * ld-shared/shared.dat: Add output line for new test.
2832 * ld-shared/sun4.dat: Likewise.
2834 * ld-srec/sr3.cc (__get_eh_context): New function.
2838 * ld-cdtest/cdtest-foo.h (class Foo): Declare len to be static to
2839 avoid compiler warning.
2840 * ld-srec/sr3.cc (class Foo): Likewise.
2844 * ld-srec/sr3.cc (__get_dynamic_handler_chain): New function.
2848 * ld-scripts/phdrs.exp: Adjust phdrs_regexp for a 64 bit target.
2852 * ld-srec/srec.exp: Duplicated Arm patch for Thumb targets.
2861 * ld-srec/srec.exp: Add expected failures of tests 1 and 2 for ARM
2866 * ld-cdtest/cdtest-foo.h (class Foo): Declare len to be int to
2867 avoid compiler warning.
2868 * ld-srec/sr3.cc (class Foo): Likewise.
2872 * lib/ld-lib.exp (default_ld_simple_link): Permit the linker to
2873 have any name when looking for entry symbol warnings.
2875 * ld-srec/sr3.cc (__eh_pc): Define.
2879 * ld-srec/sr3.cc: Add definitions for terminate, __terminate, and
2880 __throw, since the current g++ expects them to be defined.
2884 * ld-elfvers/vers.exp (objdump_emptyverstuff): Accept the output
2885 file if the string libc appears in it.
2886 (objdump_versionstuff): Accept unexpected lines in the output
2887 file. Compare lines using string match.
2888 * ld-elfvers/vers6.ver: Permit any value in the vna_other field.
2892 * ld-scripts/crossref.exp: Correct string quoting.
2896 * config/default.exp: Change ld, as, nm and strip from .new to
2897 -new. Load ld-lib.exp rather than ld.exp.
2898 * ld-bootstrap/bootstrap.exp: Use ld-new rather than ld.new.
2899 * lib/ld-lib.exp: Rename from lib/ld.exp, for the benefit of
2904 * ld-elfvers/vers.exp: Use egrep rather than grep when looking for
2909 * ld-shared/shared.exp: Add setup_xfail for m68k-linux on tests
2910 with non PIC shared libraries.
2914 * ld-elfvers/vers6.ver: Update for recent elflink.h patch to
2919 * ld-srec/srec.exp: Define ___get_dynamic_handler_chain as well.
2923 * ld-srec/srec.exp: Define __get_dynamic_handler_chain when
2928 * config/default.exp: Use $base_dir rather than $objdir when
2933 * ld-srec/srec.exp: Define various out of line prologue/epilogue
2934 functions for the mn10200 to avoid needing libgcc.a.
2938 * ld-srec/srec.exp: Don't expect failures on mips*-*-elf*.
2942 * ld-elfvers/vers.exp: Don't run on SunOS or AIX.
2946 * ld-elfvers/vers.exp, *: New tests for symbol versioning.
2947 * config/default.exp: Set ar and strip.
2951 * ld-bootstrap/bootstrap.exp: Use prune_warnings instead of
2953 * ld-cdtest/cdtest.exp: Ditto.
2954 * ld-scripts/crossref.exp: Ditto.
2955 * ld-sh/sh.exp: Ditto.
2956 * ld-shared/shared.exp: Ditto.
2957 * ld-srec/srec.exp: Ditto.
2958 * lib/ld.exp: Ditto.
2962 * ld-cdtest/cdtest.exp: Put a slash between $srcdir/$subdir.
2963 * ld-scripts/script.exp: Ditto.
2964 * ld-sh/sh.exp: Ditto.
2965 * ld-undefined/undefined.exp: Ditto.
2966 * ld-versados/versados.exp: Ditto.
2967 * lib/ld.exp: Ditto.
2971 * ld-scripts/crossref.exp: Fix quoting for --defsym $global$.
2975 * lib/ld.exp (default_ld_version): Fix for current version
2980 * ld-scripts/crossref.exp: Define $global$ for hppa-elf.
2984 * ld-scripts/cross2.t: Map XCOFF sections to .text or .data.
2986 * lib/ld.exp: Use verbose -log instead of calling both verbose and
2991 * ld-scripts/phdrs.exp: New test.
2992 * ld-scripts/phdrs.s, ld-scripts/phdrs.t: New files.
2996 * ld-scripts/crossref.exp: On a29k targets, use --defsym to define
3001 * ld-scripts/crossref.exp: New test.
3002 * ld-scripts/{cross1.c, cross2.c, cross3.c}: New files.
3003 * ld-scripts/{cross1.t, cross2.t}: New files.
3007 * ld-sh/sh.exp: Fix debugging messages.
3008 * ld-sh/sh1.s: Use .align 4.
3012 * ld-sh/sh.exp: Use -O when compiling with -mrelax.
3016 * ld-shared/shared.exp: Run the shared library tests on
3021 * ld-shared/shared.exp: Run the shared library tests on Linux.
3025 * ld-shared/shared.exp: Don't use -fpic on MIPS targets.
3029 * ld-srec/srec.exp: Add xfails for hppa*-*-*elf*.
3030 * ld-undefined/undefined.exp: Likewise.
3034 * ld-undefined/undefined.exp: ELF targets should now pass the
3035 undefined line test.
3039 * ld-empic/empic.exp: Update for change to MIPS disassembler.
3043 * ld-bootstrap/bootstrap.exp: Expect failure for mips*-*-irix5*
3044 when doing the --static test.
3045 * ld-shared/shared.exp: Run tests on mips*-*-irix5*.
3049 * ld-bootstrap/bootstrap.exp: On AIX, don't pass the -bI option
3050 when creating ld-partial.o.
3054 * ld-srec/srec.exp: If powerpc*-*-eabi*, use --defsym to define
3059 * ld-srec/srec.exp: Add setup_xfails for XCOFF targets.
3063 * ld-srec/srec.exp: On a29k targets, use --defsym to define
3065 * ld-srec/sr1.c (V_SPILL, V_FILL): Remove definitions.
3066 * ld-srec/sr3.cc: Likewise.
3068 * ld-srec/srec.exp: Remove i960 COFF setup_xfail.
3072 * ld-srec/srec.exp: Don't use [] in setup_xfail expressions.
3076 * ld-srec/srec.exp: Add setup_xfails for MIPS ELF targets.
3080 * ld-srec/srec.exp: Add setup_xfail for i960 COFF targets.
3084 * ld-srec/srec.exp: Add setup_xfail calls for i[345]86-*-aout*.
3086 * ld-srec/sr1.c (V_SPILL, V_FILL): Define.
3087 * ld-srec/sr3.cc: Likewise.
3091 * ld-empic/empic.exp: Update for changes in objdump output.
3095 * ld-srec/srec.exp: New tests.
3096 * ld-srec/sr1.c, ld-srec/sr2.c, ld-srec/sr3.cc: New files.
3097 * lib/ld.exp (ld_simple_link): Discard warnings about not being
3098 able to find the entry symbol.
3102 * ld-sh/sh2.c (__main): Define.
3106 * ld-empic/empic.exp: Accept a . in the address symbol.
3108 * ld-shared/shared.exp: Run tests on rs6000*-*-aix* and
3109 powerpc*-*-aix*. Add code to create appropriate exports files,
3110 and pass appropriate compilation flags, and test against
3111 appropriate expected output.
3112 * ld-shared/xcoff.dat: New file.
3113 * ld-shared/main.c: Put #ifndef XCOFF_TEST around tests that can
3114 not be linked using XCOFF. Use shlib_shlibvar1 as a sample
3115 function pointer, rather than shlib_mainvar.
3116 * ld-shared/sh1.c: Likewise.
3117 * ld-shared/shared.dat: Update for change from using shlib_mainvar
3118 to using shlib_shlibvar1.
3119 * ld-shared/sun4.dat: Likewise.
3123 * ld-scripts/script.t: Put .pr in .text, and .rw in .data, for
3124 convenience when testing XCOFF.
3128 * ld-bootstrap/bootstrap.exp: On AIX, pass -bI/lib/syscalls.exp
3129 along with --static.
3131 * ld-scripts/script.s: Make symbols global.
3135 * ld-undefined/undefined.exp: Add setup_xfails for arm*-*-pe*.
3139 * ld-undefined/undefined.exp: Use -e when invoking the linker, to
3140 prevent the SunOS linker from trying to create a shared library.
3144 * ld-shared/shared.exp: Run the tests on sparc*-*-sunos4*. Add
3145 appropriate modifications and setup_xfails.
3146 * ld-shared/sun4.dat: New file.
3150 * lib/ld.exp (default_ld_version): Call prune_system_crud.
3151 (default_ld_relocate, default_ld_link): Likewise.
3152 (default_ld_simple_link, default_ld_compile): Likewise.
3153 (default_ld_assemble, default_ld_nm): Likewise.
3157 * ld-cdtest/cdtest.exp: If the compiler does not exist, mark the
3158 tests as untested rather than unresolved.
3162 * ld-sh/sh.exp: Call prune_system_crud on the output of cmp.
3166 * ld-scripts/script.exp: Split script verification into a proc.
3167 Add simple test of MRI script.
3168 * ld-scripts/scriptm.t: New file.
3172 * ld-sh/sh.exp: Mark `SH confirm relaxing' test unresolved when
3177 * config/default.exp: Define objcopy if it is not defined.
3178 * ld-sh/*: New tests for SH relaxing.
3180 * ld-empic/empic.exp: If $CC does not exist, call untested rather
3185 * ld-undefined/undefined.exp: If $CC does not exist, mark the
3186 tests as untested rather than unresolved. Clear ELF xfails for
3187 mips*, not just mips.
3191 * ld-undefined/undefined.exp: Add setup_xfail for sh-*-* for
3192 undefined line test.
3196 * ld-undefined/undefined.exp: New test, to check reporting of
3198 * ld-undefined/undefined.c: New file.
3202 * ld-versados/versados.exp: If a test fails, report it correctly:
3203 don't try to run the next test, and don't report a pass as well as
3208 * versados/(t1,t2).ld: End in newlines.
3212 * lib/ld.exp (default_ld_compile): If cc argument is multiple
3213 words, use only the first when trying to verify the availability
3218 * ld-scripts/defined.t: Mention .data and .bss explicitly.
3222 * ld-bootstrap/bootstrap.exp: If not in the ld build directory,
3223 call untested for each test, rather than ignoring it. If one test
3224 fails, go on to the next one instead of returning.
3225 * ld-cdtest/cdtest.exp: If compilations fail, mark tests as
3227 * ld-empic/empic.exp: Likewise. Also, always pass the same test
3228 name to pass or fail.
3229 * ld-shared/shared.exp: Likewise. Also, always run all tests.
3230 * ld-scripts/defined.exp: If as or nm fail, mark test as
3231 unresolved. Always pass the same test name to pass or fail.
3232 * ld-scripts/script.exp: Likewise.
3233 * ld-scripts/sizeof.exp: Likewise.
3237 * ld-scripts/sizeof.exp: New test, based on bug report from
3239 * ld-scripts/sizeof.s: New file.
3240 * ld-scripts/sizeof.t: New file.
3244 * lib/ld.exp: Use [which $ld] rather than [file exists $ld] to see
3245 if the linker exists.
3249 * lib/ld.exp (prune_system_crud): Define if not already defined,
3250 in case the user isn't using the newest DejaGnu version that we
3251 haven't released to the net yet.
3255 * config/default.exp: Define objdump if it is not defined.
3256 * ld-empic/*: New tests to test -membedded-pic code.
3260 * ld-bootstrap/bootstrap.exp: Pass cmp output through
3262 * ld-cdtest/cdtest.exp: Pass diff output through
3264 * ld-shared/shared.exp: Likewise.
3266 * config/default.exp: Remove unused and useless proc ld_load.
3270 * lib/ld.exp (default_ld_compile): Remove the output file before
3273 * ld-shared/shared.exp: Move common test code into a procedure.
3274 Add tests for compiling the non shared code PIC.
3275 * ld-shared/main.c (main): Call main_called, and print the result.
3276 * ld-shared/shared.dat: Adjust accordingly.
3280 * ld-shared: New directory, with new files to test generating ELF
3283 * lib/ld.exp (default_ld_compile): If the compilation worked, but
3284 no object file was created, check to see if the compiler foolishly
3285 ignored the -o switch when compiling, and move the resulting
3290 * VMS does not permits `.' in directory names. Renamed
3291 ld.bootstrap to ld-bootstrap, ld.cdtest to ld-cdtest, and
3292 ld.scripts to ld-scripts.
3296 * config/default.exp: Set variables as and nm. Create tmpdir if
3297 it does not already exist.
3298 * ld.bootstrap/bootstrap.exp: Don't create tmpdir here.
3299 * ld.cdtest/cdtest.exp: Likewise.
3300 * ld.scripts/defined.exp: Likewise. Also, don't set as and nm
3301 here. Change perror for no variables found to fail.
3302 * ld.scripts/script.exp: New test.
3303 * ld.scripts/script.t, ld.scripts/script.s: New files.
3307 * ld.scripts: New directory.
3308 * ld.scripts/defined.exp, ld.scripts/defined.s: New files.
3309 * ld.scripts/defined.t: New file.
3310 * lib/ld.exp (default_ld_simple_link): New function.
3311 (default_ld_assemble, default_ld_nm): New functions.
3312 * config/default.exp: Rename from unix-ld.exp.
3313 (ld_simple_link, ld_assemble, ld_nm): New functions.
3315 * config/unix-ld.exp: Set ld using findfile.
3316 * lib/ld.exp (default_ld_relocate): Return a value. Change format
3318 (default_ld_compile): Likewise.
3319 (default_ld_link): Likewise. Also, don't include $BFDLIB and
3321 * ld.bootstrap/bootstrap.exp: Rewrite.
3322 * ld.cdtest/cdtest.exp: Rewrite.
3323 * ld.cdtest/cdtest-foo.cc: Update from top level ld directory.
3324 * ld.cdtest/cdtest-foo.h: Likewise.
3325 * ld.cdtest/cdtest-main.cc: Likewise.
3329 * ld.cdtest/cdtest.exp: Don't look for $result before it's
3334 * ld.bootstrap/bootstrap.exp, lib/ld.exp: Replace error proc
3335 calls with perror calls.
3339 * ld.cdtest/cdtest-bar.cc: Renamed from cdtest-func.cc.
3340 * ld.cdtest/cdtest.exp: Adjusted.
3344 * lib/ld.exp (simple_diff): Indicate failure if files have
3345 different numbers of lines. Don't muck with $differences to avoid
3346 indicating a pass, just return.
3348 * ld.cdtest/{cdtest-foo.h,cdtest-foo.cc,cdtest-main.cc}:
3349 Fix test case to be valid ANSI C++. Don't require use of header
3350 files, so "../gcc/xgcc -B../gcc/" can be used for CXX.
3351 * ld.cdtest/cdtest.exp: Combine "rm" lines. Add some
3352 commentary on things that are still broken with this test case.
3356 * ld.cdtest/cdtest.exp: Added CXXFLAGS to compile stage.
3360 * lib/ld.exp: add compiler and linker support
3361 * config/unix-ld.exp: add compiler and linker support
3362 * ld.bootstrap/bootstrap.exp: fixed to do partial links
3363 * ld.cdtest/cdtest.exp: constructor/destructor testscase
3367 * lib/ld.exp: new file
3368 * config/unix-ld.exp: new file
3369 * ld.bootstrap/bootstrap.exp: new file
3375 version-control: never