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.
This commit is contained in:
12
c67-link.c
12
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) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user