diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2016-12-05 20:40:59 +0000 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2016-12-05 20:51:10 +0000 |
| commit | 59391d5520534ef1fe3cc2e96fa567c870e2f533 (patch) | |
| tree | b1382b41c1a41310db148c9939f1792b621332d9 /arm64-gen.c | |
| parent | 097cf3aa5ee370bab50d6d15cef9b0af55a1a3a2 (diff) | |
| download | tinycc-59391d5520534ef1fe3cc2e96fa567c870e2f533.tar.gz tinycc-59391d5520534ef1fe3cc2e96fa567c870e2f533.tar.bz2 | |
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_<ARCH>_NUM macros and declare relocs_info using it. This commit also
moves all linker-related macros from <arch>-gen.c files to <arch>-link.c
ones.
Diffstat (limited to 'arm64-gen.c')
| -rw-r--r-- | arm64-gen.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/arm64-gen.c b/arm64-gen.c index c4e83e1..5bb8e24 100644 --- a/arm64-gen.c +++ b/arm64-gen.c @@ -41,20 +41,6 @@ #define CHAR_IS_UNSIGNED /******************************************************/ -/* ELF defines */ - -#define EM_TCC_TARGET EM_AARCH64 - -#define R_DATA_32 R_AARCH64_ABS32 -#define R_DATA_PTR R_AARCH64_ABS64 -#define R_JMP_SLOT R_AARCH64_JUMP_SLOT -#define R_GLOB_DAT R_AARCH64_GLOB_DAT -#define R_COPY R_AARCH64_COPY - -#define ELF_START_ADDR 0x00400000 -#define ELF_PAGE_SIZE 0x1000 - -/******************************************************/ #else /* ! TARGET_DEFS_ONLY */ /******************************************************/ #include "tcc.h" |
