large object file (> 1GB).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113494
91177308-0d34-0410-b5e6-
96231b3b80d8
// FIXME: We need a way to communicate this error.
int64_t Offset = TargetLocation - FragmentOffset;
// FIXME: We need a way to communicate this error.
int64_t Offset = TargetLocation - FragmentOffset;
+ if (Offset < 0 || Offset >= 0x40000000)
report_fatal_error("invalid .org offset '" + Twine(TargetLocation) +
"' (at offset '" + Twine(FragmentOffset) + "'");
report_fatal_error("invalid .org offset '" + Twine(TargetLocation) +
"' (at offset '" + Twine(FragmentOffset) + "'");