mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-02 15:26:29 +00:00

Summary: This change does three things: - Try to find the file and line number of an undefined symbol reference by reading codeview debug info. - Try to find the name of the function or global variable with the undefined symbol reference by searching the object file's symbol table. - Prints the information in the same style as the ELF linker. Differential Revision: https://reviews.llvm.org/D45467 llvm-svn: 330235
17 lines
573 B
ArmAsm
17 lines
573 B
ArmAsm
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc -o %T/MixedCase.obj %s
|
|
# RUN: not lld-link /entry:main %T/MixedCase.obj 2>&1 | FileCheck -check-prefix=OBJECT %s
|
|
|
|
# RUN: llvm-lib /out:%T/MixedCase.lib %T/MixedCase.obj
|
|
# RUN: not lld-link /machine:x64 /entry:main %T/MixedCase.lib 2>&1 | FileCheck -check-prefix=ARCHIVE %s
|
|
|
|
# OBJECT: undefined symbol: f
|
|
# OBJECT-NEXT: >>> referenced by {{.*}}MixedCase.obj:(main)
|
|
# ARCHIVE: undefined symbol: f
|
|
# ARCHIVE-NEXT: >>> referenced by {{.*}}MixedCase.lib(MixedCase.obj):(main)
|
|
|
|
.globl main
|
|
main:
|
|
callq f
|