diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-09-17 21:24:44 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-09-17 21:24:44 +0000 |
commit | 3168868bb91ac871dbb83c879e763d39a39e607e (patch) | |
tree | b02b361db7270c06389fe563e89721da010eee50 /test/MC/COFF/alias.s | |
parent | 4157d68ece29acc711aa8f1f5a294ddbb6e0c017 (diff) | |
download | external_llvm-3168868bb91ac871dbb83c879e763d39a39e607e.zip external_llvm-3168868bb91ac871dbb83c879e763d39a39e607e.tar.gz external_llvm-3168868bb91ac871dbb83c879e763d39a39e607e.tar.bz2 |
COFF: Emit all MCSymbols rather than filtering out some of them
In particular, this means we emit non-external symbols defined to
variables, such as aliases or absolute addresses.
This is needed to implement /safeseh, and it appears there was some
confusion about what symbols to emit previously.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190888 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/COFF/alias.s')
-rw-r--r-- | test/MC/COFF/alias.s | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/MC/COFF/alias.s b/test/MC/COFF/alias.s index f6f6d46..98ef7e5 100644 --- a/test/MC/COFF/alias.s +++ b/test/MC/COFF/alias.s @@ -45,6 +45,15 @@ weak_aliased_to_external = external2 // CHECK-NEXT: AuxSymbolCount: 0 // CHECK-NEXT: } // CHECK-NEXT: Symbol { +// CHECK-NEXT: Name: external_aliased_to_local +// CHECK-NEXT: Value: 0 +// CHECK-NEXT: Section: .text (1) +// CHECK-NEXT: BaseType: Null (0x0) +// CHECK-NEXT: ComplexType: Null (0x0) +// CHECK-NEXT: StorageClass: Static (0x3) +// CHECK-NEXT: AuxSymbolCount: 0 +// CHECK-NEXT: } +// CHECK-NEXT: Symbol { // CHECK-NEXT: Name: global_aliased_to_external // CHECK-NEXT: Value: 0 // CHECK-NEXT: Section: (0) @@ -89,7 +98,7 @@ weak_aliased_to_external = external2 // CHECK-NEXT: StorageClass: WeakExternal (0x69) // CHECK-NEXT: AuxSymbolCount: 1 // CHECK-NEXT: AuxWeakExternal { -// CHECK-NEXT: Linked: external2 (9) +// CHECK-NEXT: Linked: external2 (10) // CHECK-NEXT: Search: Library (0x2) // CHECK-NEXT: Unused: (00 00 00 00 00 00 00 00 00 00) // CHECK-NEXT: } |