aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorJiong Wang <jiong.wang@arm.com>2015-03-03 15:00:59 +0000
committerJiong Wang <jiong.wang@arm.com>2015-03-03 15:00:59 +0000
commitd8282f0eb10a1a5759bcca4582098a8369f508f8 (patch)
tree2ab820849ee00d86b98a737859010d9d18066ced /binutils
parent90ad5e1d4f34d02f437ec12d1b65d7252f5b7f1c (diff)
downloadgdb-d8282f0eb10a1a5759bcca4582098a8369f508f8.zip
gdb-d8282f0eb10a1a5759bcca4582098a8369f508f8.tar.gz
gdb-d8282f0eb10a1a5759bcca4582098a8369f508f8.tar.bz2
[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.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/testsuite/ChangeLog5
-rw-r--r--binutils/testsuite/binutils-all/arm/objdump.exp22
-rw-r--r--binutils/testsuite/binutils-all/arm/rvct_symbol.s15
3 files changed, 42 insertions, 0 deletions
diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog
index ef8efa3..471cc15 100644
--- a/binutils/testsuite/ChangeLog
+++ b/binutils/testsuite/ChangeLog
@@ -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.
diff --git a/binutils/testsuite/binutils-all/arm/objdump.exp b/binutils/testsuite/binutils-all/arm/objdump.exp
index ce5a42c..cd10c4b 100644
--- a/binutils/testsuite/binutils-all/arm/objdump.exp
+++ b/binutils/testsuite/binutils-all/arm/objdump.exp
@@ -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"
+}
diff --git a/binutils/testsuite/binutils-all/arm/rvct_symbol.s b/binutils/testsuite/binutils-all/arm/rvct_symbol.s
new file mode 100644
index 0000000..f63240b
--- /dev/null
+++ b/binutils/testsuite/binutils-all/arm/rvct_symbol.s
@@ -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