From 1bc9204d5bfc2640c6d5fee8cc167f90054e5320 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 6 Nov 1995 19:44:43 +0000 Subject: [PATCH] * ld-shared/shared.exp: Run tests on rs6000*-*-aix* and powerpc*-*-aix*. Add code to create appropriate exports files, and pass appropriate compilation flags, and test against appropriate expected output. * ld-shared/xcoff.dat: New file. * ld-shared/main.c: Put #ifndef XCOFF_TEST around tests that can not be linked using XCOFF. Use shlib_shlibvar1 as a sample function pointer, rather than shlib_mainvar. * ld-shared/sh1.c: Likewise. * ld-shared/shared.dat: Update for change from using shlib_mainvar to using shlib_shlibvar1. * ld-shared/sun4.dat: Likewise. --- ld/testsuite/ChangeLog | 15 +++++++++++++++ ld/testsuite/ld-shared/.Sanitize | 1 + ld/testsuite/ld-shared/xcoff.dat | 10 ++++++++++ 3 files changed, 26 insertions(+) create mode 100644 ld/testsuite/ld-shared/xcoff.dat diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 04e57fd4deb..f49b5075e69 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,18 @@ +Mon Nov 6 14:39:18 1995 Ian Lance Taylor + + * ld-shared/shared.exp: Run tests on rs6000*-*-aix* and + powerpc*-*-aix*. Add code to create appropriate exports files, + and pass appropriate compilation flags, and test against + appropriate expected output. + * ld-shared/xcoff.dat: New file. + * ld-shared/main.c: Put #ifndef XCOFF_TEST around tests that can + not be linked using XCOFF. Use shlib_shlibvar1 as a sample + function pointer, rather than shlib_mainvar. + * ld-shared/sh1.c: Likewise. + * ld-shared/shared.dat: Update for change from using shlib_mainvar + to using shlib_shlibvar1. + * ld-shared/sun4.dat: Likewise. + Sat Oct 28 01:54:25 1995 Ian Lance Taylor * ld-scripts/script.t: Put .pr in .text, and .rw in .data, for diff --git a/ld/testsuite/ld-shared/.Sanitize b/ld/testsuite/ld-shared/.Sanitize index e8e4b391b29..fb9f20c5413 100644 --- a/ld/testsuite/ld-shared/.Sanitize +++ b/ld/testsuite/ld-shared/.Sanitize @@ -29,6 +29,7 @@ sh2.c shared.dat shared.exp sun4.dat +xcoff.dat Things-to-lose: diff --git a/ld/testsuite/ld-shared/xcoff.dat b/ld/testsuite/ld-shared/xcoff.dat new file mode 100644 index 00000000000..a409d96a1ec --- /dev/null +++ b/ld/testsuite/ld-shared/xcoff.dat @@ -0,0 +1,10 @@ +mainvar == 1 +overriddenvar == 2 +shlibvar1 == 3 +shlib_shlibvar1 () == 3 +shlib_shlibvar2 () == 4 +shlib_shlibcall () == 5 +main_called () == 6 +shlib_checkfunptr1 (shlib_shlibvar1) == 1 +shlib_getfunptr1 () == shlib_shlibvar1 +shlib_check () == 1 -- 2.30.2