Skip to content

Commit

Permalink
[BOX32][ELFLOADER] Fixed PROTECTED symbol that were not loaded correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Sep 21, 2024
1 parent 4cda6db commit c2be026
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/elfs/elfloader32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c2be026

Please sign in to comment.