versym cleanup

get rid of some globals, in the first place.  Also, for the
PE target, ifdef out ELF executable creation.
This commit is contained in:
grischka
2019-12-09 20:32:13 +01:00
parent 4d297d354c
commit df349ddc43
9 changed files with 187 additions and 168 deletions

View File

@@ -22,6 +22,7 @@
#include "tcc.h"
#ifndef ELF_OBJ_ONLY
/* Returns 1 for a code relocation, 0 for a data relocation. For unknown
relocations, returns -1. */
int code_reloc (int reloc_type)
@@ -162,17 +163,7 @@ ST_FUNC void relocate_plt(TCCState *s1)
}
}
}
static ElfW_Rel *qrel; /* ptr to next reloc entry reused */
void relocate_init(Section *sr)
{
qrel = (ElfW_Rel *) sr->data;
}
void relocate_fini(Section *sr)
{
}
#endif
void relocate(TCCState *s1, ElfW_Rel *rel, int type, unsigned char *ptr, addr_t addr, addr_t val)
{