From 59391d5520534ef1fe3cc2e96fa567c870e2f533 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Mon, 5 Dec 2016 20:40:59 +0000 Subject: Fix relocs_info declaration in tcc.h C standard specifies that array should be declared with a non null size or with * for standard array. Declaration of relocs_info in tcc.h was not respecting this rule. This commit add a R_NUM macro that maps to the R__NUM macros and declare relocs_info using it. This commit also moves all linker-related macros from -gen.c files to -link.c ones. --- c67-gen.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'c67-gen.c') diff --git a/c67-gen.c b/c67-gen.c index fcfc23c..28db68b 100644 --- a/c67-gen.c +++ b/c67-gen.c @@ -108,21 +108,6 @@ enum { /* maximum alignment (for aligned attribute support) */ #define MAX_ALIGN 8 -/******************************************************/ -/* ELF defines */ - -#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 ELF_START_ADDR 0x00000400 -#define ELF_PAGE_SIZE 0x1000 - /******************************************************/ #else /* ! TARGET_DEFS_ONLY */ /******************************************************/ -- cgit v1.3.1