Do section relocation in architecture backend

This commit is contained in:
Thomas Preud'homme
2016-11-12 23:16:06 +08:00
parent 60374d01ae
commit cb273fdad8
9 changed files with 552 additions and 490 deletions

5
tcc.h
View File

@ -1485,6 +1485,11 @@ ST_FUNC void gen_clear_cache(void);
#ifdef TCC_TARGET_C67
#endif
/* ------------ xxx-link.c ------------ */
ST_FUNC void relocate_init(Section *sr);
ST_FUNC void relocate(TCCState *s1, ElfW_Rel *rel, int type, char *ptr, addr_t addr, addr_t val);
/* ------------ tcccoff.c ------------ */
#ifdef TCC_TARGET_COFF