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
1 changed files with 2 additions and 1 deletions

View File

@ -445,7 +445,8 @@ 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;
reloc_def_func (f, def->ofs);
if (!def->external)
reloc_def_func (f, def->ofs);
build_function (f);
finish_function (f);
return f;