diff options
Diffstat (limited to 'libtcc.c')
| -rw-r--r-- | libtcc.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -536,7 +536,8 @@ ST_FUNC void put_extern_sym(Sym *sym, Section *section, } /* add a new relocation entry to symbol 'sym' in section 's' */ -ST_FUNC void greloc(Section *s, Sym *sym, unsigned long offset, int type) +ST_FUNC void greloca(Section *s, Sym *sym, unsigned long offset, int type, + unsigned long addend) { int c = 0; if (sym) { @@ -545,7 +546,12 @@ ST_FUNC void greloc(Section *s, Sym *sym, unsigned long offset, int type) c = sym->c; } /* now we can add ELF relocation info */ - put_elf_reloc(symtab_section, s, offset, type, c); + put_elf_reloca(symtab_section, s, offset, type, c, addend); +} + +ST_FUNC void greloc(Section *s, Sym *sym, unsigned long offset, int type) +{ + greloca(s, sym, offset, type, 0); } /********************************************************/ |
