diff options
author | H. Peter Anvin <hpa@zytor.com> | 2016-02-12 03:16:02 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2016-02-12 03:16:02 -0800 |
commit | 7dcd1a154921d8cce393e276aea643d3439bcef7 (patch) | |
tree | 43c67d05d2995043b7801ff8bf16d5f20b242f67 | |
parent | 09b56b421a01863679a9c43e94cc5a675b9add81 (diff) | |
download | nasm-7dcd1a154921d8cce393e276aea643d3439bcef7.tar.gz |
outmac: default to bits 32 for macho32 output format
Default to 32 bits for macho32; default to 64 bits for macho64.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | output/outmac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/output/outmac.c b/output/outmac.c index 1df45a30..1a1896d8 100644 --- a/output/outmac.c +++ b/output/outmac.c @@ -653,9 +653,9 @@ static int32_t macho_section(char *name, int pass, int *bits) (void)pass; - /* Default to 64 bits. */ + /* Default to the appropriate number of bits. */ if (!name) { - *bits = 64; + *bits = fmt->ptrsize << 3; name = ".text"; sectionAttributes = NULL; } else { |