diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/elfs/elfloader32.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/elfs/elfloader32.c b/src/elfs/elfloader32.c index 0fdb23e5..3b9ae080 100644 --- a/src/elfs/elfloader32.c +++ b/src/elfs/elfloader32.c @@ -435,6 +435,10 @@ static int RelocateElfREL(lib_t *maplib, lib_t *local_maplib, int bindnow, int d int vis = ELF64_ST_VISIBILITY(sym->st_other); if(vis==STV_PROTECTED) { elfsym = ElfDynSymLookup32(head, symname); + if(elfsym) { + offs = elfsym->st_value + head->delta; + end = offs + elfsym->st_size; + } printf_log(LOG_DEBUG, "Symbol %s from %s is PROTECTED\n", symname, head->name); } else { if(bind==STB_GNU_UNIQUE) { |