summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2007-07-02 15:56:46 +0000
committerNathan Sidwell <nathan@codesourcery.com>2007-07-02 15:56:46 +0000
commitca0fde87b98227a54c5f8c1c094574de56ab009e (patch)
treeebbe6127015d0583bec834a8f5e90291b13f4511
parente1e161ed8fb2cd3bfa26f68812dd321ae756bca7 (diff)
downloadbinutils-redhat-ca0fde87b98227a54c5f8c1c094574de56ab009e.tar.gz
* ld-scripts/alignof.exp: Skip on non-elf
-rw-r--r--ld/testsuite/ChangeLog4
-rw-r--r--ld/testsuite/ld-scripts/alignof.exp6
2 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 28099e9019..7cb33ce748 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2007-07-02 Nathan Sidwell <nathan@codesourcery.com>
+
+ * ld-scripts/alignof.exp: Skip on non-elf
+
2007-06-29 Joseph Myers <joseph@codesourcery.com>
* ld-powerpc/attr-gnu-4-0.s, ld-powerpc/attr-gnu-4-00.d,
diff --git a/ld/testsuite/ld-scripts/alignof.exp b/ld/testsuite/ld-scripts/alignof.exp
index 7b812dbdfa..0955e7c3f9 100644
--- a/ld/testsuite/ld-scripts/alignof.exp
+++ b/ld/testsuite/ld-scripts/alignof.exp
@@ -15,6 +15,12 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
+# Only ELF targets record section alignment.
+
+if ![is_elf_format] {
+ return
+}
+
set testname "ALIGNOF"
if ![ld_assemble $as $srcdir/$subdir/alignof.s tmpdir/alignof.o] {