Commit Graph

161 Commits

Author SHA1 Message Date
David O'Brien
358a550280 2001-04-01 David O'Brien <obrien@FreeBSD.org>
* ld-undefined/undefined.exp: XFAIL on FreeBSD/i386 for the usual (even
	though it doesn't use DWARF2 yet (but its output is identical).

Approved by:  Alan Modra <alan@linuxcare.com.au>
              <Pine.LNX.4.21.0104021511350.487-100000@front.linuxcare.com.au>
2001-04-02 23:44:03 +00:00
David O'Brien
44df2f94b9 001-04-01 David O'Brien <obrien@FreeBSD.org>
* ld-selective/selective.exp: Use -O with gcc rather than -O2.
	This optimization level is buggy on some platforms, and this test
	is not intended to test compiler optimizations.

Approved by:  Alan Modra <alan@linuxcare.com.au>
              <Pine.LNX.4.21.0104021510450.487-100000@front.linuxcare.com.au>
2001-04-02 23:33:20 +00:00
Nick Clifton
a2b64bede3 Fixtypos in ChangeLogs, fix copyright dates in files 2001-03-13 06:14:29 +00:00
DJ Delorie
b536df83ee * ld-scripts/cross2.t: Support any type of text/data sections, not
just the canonical ones.
2001-03-06 23:03:28 +00:00
Matthew Hiller
1688b748f1 2001-02-28 Matt Hiller <hiller@redhat.com>
* testsuite/ld-scripts/crossref.exp: Initialize flags to
	[big_or_little_endian].
	* testsuite/ld-undefined/undefined.exp: Ditto, and include $flags
	in ld invocations.
	* testsuite/lib/ld-lib.exp (big_or_little_endian): Recognize -EB,
	-eb, EL and el.
	(is_endian_output_format): New function.
	(default_ld_link): Set flags to [big_or_little_endian] only if ld
	is being invoked such that the output format being used is of
	known endianness.
	(default_ld_simple_link): Ditto.
2001-03-01 19:13:27 +00:00
Timothy Wall
41c4999810 Add ia64-*-aix* configuration. 2001-02-22 17:24:33 +00:00
H.J. Lu
ad995491f8 2001-02-14 H.J. Lu <hjl@gnu.org>
* ld-bootstrap/bootstrap.exp: Rebuild tmpdir/ld2 with tmpdir/ld3
	for -static on ia64.

	* ld-checks/checks.exp: Don't run on ia64-*-elf* nor
	ia64-*-linux*.

	* ld-elfvers/vers.exp: Also run ia64-*-elf* and ia64-*-linux*.

	* ld-elfvsb/elfvsb.exp: Use i?86-*-*. Also run on ia64-*-linux*.
	Set up expected failures for ia64-*-linux*.
	* ld-shared/shared.exp: Likewise.
2001-02-15 01:17:07 +00:00
Stephane Carrez
fef67c28c8 * ld-srec/srec.exp (run_srec_test): m6811 code has references
to soft registers, define them with --defsym.
	* ld-selective/selective.exp: Likewise.
2001-02-08 18:57:47 +00:00
Hans-Peter Nilsson
332dac408a * ld-sh/sh.exp: Use --oformat srec, not -oformat srec. 2001-01-13 23:13:16 +00:00
Phil Blundell
2ffd68ef6e 2001-01-03 Philip Blundell <pb@futuretv.com>
* ld-elfvsb/elfvsb.exp: Run test on Linux/Alpha.
	* ld-shared/shared.exp: Likewise.
2001-01-03 09:51:52 +00:00
Phil Blundell
7dc542b23c 2001-01-01 Philip Blundell <philb@gnu.org>
* ld-undefined/weak-undef.exp: New test.
	* ld-undefined/weak-undef.s, ld-undefined/weak-undef.t: Supporting
	files for above.
2001-01-01 14:54:03 +00:00
Phil Blundell
4f38fc1c6c 2001-01-01 Philip Blundell <philb@gnu.org>
* ld-elfvers/vers.exp: Run test on Linux/ARM.
	* ld-elfvsb/elfvsb.exp: Likewise.
	* ld-shared/shared.exp: Likewise.
2001-01-01 14:52:34 +00:00
Nick Clifton
0fc3347a5c Fix problems with new EXACTLY_TWO_DASHES command line switch option. 2000-12-31 19:56:04 +00:00
Nick Clifton
f66736412d Fix v850 test failures 2000-12-09 23:44:17 +00:00
Nick Clifton
bad19f8fb6 Expect the srec_test to fail for ARM targets because the -oformat linker
command switch cannot be used.
2000-12-09 20:24:34 +00:00
Alan Modra
1566ad5dd3 Fix compilation warnings as otherwise we fail the test. 2000-11-06 10:07:06 +00:00
Hans-Peter Nilsson
4291c3fa65 * ld-selective/selective.exp <no CXX>: Fix typo for argument to
"untested".
2000-10-29 17:21:03 +00:00
H.J. Lu
d1d8dddfbd 2000-10-19 H.J. Lu (hjl@gnu.org)
* ld-elfvsb/elfvsb.exp (visibility_run): Set expected failures
	for Linux/PPC.
	* ld-shared/shared.exp: Likewise.
2000-10-19 19:52:28 +00:00
Hans-Peter Nilsson
d63083ef85 * ld-selective/selective.exp: Rearrange to be table-driven. 2000-10-09 01:35:13 +00:00
Alan Modra
dc149a6d17 * ld-scripts/phdrs.exp: hppa*64*-*-* is 64-bit ELF too 2000-10-07 13:57:29 +00:00
Alan Modra
65420b22d1 Remove some hppa-elf fudges. 2000-10-02 10:18:14 +00:00
Hans-Peter Nilsson
bd0110a3cb * ld-selective/5.cc: New test.
* ld-selective/selective.exp: Run it as xfailed.

	* ld-selective/4.cc: Correct spelling of "lose".
2000-09-28 22:57:26 +00:00
Alan Modra
3231d22e8f Shared lib support for elf32-hppa 2000-09-05 04:07:46 +00:00
Alexandre Oliva
6545f5fb9f * ld-undefined/undefined.exp (hppa*64*-*-*, mn10300-*-elf,
sh-*-*): With dwarf-2, `undefined function' can't pass.
2000-08-30 22:01:47 +00:00
H.J. Lu
e1753d2c28 2000-08-03 H.J. Lu (hjl@gnu.org)
* ld-bootstrap/bootstrap.exp: Add strip.
2000-08-03 18:31:50 +00:00
H.J. Lu
360e95866f 2000-07-24 H.J. Lu (hjl@gnu.org)
* ld-elfvsb/elfvsb.exp: Add -g to $CC to get the location of
	the undefined reference.
2000-07-24 15:40:20 +00:00
H.J. Lu
08c44e659e 2000-07-16 H.J. Lu (hjl@gnu.org)
* ld-elfvsb/elfvsb.exp (support_protected): New variable. Check
	and set to "yes" if the protected visibility is expected to
	pass.
	(visibility_run): Set expected to fail for the "protected"
	and "protected_undef_def" tests only if $support_protected is
	"no".

	* ld-elfvsb/main.c (PROTECTED_CHECK): Check for the protected
	visibility support if defined.
2000-07-16 21:29:32 +00:00
H.J. Lu
1345a0c087 2000-07-15 H.J. Lu (hjl@gnu.org)
* ld-elfvsb/elfvsb.exp (visibility_run): Set expected failure
	for "protected_undef_def".

	* ld-elfvsb/main.c: Don't define HIDDEN_UNDEF_TEST when
	PROTECTED_WEAK_TEST is defined.
	Don't define PROTECTED_UNDEF_TEST when PROTECTED_WEAK_TEST is
	defined.
	Define PROTECTED_TEST when PROTECTED_UNDEF_TEST is defined.

	* ld-elfvsb/sh1.c (visibility): Mark protected only if
	PROTECTED_TEST, PROTECTED_UNDEF_TEST or PROTECTED_WEAK_TEST
	is defined.
	(visibility_var): Likewise.
2000-07-15 23:57:20 +00:00
Alan Modra
36a3dc5119 Even more hppa testsuite patches. 2000-07-10 17:02:16 +00:00
Timothy Wall
74459f0e3e tic54x/ibmc54xdsp target for ld. 2000-06-20 13:29:07 +00:00
H.J. Lu
7cda33a15e 2000-06-05 H.J. Lu (hjl@gnu.org)
* lib/ld-lib.exp (default_ld_link): Redirect the linker output
	to link_output and make it global.

	* ld-elfvsb/elfvsb.exp (visibility_test): Add "hidden_undef",
	"hidden_undef_def", "hidden_weak", "protected_undef",
	"protected_undef_def" and "protected_weak".
	(visibility_run): Likewise.
	* ld-elfvsb/main.c: Likewise.
	* ld-elfvsb/sh1.c: Likewise.
	* ld-elfvsb/sh2.c: Likewise.

	* ld-elfvsb/elfvsb.dat: Updated.
2000-06-05 20:43:18 +00:00
H.J. Lu
e80778cf3d 2000-05-21 H.J. Lu (hjl@gnu.org)
* ld-elfvsb/main.c (main_visibility_check): Fix the protected
	visibility test.
2000-05-21 21:08:17 +00:00
H.J. Lu
6fc49d288b 2000-05-13 H.J. Lu (hjl@gnu.org)
* lib/ld-lib.exp (default_ld_link): Redirect the linker output
	to link_output and make it global.

	* ld-elfvsb/elf-offset.ld: New. ELF visibility fearture
	tests.
	* ld-elfvsb/elfvsb.dat: Likewise.
	* ld-elfvsb/elfvsb.exp: Likewise.
	* ld-elfvsb/main.c: Likewise.
	* ld-elfvsb/sh1.c: Likewise.
	* ld-elfvsb/sh2.c: Likewise.
2000-05-13 16:54:32 +00:00
Jim Wilson
b32711aa6a A misc IA-64 ELF patch I missed in the first pass.
* testsuite/ld-scripts/phdrs.exp: IA-64 is 64-bit ELF too.
2000-04-21 22:17:28 +00:00
Alan Modra
62043cea9b Add workaround for gcc-2.95.2 failure. 2000-04-12 12:55:06 +00:00
Alan Modra
e76e4c9104 (test4): Test for presence of foo__1B, not absence 2000-04-12 12:47:25 +00:00
Alan Modra
3017ff0eca (test4): Delete incorrect foo__1B test. Reformat file. 2000-04-12 03:44:15 +00:00
Nick Clifton
e40eb3e94d discard all unexpected sections. 2000-03-14 01:40:30 +00:00
H.J. Lu
d1bcade6ba 2000-02-27 H.J. Lu (hjl@gnu.org)
* lib/ld-lib.exp (default_ld_link): Added "$LIBS" to libs.
2000-02-27 18:59:40 +00:00
Alan Modra
e1c47aa42d To satisfy latest CVS gcc:
* emultempl/*.em (ld_emulation_xfer_struct): Add missing NULL
	initialisers, and comments.
	* testsuite/ld-srec/sr3.cc (__rethrow): New.
2000-01-22 23:22:18 +00:00
Nick Clifton
197d87f8ec Fixed test to disable these checks if the target is PE based. 1999-11-01 16:29:06 +00:00
Catherine Moore
05d26f04bc *** empty log message *** 1999-10-29 15:32:19 +00:00
Catherine Moore
7cdea22fb0 Remove test6. 1999-10-29 15:31:54 +00:00
Nick Clifton
abdbda5ecb Fix testsuite failures for arm -linux 1999-10-28 16:22:48 +00:00
Alan Modra
b7be1db6b5 Support 8 and 16-bit relocs for i386coff. Enable i386 gas testsuite tests
previously disabled for lack of such support.  For *-*-linux*libc1 targets,
XFAIL a ld testsuite that fails due to a bug in the dynamic linker prior to
glibc-2.1.
1999-09-18 00:44:47 +00:00
Ian Lance Taylor
777690b647 * ld-scripts/script.exp: Add --image-base 0 for PE targets. 1999-09-12 15:59:48 +00:00
Ian Lance Taylor
5be8a006bb 1999-08-17 H.J. Lu <hjl@gnu.org>
* ld-cdtest/cdtest-foo.cc (Foo::init_foo): Use "%ld" for sizeof.
1999-08-17 07:56:29 +00:00
Ian Lance Taylor
b33b6e4569 1999-08-09 Jakub Jelinek <jj@ultra.linux.cz>
* ld-elfvers/vers.exp: Run tests on sparc*-*-linux*.
	* ld-shared/shared.exp: Likewise.
1999-08-09 14:49:32 +00:00
Nick Clifton
38e31547d1 Notice multlib switches. 1999-07-28 08:18:22 +00:00
Ian Lance Taylor
0cd9f5f03b 1999-07-21 H.J. Lu <hjl@gnu.org>
* ld-elfvers/vers1.c: Add missing prototypes and include
	<stdio.h> if necessary.
	* ld-elfvers/vers15.c: Likewise.
	* ld-elfvers/vers19.c: Likewise.
	* ld-elfvers/vers2.c: Likewise.
	* ld-elfvers/vers3.c: Likewise.
	* ld-elfvers/vers4.c: Likewise.
	* ld-elfvers/vers6.c: Likewise.
	* ld-elfvers/vers7.c: Likewise.
	* ld-elfvers/vers9.c: Likewise.
	* ld-shared/main.c: Likewise.
	* ld-srec/sr3.cc (Foo::Foo): Remove arg name.
1999-07-22 00:40:34 +00:00
Mark Mitchell
d49560a9c3 * ld-undefined/undefined.exp: XFAIL on IRIX6 for the usual as
with other DWARF2 targets.
1999-07-15 17:02:34 +00:00
Nick Clifton
5dcf458ac4 Remove xfails for arm toolchains. 1999-07-13 09:25:10 +00:00
Ian Lance Taylor
734caf4d9f * ld-elfvers/vers.exp: Use -rpath in new vers19 test. 1999-07-09 22:45:24 +00:00
Ian Lance Taylor
f04894943e * ld-elfvers/vers.exp: Add new tests vers17 to vers19.
* ld/elfvers/{vers17.*, vers18.*, vers19.*}: New files.
1999-07-07 15:36:29 +00:00
Ian Lance Taylor
197a7bfdca * ld-checks/asm.s: Use a symbol name for .lcomm.
* ld-checks/checks.exp: Use different names for the two tests.
	Don't add extra text when invoking fail.
1999-06-12 22:40:18 +00:00
Ian Lance Taylor
99c262f8b0 * ld-scripts/phdrs.exp: Change target check from "*-*-linuxaout*"
to "*-*-linux*aout*".
	* ld-scripts/weak.exp: Likewise.
	* ld-shared/shared.exp: Likewise.  Simplify condition a bit.
1999-06-12 10:47:08 +00:00
Andreas Schwab
2bdba6c9ec * ld-cdtest/cdtest-main.cc: Avoid `implicit int' warning.
* ld-shared/sh1.c: Fix typo.
1999-06-09 03:04:03 +00:00
Ian Lance Taylor
77e0b0efdb 1999-06-04 H.J. Lu <hjl@gnu.org>
* lib/ld-lib.exp (default_ld_nm): Clear nm_output first if
	necessary.
1999-06-04 20:49:14 +00:00
Nick Clifton
8535ca756a Add xfail for mcore-elf 1999-05-17 09:46:52 +00:00
DJ Delorie
69f868fa5d * ld-srec/srec.exp: Do not run tests for PE based ports. 1999-05-11 20:31:53 +00:00
Richard Henderson
252b5132c7 19990502 sourceware import 1999-05-03 07:29:11 +00:00