aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorChao-ying Fu <fu@mips.com>2013-10-14 19:02:00 +0000
committerChao-ying Fu <fu@mips.com>2013-10-14 19:02:00 +0000
commit7c790378795ad24abe9b7a927eefc06e136be89e (patch)
tree0443b37079b61d1890abfc00957bee8387c6c34c /ld
parent4edbb8e35ab5600f1f32c613b0e3f77c74dc7f32 (diff)
downloadgdb-7c790378795ad24abe9b7a927eefc06e136be89e.zip
gdb-7c790378795ad24abe9b7a927eefc06e136be89e.tar.gz
gdb-7c790378795ad24abe9b7a927eefc06e136be89e.tar.bz2
2013-10-14 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
* ld-mips-elf/attr-gnu-8-0.s, ld-mips-elf/attr-gnu-8-1.s, ld-mips-elf/attr-gnu-8-2.s, ld-mips-elf/attr-gnu-8-00.d, ld-mips-elf/attr-gnu-8-01.d, ld-mips-elf/attr-gnu-8-02.d, ld-mips-elf/attr-gnu-8-10.d, ld-mips-elf/attr-gnu-8-11.d, ld-mips-elf/attr-gnu-8-12.d, ld-mips-elf/attr-gnu-8-20.d, ld-mips-elf/attr-gnu-8-21.d, ld-mips-elf/attr-gnu-8-22.d: New. * ld-mips-elf/mips-elf.exp: Run new tests.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog11
-rw-r--r--ld/testsuite/ld-mips-elf/attr-gnu-8-0.s1
-rw-r--r--ld/testsuite/ld-mips-elf/attr-gnu-8-00.d6
-rw-r--r--ld/testsuite/ld-mips-elf/attr-gnu-8-01.d9
-rw-r--r--ld/testsuite/ld-mips-elf/attr-gnu-8-02.d9
-rw-r--r--ld/testsuite/ld-mips-elf/attr-gnu-8-1.s1
-rw-r--r--ld/testsuite/ld-mips-elf/attr-gnu-8-10.d9
-rw-r--r--ld/testsuite/ld-mips-elf/attr-gnu-8-11.d9
-rw-r--r--ld/testsuite/ld-mips-elf/attr-gnu-8-12.d5
-rw-r--r--ld/testsuite/ld-mips-elf/attr-gnu-8-2.s1
-rw-r--r--ld/testsuite/ld-mips-elf/attr-gnu-8-20.d9
-rw-r--r--ld/testsuite/ld-mips-elf/attr-gnu-8-21.d5
-rw-r--r--ld/testsuite/ld-mips-elf/attr-gnu-8-22.d9
-rw-r--r--ld/testsuite/ld-mips-elf/mips-elf.exp10
14 files changed, 94 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index a8060a3..eed5226 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,14 @@
+2013-10-14 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
+
+ * ld-mips-elf/attr-gnu-8-0.s, ld-mips-elf/attr-gnu-8-1.s,
+ ld-mips-elf/attr-gnu-8-2.s,
+ ld-mips-elf/attr-gnu-8-00.d, ld-mips-elf/attr-gnu-8-01.d,
+ ld-mips-elf/attr-gnu-8-02.d, ld-mips-elf/attr-gnu-8-10.d,
+ ld-mips-elf/attr-gnu-8-11.d, ld-mips-elf/attr-gnu-8-12.d,
+ ld-mips-elf/attr-gnu-8-20.d, ld-mips-elf/attr-gnu-8-21.d,
+ ld-mips-elf/attr-gnu-8-22.d: New.
+ * ld-mips-elf/mips-elf.exp: Run new tests.
+
2013-10-13 Richard Sandiford <rdsandiford@googlemail.com>
* lib/ld-lib.exp (default_ld_compile): Add a -I option for the source
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-0.s b/ld/testsuite/ld-mips-elf/attr-gnu-8-0.s
new file mode 100644
index 0000000..b28c578
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-0.s
@@ -0,0 +1 @@
+.gnu_attribute 8,0
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-00.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-00.d
new file mode 100644
index 0000000..5ee34a1
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-00.d
@@ -0,0 +1,6 @@
+#source: attr-gnu-8-0.s
+#source: attr-gnu-8-0.s
+#ld: -r
+#readelf: -A
+#target: mips*-*-*
+
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-01.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-01.d
new file mode 100644
index 0000000..2d44dfe
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-01.d
@@ -0,0 +1,9 @@
+#source: attr-gnu-8-0.s
+#source: attr-gnu-8-1.s
+#ld: -r
+#readelf: -A
+#target: mips*-*-*
+
+Attribute Section: gnu
+File Attributes
+ Tag_GNU_MIPS_ABI_MSA: 128-bit MSA
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-02.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-02.d
new file mode 100644
index 0000000..e873d44
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-02.d
@@ -0,0 +1,9 @@
+#source: attr-gnu-8-0.s
+#source: attr-gnu-8-2.s
+#ld: -r
+#readelf: -A
+#target: mips*-*-*
+
+Attribute Section: gnu
+File Attributes
+ Tag_GNU_MIPS_ABI_MSA: \?\?\? \(2\)
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-1.s b/ld/testsuite/ld-mips-elf/attr-gnu-8-1.s
new file mode 100644
index 0000000..81c7b7f
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-1.s
@@ -0,0 +1 @@
+.gnu_attribute 8,1
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-10.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-10.d
new file mode 100644
index 0000000..f0e9125
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-10.d
@@ -0,0 +1,9 @@
+#source: attr-gnu-8-1.s
+#source: attr-gnu-8-0.s
+#ld: -r
+#readelf: -A
+#target: mips*-*-*
+
+Attribute Section: gnu
+File Attributes
+ Tag_GNU_MIPS_ABI_MSA: 128-bit MSA
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-11.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-11.d
new file mode 100644
index 0000000..50d518f
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-11.d
@@ -0,0 +1,9 @@
+#source: attr-gnu-8-1.s
+#source: attr-gnu-8-1.s
+#ld: -r
+#readelf: -A
+#target: mips*-*-*
+
+Attribute Section: gnu
+File Attributes
+ Tag_GNU_MIPS_ABI_MSA: 128-bit MSA
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-12.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-12.d
new file mode 100644
index 0000000..b5392f3
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-12.d
@@ -0,0 +1,5 @@
+#source: attr-gnu-8-1.s
+#source: attr-gnu-8-2.s
+#ld: -r
+#warning: Warning: .* uses -mmsa \(set by .*\), .* uses unknown MSA ABI 2
+#target: mips*-*-*
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-2.s b/ld/testsuite/ld-mips-elf/attr-gnu-8-2.s
new file mode 100644
index 0000000..0f18f5f
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-2.s
@@ -0,0 +1 @@
+.gnu_attribute 8,2
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-20.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-20.d
new file mode 100644
index 0000000..268d670
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-20.d
@@ -0,0 +1,9 @@
+#source: attr-gnu-8-2.s
+#source: attr-gnu-8-0.s
+#ld: -r
+#readelf: -A
+#target: mips*-*-*
+
+Attribute Section: gnu
+File Attributes
+ Tag_GNU_MIPS_ABI_MSA: \?\?\? \(2\)
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-21.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-21.d
new file mode 100644
index 0000000..0222f03
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-21.d
@@ -0,0 +1,5 @@
+#source: attr-gnu-8-2.s
+#source: attr-gnu-8-1.s
+#ld: -r
+#warning: Warning: .* uses unknown MSA ABI 2 \(set by .*\), .* uses -mmsa
+#target: mips*-*-*
diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-8-22.d b/ld/testsuite/ld-mips-elf/attr-gnu-8-22.d
new file mode 100644
index 0000000..b781150
--- /dev/null
+++ b/ld/testsuite/ld-mips-elf/attr-gnu-8-22.d
@@ -0,0 +1,9 @@
+#source: attr-gnu-8-2.s
+#source: attr-gnu-8-2.s
+#ld: -r
+#readelf: -A
+#target: mips*-*-*
+
+Attribute Section: gnu
+File Attributes
+ Tag_GNU_MIPS_ABI_MSA: \?\?\? \(2\)
diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp
index 988b64b..a66a289 100644
--- a/ld/testsuite/ld-mips-elf/mips-elf.exp
+++ b/ld/testsuite/ld-mips-elf/mips-elf.exp
@@ -827,3 +827,13 @@ if { $linux_gnu } {
n32 -1 1 umips
}
}
+
+run_dump_test "attr-gnu-8-00"
+run_dump_test "attr-gnu-8-01"
+run_dump_test "attr-gnu-8-02"
+run_dump_test "attr-gnu-8-10"
+run_dump_test "attr-gnu-8-11"
+run_dump_test "attr-gnu-8-12"
+run_dump_test "attr-gnu-8-20"
+run_dump_test "attr-gnu-8-21"
+run_dump_test "attr-gnu-8-22"