diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-23 20:22:07 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-23 20:22:07 +0000 |
commit | 21451e533f4c46cdb38d338cfed26cece1d7be54 (patch) | |
tree | a4507e94d53c5fa83f7d77e81c7f6c0b6966af45 /test/MC/ELF/pr9292.s | |
parent | d04b4937d1bc4ed14642926321127e9922e66c3b (diff) | |
download | llvm-21451e533f4c46cdb38d338cfed26cece1d7be54.tar.gz llvm-21451e533f4c46cdb38d338cfed26cece1d7be54.tar.bz2 llvm-21451e533f4c46cdb38d338cfed26cece1d7be54.tar.xz |
Put in the symbol table symbols only used in a .globl statement.
Fixes PR9292.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126330 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ELF/pr9292.s')
-rw-r--r-- | test/MC/ELF/pr9292.s | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/MC/ELF/pr9292.s b/test/MC/ELF/pr9292.s new file mode 100644 index 0000000000..a198fed879 --- /dev/null +++ b/test/MC/ELF/pr9292.s @@ -0,0 +1,26 @@ +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s + +// Test that both foo and bar are undefined. + +.globl foo +.globl bar +mov %eax,bar + + +// CHECK: (('st_name', 0x00000005) # 'bar' +// CHECK-NEXT: ('st_bind', 0x00000001) +// CHECK-NEXT: ('st_type', 0x00000000) +// CHECK-NEXT: ('st_other', 0x00000000) +// CHECK-NEXT: ('st_shndx', 0x00000000) +// CHECK-NEXT: ('st_value', 0x0000000000000000) +// CHECK-NEXT: ('st_size', 0x0000000000000000) +// CHECK-NEXT: ), +// CHECK-NEXT: # Symbol 0x00000005 +// CHECK-NEXT: (('st_name', 0x00000001) # 'foo' +// CHECK-NEXT: ('st_bind', 0x00000001) +// CHECK-NEXT: ('st_type', 0x00000000) +// CHECK-NEXT: ('st_other', 0x00000000) +// CHECK-NEXT: ('st_shndx', 0x00000000) +// CHECK-NEXT: ('st_value', 0x0000000000000000) +// CHECK-NEXT: ('st_size', 0x0000000000000000) +// CHECK-NEXT: ), |