mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-13 07:50:41 +00:00
4e0567ae26
In `MachOObjectFile::getSymbolType` we currently always return `SymbolRef::ST_Function` for symbols from any section. In order for llvm-symbolizer to correctly symbolize Mach-O globals, symbols from data and BSS sections should return `SymbolRef::ST_Data`. Differential Revision: http://reviews.llvm.org/D14576 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252867 91177308-0d34-0410-b5e6-96231b3b80d8
9 lines
395 B
Plaintext
9 lines
395 B
Plaintext
RUN: llvm-objdump -macho -t %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
|
|
|
|
CHECK: SYMBOL TABLE:
|
|
CHECK: 000000000000003b l __TEXT,__cstring L_.str
|
|
CHECK: 0000000000000068 l __TEXT,__eh_frame EH_frame0
|
|
CHECK: 0000000000000000 g F __TEXT,__text _main
|
|
CHECK: 0000000000000080 g __TEXT,__eh_frame _main.eh
|
|
CHECK: 0000000000000000 *UND* _printf
|