From: Chao-ying Fu Date: Mon, 14 Oct 2013 19:02:00 +0000 (+0000) Subject: 2013-10-14 Chao-ying Fu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7c790378795ad24abe9b7a927eefc06e136be89e;p=binutils-gdb.git 2013-10-14 Chao-ying Fu * 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. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index a8060a3eea9..eed5226a574 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2013-10-14 Chao-ying Fu + + * 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 * 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 00000000000..b28c578da07 --- /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 00000000000..5ee34a1227a --- /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 00000000000..2d44dfe8537 --- /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 00000000000..e873d44edec --- /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 00000000000..81c7b7fb4e1 --- /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 00000000000..f0e91259b1f --- /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 00000000000..50d518fb9bd --- /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 00000000000..b5392f33cbe --- /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 00000000000..0f18f5f7775 --- /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 00000000000..268d670453b --- /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 00000000000..0222f03d53f --- /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 00000000000..b781150f8be --- /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 988b64b46e4..a66a2891ed1 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"