1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/tools/dsymutil/absolute_symbol.test
Frederic Riss 1db2534294 [dsymutil] Ignore absolute symbols in the debug map
Quoting from the comment added to the code:

    // Objective-C on i386 uses artificial absolute symbols to
    // perform some link time checks. Those symbols have a fixed 0
    // address that might conflict with real symbols in the object
    // file. As I cannot see a way for absolute symbols to find
    // their way into the debug information, let's just ignore those.

llvm-svn: 255350
2015-12-11 17:50:37 +00:00

17 lines
481 B
Plaintext

RUN: llvm-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-NOT: objc_class_name_Foo