llvm-for-llvmta/test/tools/dsymutil/absolute_symbol.test

18 lines
491 B
Plaintext
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
RUN: dsymutil -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