diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-09-18 15:03:21 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-09-18 15:03:21 +0000 |
commit | ad49cf586624c400302d17ecc2c2e41ea4346f1a (patch) | |
tree | d5f830915f4aefbd2f80f85ade1e45459333106b /test/MC/ELF | |
parent | 9e8d1f97e9f32c87aac1189edbc3263a1f4a81f3 (diff) | |
download | external_llvm-ad49cf586624c400302d17ecc2c2e41ea4346f1a.zip external_llvm-ad49cf586624c400302d17ecc2c2e41ea4346f1a.tar.gz external_llvm-ad49cf586624c400302d17ecc2c2e41ea4346f1a.tar.bz2 |
Make sure the STT_FILE symbol is the first one in the symbol table.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114285 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ELF')
-rw-r--r-- | test/MC/ELF/file.s | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/MC/ELF/file.s b/test/MC/ELF/file.s new file mode 100644 index 0000000..1e10531 --- /dev/null +++ b/test/MC/ELF/file.s @@ -0,0 +1,23 @@ +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s + +// Test that the STT_FILE symbol precedes the other local symbols. + +.file "foo" +foa: +// CHECK: # Symbol 1 +// CHECK-NEXT: (('st_name', 1) # 'foo' +// CHECK-NEXT: ('st_bind', 0) +// CHECK-NEXT: ('st_type', 4) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 65521) +// CHECK-NEXT: ('st_value', 0) +// CHECK-NEXT: ('st_size', 0) +// CHECK-NEXT: ), +// CHECK-NEXT: # Symbol 2 +// CHECK-NEXT: (('st_name', 5) # 'foa' +// CHECK-NEXT: ('st_bind', 0) +// CHECK-NEXT: ('st_type', 0) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 1) +// CHECK-NEXT: ('st_value', 0) +// CHECK-NEXT: ('st_size', 0) |