mirror of
https://github.com/TinyCC/tinycc.git
synced 2025-11-16 12:34:45 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user