3 * ld-elfvers/vers1.c: Add missing prototypes and include
4 <stdio.h> if necessary.
5 * ld-elfvers/vers15.c: Likewise.
6 * ld-elfvers/vers19.c: Likewise.
7 * ld-elfvers/vers2.c: Likewise.
8 * ld-elfvers/vers3.c: Likewise.
9 * ld-elfvers/vers4.c: Likewise.
10 * ld-elfvers/vers6.c: Likewise.
11 * ld-elfvers/vers7.c: Likewise.
12 * ld-elfvers/vers9.c: Likewise.
13 * ld-shared/main.c: Likewise.
14 * ld-srec/sr3.cc (Foo::Foo): Remove arg name.
18 * ld-undefined/undefined.exp: XFAIL on IRIX6 for the usual as
19 with other DWARF2 targets.
23 * ld-undefined/undefined.exp: Do not expect arm toolchains to fail
24 the undefined line test.
28 * ld-elfvers/vers.exp: Use -rpath in new vers19 test.
32 * ld-elfvers/vers.exp: Add new tests vers17 to vers19.
33 * ld/elfvers/{vers17.*, vers18.*, vers19.*}: New files.
37 * ld-checks/asm.s: Use a symbol name for .lcomm.
38 * ld-checks/checks.exp: Use different names for the two tests.
39 Don't add extra text when invoking fail.
43 * ld-scripts/phdrs.exp: Change target check from "*-*-linuxaout*"
45 * ld-scripts/weak.exp: Likewise.
46 * ld-shared/shared.exp: Likewise. Simplify condition a bit.
50 * ld-cdtest/cdtest-main.cc: Avoid `implicit int' warning.
51 * ld-shared/sh1.c: Fix typo.
55 * lib/ld-lib.exp (default_ld_nm): Clear nm_output first if
60 * ld-undefined/undefined.exp: Add xfail for mcore-elf.
64 * ld-srec/srec.exp: Do not run tests for PE based ports.
68 * ld-selective/selective.exp: Do not run tests for COFF or PE
73 * ld-undefined/undefined.exp: Add expected failures for StrongARM
76 * ld-srec/srec.exp: Add expected failures for StrongARM targets.
78 * ld-selective/selective.exp: Add expected failure for ARM-COFF
83 * ld-checks/asm.s: Use .long instead of .word.
84 Replace custom section names with .text, .data and .bss.
85 * ld-checks/script: Replace custom section names with .text, .data
87 * ld-checks/checks.exp: Replace custom section names with .text,
92 * ld-checks: New directory: Tests for the linker's
93 --check-sections option.
94 * ld-checks/checks.exp: New file.
95 * ld-checks/script: Bogus linker script.
96 * ld-checks/asm.s: Simple test assembler file.
100 * ld-selective/selective.exp: Disable test for unsupported
101 targets. Change tests to check for absence of symbols instead
106 * config/default.exp (get_link_files): Quote target_triplet and CC
108 (get_target_emul): Likewise.
112 * config/default.exp (get_link_files, get_target_emul): New procs;
113 run shell commands to extract information from configure.host and
114 configure.tgt in the source tree.
115 (top level): Use them to get information needed to run tests, if
116 not otherwise provided.
118 * ld-shared/elf-offset.ld: New file. Builds a shared library, but
119 gives non-zero addresses for memory region.
120 * ld-shared/shared.exp: Run the non-PIC non-AIX test again using
121 the new linker script.
125 * ld-srec/srec.exp: Delete xfails for PPC Linux targets,
126 newer glibc lets link succeed.
130 * ld-elfvers/vers1.c: Add missing return types and values.
131 * ld-elfvers/vers2.c: Likewise.
132 * ld-elfvers/vers3.c: Likewise.
133 * ld-elfvers/vers4.c: Likewise.
134 * ld-elfvers/vers5.c: Likewise.
135 * ld-elfvers/vers6.c: Likewise.
136 * ld-elfvers/vers7.c: Likewise.
137 * ld-elfvers/vers9.c: Likewise.
138 * ld-elfvers/vers15.c: Likewise.
142 * ld-selective: New directory with new files to test
145 * lib/ld-lib.exp (ld_nm): Strip leading underscore from $name.
149 * ld-elfvers/vers16.dsym: Work correctly on a system without
150 versioned system libraries.
154 * ld-elfvers/vers.exp: Run tests on alpha-linux.
155 * ld-elfvers/*.sym, ld-elfvers/*.dsym: Adjust patters to match
156 Alpha's use of st_other.
160 * ld-elfvers/vers.exp (vers16, vers16a): New tests.
161 * ld-elfvers/{vers16.*, vers16a.*}: New files.
165 * ld-undefined/undefined.exp: Make undefined line test be an xfail
166 for arm/thunb elf toolchains.
170 * ld-undefined/undefined.exp: change test for elf/dwarf2 targets.
172 * ld-srec/srec.exp: Arm-elf now passes this test.
176 * ld-srec/srec.exp: Add arm/thumb-elf expected failures.
180 * ld-bootstrap/bootstrap.exp: Don't run the --static bootstrap
181 test if we don't have a static libbfd.a.
186 * ld-srec/srec.exp: Add xfails for Alpha ELF targets.
190 * ld-scripts/weak.t (.text, .data): Focus data to be used.
191 (/DISCARD/): All the rest.
192 * ld-scripts/weak1.s, ld-scripts/weak2.s: Put stuff in .data.
196 * config/default.exp: Create tmpdir/gas subdirectory, add a
197 symlink to as-new, and set gcc_gas_flag variable.
198 * lib/ld-lib.exp (default_ld_compile): If the compiler appears to
199 be gcc, use gcc_gas_flag when compiling.
203 * ld-elfvers/vers.exp: Just check for i?86 rather than checking
204 for i386, i486, and i586.
205 (objdump_versionstuff): If we can't find the line, dump the file.
209 * ld-scripts/phdrs.exp: Run test on *-*-eabi*.
210 * ld-scripts/weak.exp: Likewise.
214 * ld-srec/srec.exp: Add xfail for v850.
216 * ld-undefined/undefined.exp: arm and thumb PE toolchains now pass
221 * ld-scripts/weak.exp: New test.
222 * ld-scripts/weak.t: New file.
223 * ld-scripts/weak1.s: New file.
224 * ld-scripts/weak2.s: New file.
228 * ld-elfvers/vers.exp: Run tests on powerpc ELF targets.
229 * ld-shared/shared.exp: Likewise.
230 * ld-elfvers/vers1.dsym: Allow for .sdata.
231 * ld-srec/srec.exp: Add setup_xfails for PowerPC Linux.
235 * ld-srec/srec.exp: Add xfails for powerpc*-*-eabi.
236 (run_srec_test): On mn10200, define __truncsipsi2_do_d2.
237 * ld-srec/sr1.c (__main): Change return type to void.
238 * ld-srec/sr3.cc (__main): Likewise.
239 (__builtin_delete, __builtin_new): Likewise.
240 (__get_dynamic_handler_chain): Return 0.
241 (__get_eh_context): Likewise.
245 * ld-undefined/undefined.exp: Add support for thumb-pe target.
246 * ld-srec/srec.exp: Add support for arm-pe and thumb-pe targets.
250 * ld-shared/shared.exp: Remove setup_xfails for m68k-linux.
254 * ld-shared/main.c (shlib_overriddencall2): New function.
255 (main): Call shlib_shlibcall2.
256 * ld-shared/sh1.c (shlib_shlibcall2): New function.
257 (shlib_overriddencall2): New function.
258 * ld-shared/shared.dat: Add output line for new test.
259 * ld-shared/sun4.dat: Likewise.
261 * ld-srec/sr3.cc (__get_eh_context): New function.
265 * ld-cdtest/cdtest-foo.h (class Foo): Declare len to be static to
266 avoid compiler warning.
267 * ld-srec/sr3.cc (class Foo): Likewise.
271 * ld-srec/sr3.cc (__get_dynamic_handler_chain): New function.
275 * ld-scripts/phdrs.exp: Adjust phdrs_regexp for a 64 bit target.
279 * ld-srec/srec.exp: Duplicated Arm patch for Thumb targets.
288 * ld-srec/srec.exp: Add expected failures of tests 1 and 2 for ARM
293 * ld-cdtest/cdtest-foo.h (class Foo): Declare len to be int to
294 avoid compiler warning.
295 * ld-srec/sr3.cc (class Foo): Likewise.
299 * lib/ld-lib.exp (default_ld_simple_link): Permit the linker to
300 have any name when looking for entry symbol warnings.
302 * ld-srec/sr3.cc (__eh_pc): Define.
306 * ld-srec/sr3.cc: Add definitions for terminate, __terminate, and
307 __throw, since the current g++ expects them to be defined.
311 * ld-elfvers/vers.exp (objdump_emptyverstuff): Accept the output
312 file if the string libc appears in it.
313 (objdump_versionstuff): Accept unexpected lines in the output
314 file. Compare lines using string match.
315 * ld-elfvers/vers6.ver: Permit any value in the vna_other field.
319 * ld-scripts/crossref.exp: Correct string quoting.
323 * config/default.exp: Change ld, as, nm and strip from .new to
324 -new. Load ld-lib.exp rather than ld.exp.
325 * ld-bootstrap/bootstrap.exp: Use ld-new rather than ld.new.
326 * lib/ld-lib.exp: Rename from lib/ld.exp, for the benefit of
331 * ld-elfvers/vers.exp: Use egrep rather than grep when looking for
336 * ld-shared/shared.exp: Add setup_xfail for m68k-linux on tests
337 with non PIC shared libraries.
341 * ld-elfvers/vers6.ver: Update for recent elflink.h patch to
346 * ld-srec/srec.exp: Define ___get_dynamic_handler_chain as well.
350 * ld-srec/srec.exp: Define __get_dynamic_handler_chain when
355 * config/default.exp: Use $base_dir rather than $objdir when
360 * ld-srec/srec.exp: Define various out of line prologue/epilogue
361 functions for the mn10200 to avoid needing libgcc.a.
365 * ld-srec/srec.exp: Don't expect failures on mips*-*-elf*.
369 * ld-elfvers/vers.exp: Don't run on SunOS or AIX.
373 * ld-elfvers/vers.exp, *: New tests for symbol versioning.
374 * config/default.exp: Set ar and strip.
378 * ld-bootstrap/bootstrap.exp: Use prune_warnings instead of
380 * ld-cdtest/cdtest.exp: Ditto.
381 * ld-scripts/crossref.exp: Ditto.
382 * ld-sh/sh.exp: Ditto.
383 * ld-shared/shared.exp: Ditto.
384 * ld-srec/srec.exp: Ditto.
389 * ld-cdtest/cdtest.exp: Put a slash between $srcdir/$subdir.
390 * ld-scripts/script.exp: Ditto.
391 * ld-sh/sh.exp: Ditto.
392 * ld-undefined/undefined.exp: Ditto.
393 * ld-versados/versados.exp: Ditto.
398 * ld-scripts/crossref.exp: Fix quoting for --defsym $global$.
402 * lib/ld.exp (default_ld_version): Fix for current version
407 * ld-scripts/crossref.exp: Define $global$ for hppa-elf.
411 * ld-scripts/cross2.t: Map XCOFF sections to .text or .data.
413 * lib/ld.exp: Use verbose -log instead of calling both verbose and
418 * ld-scripts/phdrs.exp: New test.
419 * ld-scripts/phdrs.s, ld-scripts/phdrs.t: New files.
423 * ld-scripts/crossref.exp: On a29k targets, use --defsym to define
428 * ld-scripts/crossref.exp: New test.
429 * ld-scripts/{cross1.c, cross2.c, cross3.c}: New files.
430 * ld-scripts/{cross1.t, cross2.t}: New files.
434 * ld-sh/sh.exp: Fix debugging messages.
435 * ld-sh/sh1.s: Use .align 4.
439 * ld-sh/sh.exp: Use -O when compiling with -mrelax.
443 * ld-shared/shared.exp: Run the shared library tests on
448 * ld-shared/shared.exp: Run the shared library tests on Linux.
452 * ld-shared/shared.exp: Don't use -fpic on MIPS targets.
456 * ld-srec/srec.exp: Add xfails for hppa*-*-*elf*.
457 * ld-undefined/undefined.exp: Likewise.
461 * ld-undefined/undefined.exp: ELF targets should now pass the
466 * ld-empic/empic.exp: Update for change to MIPS disassembler.
470 * ld-bootstrap/bootstrap.exp: Expect failure for mips*-*-irix5*
471 when doing the --static test.
472 * ld-shared/shared.exp: Run tests on mips*-*-irix5*.
476 * ld-bootstrap/bootstrap.exp: On AIX, don't pass the -bI option
477 when creating ld-partial.o.
481 * ld-srec/srec.exp: If powerpc*-*-eabi*, use --defsym to define
486 * ld-srec/srec.exp: Add setup_xfails for XCOFF targets.
490 * ld-srec/srec.exp: On a29k targets, use --defsym to define
492 * ld-srec/sr1.c (V_SPILL, V_FILL): Remove definitions.
493 * ld-srec/sr3.cc: Likewise.
495 * ld-srec/srec.exp: Remove i960 COFF setup_xfail.
499 * ld-srec/srec.exp: Don't use [] in setup_xfail expressions.
503 * ld-srec/srec.exp: Add setup_xfails for MIPS ELF targets.
507 * ld-srec/srec.exp: Add setup_xfail for i960 COFF targets.
511 * ld-srec/srec.exp: Add setup_xfail calls for i[345]86-*-aout*.
513 * ld-srec/sr1.c (V_SPILL, V_FILL): Define.
514 * ld-srec/sr3.cc: Likewise.
518 * ld-empic/empic.exp: Update for changes in objdump output.
522 * ld-srec/srec.exp: New tests.
523 * ld-srec/sr1.c, ld-srec/sr2.c, ld-srec/sr3.cc: New files.
524 * lib/ld.exp (ld_simple_link): Discard warnings about not being
525 able to find the entry symbol.
529 * ld-sh/sh2.c (__main): Define.
533 * ld-empic/empic.exp: Accept a . in the address symbol.
535 * ld-shared/shared.exp: Run tests on rs6000*-*-aix* and
536 powerpc*-*-aix*. Add code to create appropriate exports files,
537 and pass appropriate compilation flags, and test against
538 appropriate expected output.
539 * ld-shared/xcoff.dat: New file.
540 * ld-shared/main.c: Put #ifndef XCOFF_TEST around tests that can
541 not be linked using XCOFF. Use shlib_shlibvar1 as a sample
542 function pointer, rather than shlib_mainvar.
543 * ld-shared/sh1.c: Likewise.
544 * ld-shared/shared.dat: Update for change from using shlib_mainvar
545 to using shlib_shlibvar1.
546 * ld-shared/sun4.dat: Likewise.
550 * ld-scripts/script.t: Put .pr in .text, and .rw in .data, for
551 convenience when testing XCOFF.
555 * ld-bootstrap/bootstrap.exp: On AIX, pass -bI/lib/syscalls.exp
558 * ld-scripts/script.s: Make symbols global.
562 * ld-undefined/undefined.exp: Add setup_xfails for arm*-*-pe*.
566 * ld-undefined/undefined.exp: Use -e when invoking the linker, to
567 prevent the SunOS linker from trying to create a shared library.
571 * ld-shared/shared.exp: Run the tests on sparc*-*-sunos4*. Add
572 appropriate modifications and setup_xfails.
573 * ld-shared/sun4.dat: New file.
577 * lib/ld.exp (default_ld_version): Call prune_system_crud.
578 (default_ld_relocate, default_ld_link): Likewise.
579 (default_ld_simple_link, default_ld_compile): Likewise.
580 (default_ld_assemble, default_ld_nm): Likewise.
584 * ld-cdtest/cdtest.exp: If the compiler does not exist, mark the
585 tests as untested rather than unresolved.
589 * ld-sh/sh.exp: Call prune_system_crud on the output of cmp.
593 * ld-scripts/script.exp: Split script verification into a proc.
594 Add simple test of MRI script.
595 * ld-scripts/scriptm.t: New file.
599 * ld-sh/sh.exp: Mark `SH confirm relaxing' test unresolved when
604 * config/default.exp: Define objcopy if it is not defined.
605 * ld-sh/*: New tests for SH relaxing.
607 * ld-empic/empic.exp: If $CC does not exist, call untested rather
612 * ld-undefined/undefined.exp: If $CC does not exist, mark the
613 tests as untested rather than unresolved. Clear ELF xfails for
614 mips*, not just mips.
618 * ld-undefined/undefined.exp: Add setup_xfail for sh-*-* for
623 * ld-undefined/undefined.exp: New test, to check reporting of
625 * ld-undefined/undefined.c: New file.
629 * ld-versados/versados.exp: If a test fails, report it correctly:
630 don't try to run the next test, and don't report a pass as well as
635 * ld/testsuite/versados/(t1,t2).ld: End in newlines.
639 * lib/ld.exp (default_ld_compile): If cc argument is multiple
640 words, use only the first when trying to verify the availability
645 * ld-scripts/defined.t: Mention .data and .bss explicitly.
649 * ld-bootstrap/bootstrap.exp: If not in the ld build directory,
650 call untested for each test, rather than ignoring it. If one test
651 fails, go on to the next one instead of returning.
652 * ld-cdtest/cdtest.exp: If compilations fail, mark tests as
654 * ld-empic/empic.exp: Likewise. Also, always pass the same test
655 name to pass or fail.
656 * ld-shared/shared.exp: Likewise. Also, always run all tests.
657 * ld-scripts/defined.exp: If as or nm fail, mark test as
658 unresolved. Always pass the same test name to pass or fail.
659 * ld-scripts/script.exp: Likewise.
660 * ld-scripts/sizeof.exp: Likewise.
664 * ld-scripts/sizeof.exp: New test, based on bug report from
666 * ld-scripts/sizeof.s: New file.
667 * ld-scripts/sizeof.t: New file.
671 * lib/ld.exp: Use [which $ld] rather than [file exists $ld] to see
672 if the linker exists.
676 * lib/ld.exp (prune_system_crud): Define if not already defined,
677 in case the user isn't using the newest DejaGnu version that we
678 haven't released to the net yet.
682 * config/default.exp: Define objdump if it is not defined.
683 * ld-empic/*: New tests to test -membedded-pic code.
687 * ld-bootstrap/bootstrap.exp: Pass cmp output through
689 * ld-cdtest/cdtest.exp: Pass diff output through
691 * ld-shared/shared.exp: Likewise.
693 * config/default.exp: Remove unused and useless proc ld_load.
697 * lib/ld.exp (default_ld_compile): Remove the output file before
700 * ld-shared/shared.exp: Move common test code into a procedure.
701 Add tests for compiling the non shared code PIC.
702 * ld-shared/main.c (main): Call main_called, and print the result.
703 * ld-shared/shared.dat: Adjust accordingly.
707 * ld-shared: New directory, with new files to test generating ELF
710 * lib/ld.exp (default_ld_compile): If the compilation worked, but
711 no object file was created, check to see if the compiler foolishly
712 ignored the -o switch when compiling, and move the resulting
717 * VMS does not permits `.' in directory names. Renamed
718 ld.bootstrap to ld-bootstrap, ld.cdtest to ld-cdtest, and
719 ld.scripts to ld-scripts.
723 * config/default.exp: Set variables as and nm. Create tmpdir if
724 it does not already exist.
725 * ld.bootstrap/bootstrap.exp: Don't create tmpdir here.
726 * ld.cdtest/cdtest.exp: Likewise.
727 * ld.scripts/defined.exp: Likewise. Also, don't set as and nm
728 here. Change perror for no variables found to fail.
729 * ld.scripts/script.exp: New test.
730 * ld.scripts/script.t, ld.scripts/script.s: New files.
734 * ld.scripts: New directory.
735 * ld.scripts/defined.exp, ld.scripts/defined.s: New files.
736 * ld.scripts/defined.t: New file.
737 * lib/ld.exp (default_ld_simple_link): New function.
738 (default_ld_assemble, default_ld_nm): New functions.
739 * config/default.exp: Rename from unix-ld.exp.
740 (ld_simple_link, ld_assemble, ld_nm): New functions.
742 * config/unix-ld.exp: Set ld using findfile.
743 * lib/ld.exp (default_ld_relocate): Return a value. Change format
745 (default_ld_compile): Likewise.
746 (default_ld_link): Likewise. Also, don't include $BFDLIB and
748 * ld.bootstrap/bootstrap.exp: Rewrite.
749 * ld.cdtest/cdtest.exp: Rewrite.
750 * ld.cdtest/cdtest-foo.cc: Update from top level ld directory.
751 * ld.cdtest/cdtest-foo.h: Likewise.
752 * ld.cdtest/cdtest-main.cc: Likewise.
756 * ld.cdtest/cdtest.exp: Don't look for $result before it's
761 * ld.bootstrap/bootstrap.exp, lib/ld.exp: Replace error proc
762 calls with perror calls.
766 * ld.cdtest/cdtest-bar.cc: Renamed from cdtest-func.cc.
767 * ld.cdtest/cdtest.exp: Adjusted.
771 * lib/ld.exp (simple_diff): Indicate failure if files have
772 different numbers of lines. Don't muck with $differences to avoid
773 indicating a pass, just return.
775 * testsuite/ld.cdtest/{cdtest-foo.h,cdtest-foo.cc,cdtest-main.cc}:
776 Fix test case to be valid ANSI C++. Don't require use of header
777 files, so "../gcc/xgcc -B../gcc/" can be used for CXX.
778 * testsuite/ld.cdtest/cdtest.exp: Combine "rm" lines. Add some
779 commentary on things that are still broken with this test case.
783 * testsuite/ld.cdtest/cdtest.exp: Added CXXFLAGS to compile stage.
787 * testsuite/lib/ld.exp: add compiler and linker support
788 * testsuite/config/unix-ld.exp: add compiler and linker support
789 * testsuite/ld.bootstrap/bootstrap.exp: fixed to do partial links
790 * testsuite/ld.cdtest/cdtest.exp: constructor/destructor testscase
794 * testsuite/lib/ld.exp: new file
795 * testsuite/config/unix-ld.exp: new file
796 * testsuite/ld.bootstrap/bootstrap.exp: new file