summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2016-01-06 20:53:19 +0000
committerPete Cooper <peter_cooper@apple.com>2016-01-06 20:53:19 +0000
commitd53090ac5e4382f1aaad8ddeff0fce4b43824bad (patch)
tree34faa1b36615f0fdb017e5e317c35c85c5647611 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentc2d6461a4afb3701e7eb4991b3143751b802cd9f (diff)
downloadbcm5719-llvm-d53090ac5e4382f1aaad8ddeff0fce4b43824bad.tar.gz
bcm5719-llvm-d53090ac5e4382f1aaad8ddeff0fce4b43824bad.zip
Fix MachO arm64 delta32ToGOT reloc encoding in -r.
The fixup content we encode here should be the offset from the fixup location back to the last nonlocal label. We were only encoding the address of the fixup, and not taking in to account the base address of the atom we are in. Updated the test case here to have a text section which will come before the data section where the relocation lives. .data being at offset 0 had previously been hiding this bug. llvm-svn: 256974
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud