diff options
Diffstat (limited to 'c67-link.c')
| -rw-r--r-- | c67-link.c | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -1,6 +1,25 @@ -#include "tcc.h" +#ifdef TARGET_DEFS_ONLY + +#define EM_TCC_TARGET EM_C60 + +/* relocation type for 32 bit data relocation */ +#define R_DATA_32 R_C60_32 +#define R_DATA_PTR R_C60_32 +#define R_JMP_SLOT R_C60_JMP_SLOT +#define R_GLOB_DAT R_C60_GLOB_DAT +#define R_COPY R_C60_COPY + +#define R_NUM R_C60_NUM + +#define ELF_START_ADDR 0x00000400 +#define ELF_PAGE_SIZE 0x1000 + #define HAVE_SECTION_RELOC +#else /* !TARGET_DEFS_ONLY */ + +#include "tcc.h" + void relocate_init(Section *sr) {} void relocate(TCCState *s1, ElfW_Rel *rel, int type, char *ptr, addr_t addr, addr_t val) @@ -33,3 +52,5 @@ void relocate(TCCState *s1, ElfW_Rel *rel, int type, char *ptr, addr_t addr, add break; } } + +#endif /* !TARGET_DEFS_ONLY */ |
