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>
This commit is contained in:
H. Peter Anvin 2016-02-12 03:16:02 -08:00
parent 09b56b421a
commit 7dcd1a1549

View File

@ -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 {