From: nasm-bot f. H. P. A. <hp...@zy...> - 2016-02-12 11:18:15
|
Commit-ID: 7dcd1a154921d8cce393e276aea643d3439bcef7 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=7dcd1a154921d8cce393e276aea643d3439bcef7 Author: H. Peter Anvin <hp...@zy...> AuthorDate: Fri, 12 Feb 2016 03:16:02 -0800 Committer: H. Peter Anvin <hp...@zy...> CommitDate: Fri, 12 Feb 2016 03:16:02 -0800 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 <hp...@zy...> --- output/outmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/output/outmac.c b/output/outmac.c index 1df45a3..1a1896d 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 { |