mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-01 17:28:21 +00:00
Don't truncate MachO addresses.
Assigned symbol addresses get truncated to 32-bits, even on 64-bit platforms. That's obviously bogus. For example, .globl _foo .equ _foo, 0x987654321ULL rdar://9922863 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137158 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
793b811c50
commit
739b5576ad
@ -291,7 +291,7 @@ void MachObjectWriter::WriteNlist(MachSymbolData &MSD,
|
||||
const MCSymbol &Symbol = Data.getSymbol();
|
||||
uint8_t Type = 0;
|
||||
uint16_t Flags = Data.getFlags();
|
||||
uint32_t Address = 0;
|
||||
uint64_t Address = 0;
|
||||
|
||||
// Set the N_TYPE bits. See <mach-o/nlist.h>.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user