about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/elfs/elfloader.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c
index f9a89cd6..a4ea5d0c 100644
--- a/src/elfs/elfloader.c
+++ b/src/elfs/elfloader.c
@@ -585,6 +585,10 @@ static int RelocateElfRELA(lib_t *maplib, lib_t *local_maplib, int bindnow, int
         int vis = ELF64_ST_VISIBILITY(sym->st_other);
         if(vis==STV_PROTECTED) {
             elfsym = ElfDynSymLookup64(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) {