bolt/deps/llvm-18.1.8/llvm/test/tools/dsymutil/absolute_symbol.test
2025-02-14 19:21:04 +01:00

20 lines
619 B
Text

RUN: dsymutil -dump-debug-map -oso-prepend-path %p %p/Inputs/absolute_sym.macho.i386 | FileCheck %s
RUN: dsymutil --linker parallel -dump-debug-map -oso-prepend-path %p %p/Inputs/absolute_sym.macho.i386 | FileCheck %s
The tested object file has been created by the dummy Objective-C code:
@interface Foo
@end
@implementation Foo
@end
int main() { return 0; }
compiled for i386. This create an absolute symbol .objc_class_name_Foo
We must not consider this symbol for debug info linking as its address
might conflict with other real symbols in the same file.
CHECK: objc_class_name_Foo
CHECK-NOT: objAddr
CHECK: }