summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/gas/testsuite/gas/pe
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.25/gas/testsuite/gas/pe')
-rw-r--r--binutils-2.25/gas/testsuite/gas/pe/big-obj.d11
-rw-r--r--binutils-2.25/gas/testsuite/gas/pe/big-obj.s16
-rw-r--r--[-rwxr-xr-x]binutils-2.25/gas/testsuite/gas/pe/pe.exp13
-rw-r--r--binutils-2.25/gas/testsuite/gas/pe/set.d11
-rw-r--r--binutils-2.25/gas/testsuite/gas/pe/set.s9
5 files changed, 58 insertions, 2 deletions
diff --git a/binutils-2.25/gas/testsuite/gas/pe/big-obj.d b/binutils-2.25/gas/testsuite/gas/pe/big-obj.d
new file mode 100644
index 00000000..95ff1d82
--- /dev/null
+++ b/binutils-2.25/gas/testsuite/gas/pe/big-obj.d
@@ -0,0 +1,11 @@
+#as: -mbig-obj
+#objdump: -h
+#name: PE x64 big obj
+
+.*: *file format pe-bigobj-.*
+
+Sections:
+#...
+5000. \.data\$a49999 .*
+ CONTENTS, ALLOC, LOAD, DATA
+
diff --git a/binutils-2.25/gas/testsuite/gas/pe/big-obj.s b/binutils-2.25/gas/testsuite/gas/pe/big-obj.s
new file mode 100644
index 00000000..07edc913
--- /dev/null
+++ b/binutils-2.25/gas/testsuite/gas/pe/big-obj.s
@@ -0,0 +1,16 @@
+ .file "big-obj.s"
+
+ .irp n,0,1,2,3,4
+ .irp m,0,1,2,3,4,5,6,7,8,9
+ .irp c,0,1,2,3,4,5,6,7,8,9
+ .irp d,0,1,2,3,4,5,6,7,8,9
+ .irp u,0,1,2,3,4,5,6,7,8,9
+ .globl a\n\m\c\d\u
+ .section .data$a\n\m\c\d\u,"w"
+a\n\m\c\d\u :
+ .byte 1
+ .endr
+ .endr
+ .endr
+ .endr
+ .endr
diff --git a/binutils-2.25/gas/testsuite/gas/pe/pe.exp b/binutils-2.25/gas/testsuite/gas/pe/pe.exp
index 870df11a..0fab53d8 100755..100644
--- a/binutils-2.25/gas/testsuite/gas/pe/pe.exp
+++ b/binutils-2.25/gas/testsuite/gas/pe/pe.exp
@@ -1,7 +1,6 @@
# Expect control script for GAS testsuite PE object-format-specific tests.
-# Copyright (C) 2009
-# Free Software Foundation, Inc.
+# Copyright (C) 2009-2014 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -37,6 +36,8 @@ run_dump_test "section-align-1"
run_dump_test "section-align-3"
run_dump_test "section-exclude"
+run_dump_test "set"
+
# SEH related tests
# These tests are only for x86_64 targets
@@ -49,3 +50,11 @@ if ([istarget "x86_64-*-mingw*"]) then {
run_dump_test "peseh-x64-5"
run_dump_test "peseh-x64-6"
}
+
+# Big obj
+
+
+if ([istarget "x86_64-*-mingw*"]) then {
+ # Currently only supported on x86_64
+ run_dump_test "big-obj"
+}
diff --git a/binutils-2.25/gas/testsuite/gas/pe/set.d b/binutils-2.25/gas/testsuite/gas/pe/set.d
new file mode 100644
index 00000000..99f2d5a7
--- /dev/null
+++ b/binutils-2.25/gas/testsuite/gas/pe/set.d
@@ -0,0 +1,11 @@
+#nm: --defined-only
+#name: set directive in COFF
+#
+# Ensure that we stick an entry for the left hand side of a set directive
+# depending on the name of the left hand side.
+
+#...
+.* t _b
+#...
+.* T _d
+#...
diff --git a/binutils-2.25/gas/testsuite/gas/pe/set.s b/binutils-2.25/gas/testsuite/gas/pe/set.s
new file mode 100644
index 00000000..a19e7972
--- /dev/null
+++ b/binutils-2.25/gas/testsuite/gas/pe/set.s
@@ -0,0 +1,9 @@
+L_a:
+.long 0
+
+_b = L_a
+
+L_c = L_a
+
+.globl _d
+_d = L_a