mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
Delete vtable tests
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2004-07-13 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* gas/vtable: Delete directory. These tests are no longer needed
|
||||||
|
as the VTABLE_ reloc support is obsolete.
|
||||||
|
|
||||||
2004-07-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
|
2004-07-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
|
||||||
|
|
||||||
* gas/m32r/pic.exp: Add New Test case for @GOTOFF, @GOT, @PLT.
|
* gas/m32r/pic.exp: Add New Test case for @GOTOFF, @GOT, @PLT.
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
#objdump: -r
|
|
||||||
#name: vtable entry0
|
|
||||||
|
|
||||||
.*: +file format .*
|
|
||||||
|
|
||||||
RELOCATION RECORDS FOR \[.text\]:
|
|
||||||
OFFSET +TYPE +VALUE
|
|
||||||
0+0000010 R_.*_GNU_VTENTRY vtbl_a
|
|
||||||
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
|||||||
.text
|
|
||||||
.vtable_entry vtbl_a, 16
|
|
@ -1,10 +0,0 @@
|
|||||||
#objdump: -r
|
|
||||||
#name: vtable entry1
|
|
||||||
|
|
||||||
.*: +file format .*
|
|
||||||
|
|
||||||
RELOCATION RECORDS FOR \[.text\]:
|
|
||||||
OFFSET +TYPE +VALUE
|
|
||||||
0+0000000 R_.*_GNU_VTENTRY vtbl_a.*
|
|
||||||
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
|||||||
.text
|
|
||||||
.vtable_entry vtbl_a, 16
|
|
@ -1,10 +0,0 @@
|
|||||||
#objdump: -r
|
|
||||||
#name: vtable inherit0
|
|
||||||
|
|
||||||
.*: +file format .*
|
|
||||||
|
|
||||||
RELOCATION RECORDS FOR \[.data\]:
|
|
||||||
OFFSET +TYPE +VALUE
|
|
||||||
0+0000000 R_.*_GNU_VTINHERIT \*ABS\*
|
|
||||||
0+0000010 R_.*_GNU_VTINHERIT vtbl_a
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
.data
|
|
||||||
|
|
||||||
.type vtbl_a,object
|
|
||||||
vtbl_a:
|
|
||||||
.space 16
|
|
||||||
.size vtbl_a,16
|
|
||||||
.vtable_inherit vtbl_a, 0
|
|
||||||
|
|
||||||
.type vtbl_b,object
|
|
||||||
vtbl_b:
|
|
||||||
.space 16
|
|
||||||
.size vtbl_b,16
|
|
||||||
.vtable_inherit vtbl_b, vtbl_a
|
|
@ -1,6 +0,0 @@
|
|||||||
.*: Assembler messages:
|
|
||||||
.*:1: Error: expected `vtbl_a' to have already been set for .vtable_inherit
|
|
||||||
.*GAS.*
|
|
||||||
|
|
||||||
|
|
||||||
+1.*vtable_inherit vtbl_a, 0
|
|
@ -1 +0,0 @@
|
|||||||
.vtable_inherit vtbl_a, 0
|
|
@ -1,59 +0,0 @@
|
|||||||
#
|
|
||||||
# vtable tests
|
|
||||||
#
|
|
||||||
proc run_list_test { name opts } {
|
|
||||||
global srcdir subdir
|
|
||||||
set testname "vtable $name"
|
|
||||||
set file $srcdir/$subdir/$name
|
|
||||||
gas_run ${name}.s $opts ">&dump.out"
|
|
||||||
if { [regexp_diff "dump.out" "${file}.l"] } then {
|
|
||||||
fail $testname
|
|
||||||
verbose "output is [file_contents "dump.out"]" 2
|
|
||||||
return
|
|
||||||
}
|
|
||||||
pass $testname
|
|
||||||
}
|
|
||||||
|
|
||||||
# These tests are not (yet) supported on some targets.
|
|
||||||
proc vtable_setup_xfails { } {
|
|
||||||
setup_xfail "alpha*-*" "arc-*" "avr-*" "d30v-*"
|
|
||||||
setup_xfail "h8300*-*" "hppa*64*-*-*hpux*"
|
|
||||||
setup_xfail "i370-*" "i860-*" "i960-*" "ia64-*" "ip2k-*"
|
|
||||||
setup_xfail "mn10200-*" "or32-*" "sparc64*-*"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Vtable bits are only supported by ELF targets.
|
|
||||||
if { ( [istarget "*-*-elf*"] || [istarget "*-*-linux*"])
|
|
||||||
&& ![istarget *-*-linux*aout*]
|
|
||||||
&& ![istarget *-*-linux*ecoff*]
|
|
||||||
&& ![istarget *-*-linux*oldld*] } then {
|
|
||||||
|
|
||||||
vtable_setup_xfails
|
|
||||||
run_dump_test "inherit0"
|
|
||||||
|
|
||||||
# This particular test is supposed to fail..
|
|
||||||
run_list_test "inherit1" "-al"
|
|
||||||
|
|
||||||
# The vtable entry results are different on Rel and Rela targets.
|
|
||||||
vtable_setup_xfails
|
|
||||||
if {[istarget "arm*-*"]
|
|
||||||
|| [istarget "arc-*"]
|
|
||||||
|| [istarget "d10v-*"]
|
|
||||||
|| [istarget "dlx-*"]
|
|
||||||
|| [istarget "i*86-*"]
|
|
||||||
|| ([istarget "mips*-*"]
|
|
||||||
&& ! [istarget "mips64*-*-linux*"]
|
|
||||||
&& ! [istarget "mips*-*-irix6*"])
|
|
||||||
|| [istarget "m68hc*-*"]
|
|
||||||
|| [istarget "or32-*"]
|
|
||||||
|| [istarget "strongarm*-*"]
|
|
||||||
|| [istarget "xscale*-*"] } then {
|
|
||||||
|
|
||||||
run_dump_test "entry0"
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
run_dump_test "entry1"
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user