don't create a reloc for an external function

This commit is contained in:
Bill Currie 2007-04-09 14:06:12 +00:00 committed by Jeff Teunissen
parent e53e9944b6
commit 642bb0f810

View file

@ -445,6 +445,7 @@ build_builtin_function (def_t *def, expr_t *bi_val)
f->builtin = bi_val->type == ex_integer ? bi_val->e.integer_val
: (int)bi_val->e.float_val;
f->def = def;
if (!def->external)
reloc_def_func (f, def->ofs);
build_function (f);
finish_function (f);