aboutsummaryrefslogtreecommitdiffstats
path: root/output/outmacho.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2018-05-08 12:46:55 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2018-05-08 12:46:55 -0700
commit1ce81e10effa327362e8cdd316f6ea57c8324ce0 (patch)
tree4812e768a11af79eba8a98f739e55f390e52aeb4 /output/outmacho.c
parent6d36d8684cea66143ae7b415dbe9cff88b0bff81 (diff)
downloadnasm-1ce81e10effa327362e8cdd316f6ea57c8324ce0.tar.gz
nasm-1ce81e10effa327362e8cdd316f6ea57c8324ce0.tar.xz
nasm-1ce81e10effa327362e8cdd316f6ea57c8324ce0.zip
Revert "output: macho -- Check the actual size of 64-bit absolute address"
This reverts commit 69ed82447a13a22e52a86a51a5657c7955a6767b.
Diffstat (limited to 'output/outmacho.c')
-rw-r--r--output/outmacho.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/output/outmacho.c b/output/outmacho.c
index 3eeb057c..83a76e98 100644
--- a/output/outmacho.c
+++ b/output/outmacho.c
@@ -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");