mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 18:10:46 +00:00
[ARM] Skip private symbol when doing objdump
2015-03-03 Jiong Wang <jiong.wang@arm.com> opcode/ * arm-dis.c (arm_symbol_is_valid): Skip ARM private symbols. binutils/testsuite/ * binutils-all/arm/rvct_symbol.s: New testcase. * binutils-all/arm/objdump.exp: Run it.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2015-03-03 Jiong Wang <jiong.wang@arm.com>
|
||||
|
||||
* binutils-all/arm/rvct_symbol.s: New testcase.
|
||||
* binutils-all/arm/objdump.exp: Run it.
|
||||
|
||||
2015-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||
|
||||
* binutils-all/update-1.s: New file.
|
||||
|
||||
@@ -86,3 +86,25 @@ if [regexp $want $got] then {
|
||||
} else {
|
||||
fail "multiple input files"
|
||||
}
|
||||
|
||||
if {![binutils_assemble $srcdir/$subdir/rvct_symbol.s tmpdir/rvct_symbol.o]} then {
|
||||
return
|
||||
}
|
||||
|
||||
if [is_remote host] {
|
||||
set objfile [remote_download host tmpdir/rvct_symbol.o]
|
||||
} else {
|
||||
set objfile tmpdir/rvct_symbol.o
|
||||
}
|
||||
|
||||
# Make sure multiple disassemblies come out the same
|
||||
|
||||
set got [binutils_run $OBJDUMP "-D $objfile $objfile"]
|
||||
|
||||
set want "foo.*global_a.*global_b"
|
||||
|
||||
if [regexp $want $got] then {
|
||||
pass "skip rvct symbol"
|
||||
} else {
|
||||
fail "skip rvct symbol"
|
||||
}
|
||||
|
||||
15
binutils/testsuite/binutils-all/arm/rvct_symbol.s
Normal file
15
binutils/testsuite/binutils-all/arm/rvct_symbol.s
Normal file
@@ -0,0 +1,15 @@
|
||||
.text
|
||||
foo:
|
||||
__tagsym$$0:
|
||||
add r0, r1, r2
|
||||
|
||||
.data
|
||||
.global global_a
|
||||
__tagsym$$used0:
|
||||
global_a:
|
||||
.word 0xcafedead
|
||||
|
||||
.global __tagsym$$used1
|
||||
__tagsym$$used1:
|
||||
global_b:
|
||||
.word 0xcafecafe
|
||||
Reference in New Issue
Block a user