llvm-project/llvm/test/MC/MachO/section-offset-overflow.s
Eli Friedman a10570ba91
[MachO] Detect overflow in section offset. (#98685)
The section offset field is only 32 bits; if the computed section offset
is larger, make sure we don't emit a corrupt object file.
2024-07-17 09:42:53 -07:00

10 lines
236 B
ArmAsm

// RUN: not llvm-mc -triple x86_64-apple-macosx -filetype=obj -o /dev/null %s 2>&1 | FileCheck %s
// CHECK: error: cannot encode offset of section
.data
.long 1
.zero 0x100000000
.const
.long 1