Revert "output: macho -- Check the actual size of 64-bit absolute address"

This reverts commit 69ed82447a.
This commit is contained in:
H. Peter Anvin 2018-05-08 12:46:55 -07:00
parent 6d36d8684c
commit 1ce81e10ef

View File

@ -670,8 +670,7 @@ static void macho_output(int32_t secto, const void *data,
nasm_error(ERR_NONFATAL, "Mach-O format does not support"
" section base references");
} else if (wrt == NO_SEG) {
if (fmt.ptrsize == 8 &&
(asize != 8 || addr <= UINT32_MAX)) {
if (fmt.ptrsize == 8 && asize != 8) {
nasm_error(ERR_NONFATAL,
"Mach-O 64-bit format does not support"
" 32-bit absolute addresses");