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 llvm-svn: 137158
This commit is contained in:
@@ -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>.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user