aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-11-29 21:58:23 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-11-29 21:58:23 +0000
commitccf7d4b4aa713e95a65a6d4e7c7dd2b276c7206d (patch)
tree25b7ea04ea2da54604e221ad823b08c7c94eff72 /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
parent9af1d12978a4a640abb3dd969638932e348e7604 (diff)
downloadllvm-ccf7d4b4aa713e95a65a6d4e7c7dd2b276c7206d.zip
llvm-ccf7d4b4aa713e95a65a6d4e7c7dd2b276c7206d.tar.gz
llvm-ccf7d4b4aa713e95a65a6d4e7c7dd2b276c7206d.tar.bz2
Produce an error on non-encodable offsets for darwin ARM scattered relocations.
Scattered ARM relocations for Mach-O's only have 24 bits available to encode the offset. This is not checked but just truncated and can result in corrupt binaries after linking because the relocations are applied to the wrong offset. This patch will check and error out in those situations instead of emitting a wrong relocation. Patch by: Sander Bogaert (dzn) Differential revision: https://reviews.llvm.org/D54776 llvm-svn: 347922
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
0 files changed, 0 insertions, 0 deletions