diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-08-09 22:12:37 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-08-09 22:12:37 +0000 |
commit | 739b5576adbf991cdcc49df61c1a3de3d63747f6 (patch) | |
tree | fb1f16134556f0e7ac0746a56b8bb32412ddbbb6 /lib/MC/MachObjectWriter.cpp | |
parent | 793b811c5057365d847b7f9ae326358e76facfe2 (diff) | |
download | external_llvm-739b5576adbf991cdcc49df61c1a3de3d63747f6.zip external_llvm-739b5576adbf991cdcc49df61c1a3de3d63747f6.tar.gz external_llvm-739b5576adbf991cdcc49df61c1a3de3d63747f6.tar.bz2 |
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
Diffstat (limited to 'lib/MC/MachObjectWriter.cpp')
-rw-r--r-- | lib/MC/MachObjectWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp index 2590f0f..6f64bdf 100644 --- a/lib/MC/MachObjectWriter.cpp +++ b/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>. // |