aboutsummaryrefslogtreecommitdiff
path: root/c67-link.c
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2016-12-10 17:11:00 +0000
committerThomas Preud'homme <robotux@celest.fr>2016-12-10 17:31:20 +0000
commitee2108d07d1f16700e97b3f876a213ae6949bf0e (patch)
treec899722b74cd662f4e0a6e1b86d3fad1626bf034 /c67-link.c
parent11747fe5d0b8b4c8e7aa0b05ede57c155744ab36 (diff)
downloadtinycc-ee2108d07d1f16700e97b3f876a213ae6949bf0e.tar.gz
tinycc-ee2108d07d1f16700e97b3f876a213ae6949bf0e.tar.bz2
Add missing relocation info for C67 target
Fill in relocs_info table for C67 and fix R_C60_NUM value to really be greater than all relocation values known to TCC.
Diffstat (limited to 'c67-link.c')
-rw-r--r--c67-link.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/c67-link.c b/c67-link.c
index 0bc08d6..1eed3b6 100644
--- a/c67-link.c
+++ b/c67-link.c
@@ -21,7 +21,17 @@
#include "tcc.h"
-ST_DATA struct reloc_info relocs_info[R_NUM];
+ST_DATA struct reloc_info relocs_info[R_NUM] = {
+ INIT_RELOC_INFO (R_C60_32, 0, NO_GOTPLT_ENTRY, 0)
+ INIT_RELOC_INFO (R_C60LO16, 0, NO_GOTPLT_ENTRY, 0)
+ INIT_RELOC_INFO (R_C60HI16, 0, NO_GOTPLT_ENTRY, 0)
+ INIT_RELOC_INFO (R_C60_GOTOFF, 0, BUILD_GOT_ONLY, 0)
+ INIT_RELOC_INFO (R_C60_GOTPC, 0, BUILD_GOT_ONLY, 0)
+ INIT_RELOC_INFO (R_C60_GOT32, 0, ALWAYS_GOTPLT_ENTRY, 0)
+ INIT_RELOC_INFO (R_C60_PLT32, 1, ALWAYS_GOTPLT_ENTRY, 0)
+ INIT_RELOC_INFO (R_C60_GLOB_DAT, 0, NO_GOTPLT_ENTRY, 0)
+ INIT_RELOC_INFO (R_C60_JMP_SLOT, 1, NO_GOTPLT_ENTRY, 0)
+};
void relocate_init(Section *sr) {}