mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
798f464098
The weak alias should have the characteristics set to `IMAGE_EXTERN_WEAK_SEARCH_ALIAS` to indicate that the weak external here is a symbol alias and that the symbol is aliased to a locally defined symbol. We were previously setting the characteristics to `IMAGE_EXTERN_WEAK_SEARCH_LIBRARY` which indicates that the symbol should be looked for in the libraries. llvm-svn: 364370
15 lines
306 B
ArmAsm
15 lines
306 B
ArmAsm
// RUN: llvm-mc -triple x86_64-unknown-windows-msvc -filetype obj -o - %s | llvm-readobj --symbols - | FileCheck %s
|
|
|
|
g:
|
|
movl foo(%rip), %eax
|
|
retq
|
|
|
|
.weak foo
|
|
|
|
// CHECK: Symbol {
|
|
// CHECK: Name: foo
|
|
// CHECK: Section: IMAGE_SYM_UNDEFINED (0)
|
|
// CHECK: StorageClass: WeakExternal (0x69)
|
|
// CHECK: }
|
|
|