macos: make Mach-O somewhat ELF_OBJ_ONLY

we only emit .o files in ELF format, but do use the .got building
from generic ELF code also on MacOS for -run.
This commit is contained in:
Michael Matz
2020-05-09 01:40:36 +02:00
parent c16f5d2fe6
commit 032664bf7f
4 changed files with 19 additions and 13 deletions

View File

@@ -22,7 +22,7 @@
#include "tcc.h"
#ifndef ELF_OBJ_ONLY
#if !defined(ELF_OBJ_ONLY) || defined(TCC_TARGET_MACHO)
/* Returns 1 for a code relocation, 0 for a data relocation. For unknown
relocations, returns -1. */
int code_reloc (int reloc_type)