From bcc9137a1004682ac58914c7445427cb23ceba88 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Thu, 24 Jun 2010 20:53:42 +0200 Subject: Add support for indirect functions as externals. Add link support to use indirect functions defined in external modules --- tccrun.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tccrun.c') diff --git a/tccrun.c b/tccrun.c index 9ef903d..e24d95e 100644 --- a/tccrun.c +++ b/tccrun.c @@ -306,7 +306,11 @@ static uplong rt_printline(uplong wanted_pc) sym < sym_end; sym++) { type = ELFW(ST_TYPE)(sym->st_info); - if (type == STT_FUNC) { + if (type == STT_FUNC +#ifdef STT_GNU_IFUNC + || type == STT_GNU_IFUNC +#endif + ) { if (wanted_pc >= sym->st_value && wanted_pc < sym->st_value + sym->st_size) { pstrcpy(last_func_name, sizeof(last_func_name), -- cgit v1.3.1