summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-08-09 22:12:37 +0000
committerJim Grosbach <grosbach@apple.com>2011-08-09 22:12:37 +0000
commita317160348e93b130b6978a2d76aa857f7f8a00c (patch)
tree45f677cdb0403d08699eefcce6849df3ac98cff3 /llvm/lib
parent39821ac8270aa03e06d3cdb37435271d777260fe (diff)
downloadbcm5719-llvm-a317160348e93b130b6978a2d76aa857f7f8a00c.tar.gz
bcm5719-llvm-a317160348e93b130b6978a2d76aa857f7f8a00c.zip
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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/MC/MachObjectWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MachObjectWriter.cpp b/llvm/lib/MC/MachObjectWriter.cpp
index 2590f0ff7b2..6f64bdf40be 100644
--- a/llvm/lib/MC/MachObjectWriter.cpp
+++ b/llvm/lib/MC/MachObjectWriter.cpp
@@ -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>.
//
OpenPOWER on IntegriCloud