Add support for indirect functions as externals.

Add link support to use indirect functions defined in external modules
This commit is contained in:
Thomas Preud'homme
2010-06-24 20:53:42 +02:00
parent 82c5edb31c
commit bcc9137a10
3 changed files with 14 additions and 7 deletions

View File

@ -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),