diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-10-25 15:20:24 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-10-25 15:20:24 +0000 |
commit | c6e653525f8ea3235ab15b974cb9cf9ee686bf8e (patch) | |
tree | e1bcb2928b4be084de338068368ac4b177fab0d8 /ld/testsuite/ld-powerpc | |
parent | 7c8b76cc17aabbc966b92b12852f7f8b7f69dda7 (diff) | |
download | gdb-c6e653525f8ea3235ab15b974cb9cf9ee686bf8e.zip gdb-c6e653525f8ea3235ab15b974cb9cf9ee686bf8e.tar.gz gdb-c6e653525f8ea3235ab15b974cb9cf9ee686bf8e.tar.bz2 |
* elf32-ppc.c (ppc_elf_merge_obj_attributes): Add support for
Tag_GNU_Power_ABI_Vector.
* readelf.c (display_power_gnu_attribute): Add support for
Tag_GNU_Power_ABI_Vector.
* ppc.h (Tag_GNU_Power_ABI_Vector): New.
* ld-powerpc/attr-gnu-8-1.s, ld-powerpc/attr-gnu-8-11.d,
ld-powerpc/attr-gnu-8-2.s, ld-powerpc/attr-gnu-8-23.d,
ld-powerpc/attr-gnu-8-3.s, ld-powerpc/attr-gnu-8-31.d: New.
* ld-powerpc/powerpc.exp: Run new tests.
Diffstat (limited to 'ld/testsuite/ld-powerpc')
-rw-r--r-- | ld/testsuite/ld-powerpc/attr-gnu-8-1.s | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/attr-gnu-8-11.d | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/attr-gnu-8-2.s | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/attr-gnu-8-23.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/attr-gnu-8-3.s | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/attr-gnu-8-31.d | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/powerpc.exp | 4 |
7 files changed, 33 insertions, 0 deletions
diff --git a/ld/testsuite/ld-powerpc/attr-gnu-8-1.s b/ld/testsuite/ld-powerpc/attr-gnu-8-1.s new file mode 100644 index 0000000..81c7b7f --- /dev/null +++ b/ld/testsuite/ld-powerpc/attr-gnu-8-1.s @@ -0,0 +1 @@ +.gnu_attribute 8,1 diff --git a/ld/testsuite/ld-powerpc/attr-gnu-8-11.d b/ld/testsuite/ld-powerpc/attr-gnu-8-11.d new file mode 100644 index 0000000..7e49d4a --- /dev/null +++ b/ld/testsuite/ld-powerpc/attr-gnu-8-11.d @@ -0,0 +1,10 @@ +#source: attr-gnu-8-1.s +#source: attr-gnu-8-1.s +#as: -a32 +#ld: -r -melf32ppc +#readelf: -A +#target: powerpc*-*-* + +Attribute Section: gnu +File Attributes + Tag_GNU_Power_ABI_Vector: Generic diff --git a/ld/testsuite/ld-powerpc/attr-gnu-8-2.s b/ld/testsuite/ld-powerpc/attr-gnu-8-2.s new file mode 100644 index 0000000..0f18f5f --- /dev/null +++ b/ld/testsuite/ld-powerpc/attr-gnu-8-2.s @@ -0,0 +1 @@ +.gnu_attribute 8,2 diff --git a/ld/testsuite/ld-powerpc/attr-gnu-8-23.d b/ld/testsuite/ld-powerpc/attr-gnu-8-23.d new file mode 100644 index 0000000..b22e4bd --- /dev/null +++ b/ld/testsuite/ld-powerpc/attr-gnu-8-23.d @@ -0,0 +1,6 @@ +#source: attr-gnu-8-2.s +#source: attr-gnu-8-3.s +#as: -a32 +#ld: -r -melf32ppc +#warning: Warning: .* uses vector ABI "SPE", .* uses "AltiVec" +#target: powerpc*-*-* diff --git a/ld/testsuite/ld-powerpc/attr-gnu-8-3.s b/ld/testsuite/ld-powerpc/attr-gnu-8-3.s new file mode 100644 index 0000000..6a1cf4e --- /dev/null +++ b/ld/testsuite/ld-powerpc/attr-gnu-8-3.s @@ -0,0 +1 @@ +.gnu_attribute 8,3 diff --git a/ld/testsuite/ld-powerpc/attr-gnu-8-31.d b/ld/testsuite/ld-powerpc/attr-gnu-8-31.d new file mode 100644 index 0000000..53e8f99 --- /dev/null +++ b/ld/testsuite/ld-powerpc/attr-gnu-8-31.d @@ -0,0 +1,10 @@ +#source: attr-gnu-8-3.s +#source: attr-gnu-8-1.s +#as: -a32 +#ld: -r -melf32ppc +#readelf: -A +#target: powerpc*-*-* + +Attribute Section: gnu +File Attributes + Tag_GNU_Power_ABI_Vector: SPE diff --git a/ld/testsuite/ld-powerpc/powerpc.exp b/ld/testsuite/ld-powerpc/powerpc.exp index d65aa1a..b1ad367 100644 --- a/ld/testsuite/ld-powerpc/powerpc.exp +++ b/ld/testsuite/ld-powerpc/powerpc.exp @@ -165,3 +165,7 @@ 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-31" + +run_dump_test "attr-gnu-8-11" +run_dump_test "attr-gnu-8-23" +run_dump_test "attr-gnu-8-31" |