diff options
author | Thiemo Seufer <ths@networkno.de> | 2007-11-17 13:38:57 +0000 |
---|---|---|
committer | Thiemo Seufer <ths@networkno.de> | 2007-11-17 13:38:57 +0000 |
commit | 42554f6a08d8282c408f7932ade77735b18b2f8b (patch) | |
tree | 2980cb9807de09d87cb4f47477ecce0ea211da09 /ld | |
parent | 3b784c4f87621b9633adb0d2e360cd4ac2909503 (diff) | |
download | binutils-gdb-42554f6a08d8282c408f7932ade77735b18b2f8b.tar.gz |
[ld/testsuite/ChangeLog]
* ld-mips-elf/attr-gnu-4-14.d, ld-mips-elf/attr-gnu-4-41.d:
Adjust warning message for -mfp64 flag.
* ld-mips-elf/attr-gnu-4-5.s, ld-mips-elf/attr-gnu-4-04.d,
ld-mips-elf/attr-gnu-4-51.d, ld-mips-elf/attr-gnu-4-05.d,
ld-mips-elf/attr-gnu-4-15.d, ld-mips-elf/attr-gnu-4-24.d,
ld-mips-elf/attr-gnu-4-25.d, ld-mips-elf/attr-gnu-4-34.d,
ld-mips-elf/attr-gnu-4-35.d, ld-mips-elf/attr-gnu-4-42.d,
ld-mips-elf/attr-gnu-4-43.d, ld-mips-elf/attr-gnu-4-44.d,
ld-mips-elf/attr-gnu-4-45.d, ld-mips-elf/attr-gnu-4-40.d,
ld-mips-elf/attr-gnu-4-14.d: New testcases files.
* ld-mips-elf/mips-elf.exp: Run new testcases.
[binutils/ChangeLog]
* readelf.c (display_mips_gnu_attribute): Recognize -mips32r2 -mfp64
objects.
[include/ChangeLog]
* elf/mips.h (Tag_GNU_MIPS_ABI_FP): Mention -mips32r2 -mfp64 variant
in comment.
[bfd/ChangeLog]
* elfxx-mips.c (mips_elf_merge_obj_attributes): Handle -mips32r2
-mfp64 attribute.
[gas/ChangeLog]
* doc/as.texinfo: Document the new attribute value.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 14 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/attr-gnu-4-04.d | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/attr-gnu-4-05.d | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/attr-gnu-4-14.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/attr-gnu-4-15.d | 11 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/attr-gnu-4-24.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/attr-gnu-4-25.d | 11 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/attr-gnu-4-34.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/attr-gnu-4-35.d | 11 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/attr-gnu-4-40.d | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/attr-gnu-4-41.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/attr-gnu-4-42.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/attr-gnu-4-43.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/attr-gnu-4-44.d | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/attr-gnu-4-45.d | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/attr-gnu-4-5.s | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/attr-gnu-4-51.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/mips-elf.exp | 13 |
18 files changed, 143 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 76ff53b020f..5d601f23c3e 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,17 @@ +2007-11-17 Thiemo Seufer <ths@mips.com> + + * ld-mips-elf/attr-gnu-4-14.d, ld-mips-elf/attr-gnu-4-41.d: + Adjust warning message for -mfp64 flag. + * ld-mips-elf/attr-gnu-4-5.s, ld-mips-elf/attr-gnu-4-04.d, + ld-mips-elf/attr-gnu-4-51.d, ld-mips-elf/attr-gnu-4-05.d, + ld-mips-elf/attr-gnu-4-15.d, ld-mips-elf/attr-gnu-4-24.d, + ld-mips-elf/attr-gnu-4-25.d, ld-mips-elf/attr-gnu-4-34.d, + ld-mips-elf/attr-gnu-4-35.d, ld-mips-elf/attr-gnu-4-42.d, + ld-mips-elf/attr-gnu-4-43.d, ld-mips-elf/attr-gnu-4-44.d, + ld-mips-elf/attr-gnu-4-45.d, ld-mips-elf/attr-gnu-4-40.d, + ld-mips-elf/attr-gnu-4-14.d: New testcases files. + * ld-mips-elf/mips-elf.exp: Run new testcases. + 2007-11-16 Nick Clifton <nickc@redhat.com> * ld-mn10300/mn10300.exp: Fix the start address of the .bss diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-4-04.d b/ld/testsuite/ld-mips-elf/attr-gnu-4-04.d new file mode 100644 index 00000000000..992ed04cf95 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-4-04.d @@ -0,0 +1,10 @@ +#source: attr-gnu-4-0.s +#source: attr-gnu-4-4.s +#as: -EB -32 +#ld: -r -melf32btsmip +#readelf: -A +#target: mips*-*-* + +Attribute Section: gnu +File Attributes + Tag_GNU_MIPS_ABI_FP: 64-bit float \(-mips32r2 -mfp64\) diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-4-05.d b/ld/testsuite/ld-mips-elf/attr-gnu-4-05.d new file mode 100644 index 00000000000..ebfc6d88ce5 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-4-05.d @@ -0,0 +1,10 @@ +#source: attr-gnu-4-0.s +#source: attr-gnu-4-5.s +#as: -EB -32 +#ld: -r -melf32btsmip +#readelf: -A +#target: mips*-*-* + +Attribute Section: gnu +File Attributes + Tag_GNU_MIPS_ABI_FP: \?\?\? \(5\) diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-4-14.d b/ld/testsuite/ld-mips-elf/attr-gnu-4-14.d index 7b15327d992..e8993829547 100644 --- a/ld/testsuite/ld-mips-elf/attr-gnu-4-14.d +++ b/ld/testsuite/ld-mips-elf/attr-gnu-4-14.d @@ -2,5 +2,5 @@ #source: attr-gnu-4-4.s #as: -EB -32 #ld: -r -melf32btsmip -#warning: Warning: .* uses unknown floating point ABI 4 +#warning: Warning: .* uses -msingle-float, .* uses -mips32r2 -mfp64 #target: mips*-*-* diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-4-15.d b/ld/testsuite/ld-mips-elf/attr-gnu-4-15.d new file mode 100644 index 00000000000..cf323024e15 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-4-15.d @@ -0,0 +1,11 @@ +#source: attr-gnu-4-1.s +#source: attr-gnu-4-5.s +#as: -EB -32 +#ld: -r -melf32btsmip +#readelf: -A +#warning: Warning: .* uses unknown floating point ABI 5 +#target: mips*-*-* + +Attribute Section: gnu +File Attributes + Tag_GNU_MIPS_ABI_FP: Hard float \(-mdouble-float\) diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-4-24.d b/ld/testsuite/ld-mips-elf/attr-gnu-4-24.d new file mode 100644 index 00000000000..09e81759f9b --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-4-24.d @@ -0,0 +1,6 @@ +#source: attr-gnu-4-2.s +#source: attr-gnu-4-4.s +#as: -EB -32 +#ld: -r -melf32btsmip +#warning: Warning: .* uses -mips32r2 -mfp64 +#target: mips*-*-* diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-4-25.d b/ld/testsuite/ld-mips-elf/attr-gnu-4-25.d new file mode 100644 index 00000000000..77013971d6a --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-4-25.d @@ -0,0 +1,11 @@ +#source: attr-gnu-4-2.s +#source: attr-gnu-4-5.s +#as: -EB -32 +#ld: -r -melf32btsmip +#readelf: -A +#warning: Warning: .* uses unknown floating point ABI 5 +#target: mips*-*-* + +Attribute Section: gnu +File Attributes + Tag_GNU_MIPS_ABI_FP: Hard float \(-msingle-float\) diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-4-34.d b/ld/testsuite/ld-mips-elf/attr-gnu-4-34.d new file mode 100644 index 00000000000..2a9b0f3490e --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-4-34.d @@ -0,0 +1,6 @@ +#source: attr-gnu-4-3.s +#source: attr-gnu-4-4.s +#as: -EB -32 +#ld: -r -melf32btsmip +#warning: Warning: .* uses hard float, .* uses soft float +#target: mips*-*-* diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-4-35.d b/ld/testsuite/ld-mips-elf/attr-gnu-4-35.d new file mode 100644 index 00000000000..c3ad25fbde6 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-4-35.d @@ -0,0 +1,11 @@ +#source: attr-gnu-4-3.s +#source: attr-gnu-4-5.s +#as: -EB -32 +#ld: -r -melf32btsmip +#readelf: -A +#warning: Warning: .* uses unknown floating point ABI 5 +#target: mips*-*-* + +Attribute Section: gnu +File Attributes + Tag_GNU_MIPS_ABI_FP: Soft float diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-4-40.d b/ld/testsuite/ld-mips-elf/attr-gnu-4-40.d new file mode 100644 index 00000000000..f84e95bccd7 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-4-40.d @@ -0,0 +1,10 @@ +#source: attr-gnu-4-4.s +#source: attr-gnu-4-0.s +#as: -EB -32 +#ld: -r -melf32btsmip +#readelf: -A +#target: mips*-*-* + +Attribute Section: gnu +File Attributes + Tag_GNU_MIPS_ABI_FP: 64-bit float \(-mips32r2 -mfp64\) diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-4-41.d b/ld/testsuite/ld-mips-elf/attr-gnu-4-41.d index 5fffe75d566..71f74a9737a 100644 --- a/ld/testsuite/ld-mips-elf/attr-gnu-4-41.d +++ b/ld/testsuite/ld-mips-elf/attr-gnu-4-41.d @@ -2,5 +2,5 @@ #source: attr-gnu-4-1.s #as: -EB -32 #ld: -r -melf32btsmip -#warning: Warning: .* uses unknown floating point ABI 4 +#warning: Warning: .* uses -msingle-float, .* uses -mips32r2 -mfp64 #target: mips*-*-* diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-4-42.d b/ld/testsuite/ld-mips-elf/attr-gnu-4-42.d new file mode 100644 index 00000000000..c0956957017 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-4-42.d @@ -0,0 +1,6 @@ +#source: attr-gnu-4-4.s +#source: attr-gnu-4-2.s +#as: -EB -32 +#ld: -r -melf32btsmip +#warning: Warning: .* uses -mips32r2 -mfp64 +#target: mips*-*-* diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-4-43.d b/ld/testsuite/ld-mips-elf/attr-gnu-4-43.d new file mode 100644 index 00000000000..8396e38d506 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-4-43.d @@ -0,0 +1,6 @@ +#source: attr-gnu-4-4.s +#source: attr-gnu-4-3.s +#as: -EB -32 +#ld: -r -melf32btsmip +#warning: Warning: .* uses hard float, .* uses soft float +#target: mips*-*-* diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-4-44.d b/ld/testsuite/ld-mips-elf/attr-gnu-4-44.d new file mode 100644 index 00000000000..6e8cac23267 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-4-44.d @@ -0,0 +1,10 @@ +#source: attr-gnu-4-4.s +#source: attr-gnu-4-4.s +#as: -EB -32 +#ld: -r -melf32btsmip +#readelf: -A +#target: mips*-*-* + +Attribute Section: gnu +File Attributes + Tag_GNU_MIPS_ABI_FP: 64-bit float \(-mips32r2 -mfp64\) diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-4-45.d b/ld/testsuite/ld-mips-elf/attr-gnu-4-45.d new file mode 100644 index 00000000000..11738c551ea --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-4-45.d @@ -0,0 +1,10 @@ +#source: attr-gnu-4-4.s +#source: attr-gnu-4-5.s +#as: -EB -32 +#ld: -r -melf32btsmip +#warning: Warning: .* uses unknown floating point ABI 5 +#target: mips*-*-* + +Attribute Section: gnu +File Attributes + Tag_GNU_MIPS_ABI_FP: 64-bit float \(-mips32r2 -mfp64\) diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-4-5.s b/ld/testsuite/ld-mips-elf/attr-gnu-4-5.s new file mode 100644 index 00000000000..b21ec3bab9f --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-4-5.s @@ -0,0 +1 @@ +.gnu_attribute 4,5 diff --git a/ld/testsuite/ld-mips-elf/attr-gnu-4-51.d b/ld/testsuite/ld-mips-elf/attr-gnu-4-51.d new file mode 100644 index 00000000000..b5f1c22b8e9 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/attr-gnu-4-51.d @@ -0,0 +1,6 @@ +#source: attr-gnu-4-5.s +#source: attr-gnu-4-1.s +#as: -EB -32 +#ld: -r -melf32btsmip +#warning: Warning: .* uses unknown floating point ABI 5 +#target: mips*-*-* diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp index 63af7338bb4..fb32f5cc10d 100644 --- a/ld/testsuite/ld-mips-elf/mips-elf.exp +++ b/ld/testsuite/ld-mips-elf/mips-elf.exp @@ -290,17 +290,30 @@ run_dump_test "attr-gnu-4-00" run_dump_test "attr-gnu-4-01" run_dump_test "attr-gnu-4-02" run_dump_test "attr-gnu-4-03" +run_dump_test "attr-gnu-4-04" +run_dump_test "attr-gnu-4-05" run_dump_test "attr-gnu-4-10" run_dump_test "attr-gnu-4-11" run_dump_test "attr-gnu-4-12" run_dump_test "attr-gnu-4-13" run_dump_test "attr-gnu-4-14" +run_dump_test "attr-gnu-4-15" run_dump_test "attr-gnu-4-20" run_dump_test "attr-gnu-4-21" run_dump_test "attr-gnu-4-22" run_dump_test "attr-gnu-4-23" +run_dump_test "attr-gnu-4-24" +run_dump_test "attr-gnu-4-25" run_dump_test "attr-gnu-4-30" run_dump_test "attr-gnu-4-31" run_dump_test "attr-gnu-4-32" run_dump_test "attr-gnu-4-33" +run_dump_test "attr-gnu-4-34" +run_dump_test "attr-gnu-4-35" +run_dump_test "attr-gnu-4-40" run_dump_test "attr-gnu-4-41" +run_dump_test "attr-gnu-4-42" +run_dump_test "attr-gnu-4-43" +run_dump_test "attr-gnu-4-44" +run_dump_test "attr-gnu-4-45" +run_dump_test "attr-gnu-4-51" |