Skip to content

Commit

Permalink
overlay_gl: use Elf_Sym instead of Elf64_Sym in FreeBSD specific-code.
Browse files Browse the repository at this point in the history
This ensures we use the Elf_Sym type instead of Elf64_Sym.

This makes the FreeBSD-specific code work on both 32-bit
and 64-bit targets.

Fixes #2122
  • Loading branch information
mkrautz committed Jul 3, 2016
1 parent 41613d6 commit 477f886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion overlay_gl/init_unix.c
Expand Up @@ -219,7 +219,7 @@ static int find_odlsym() {
strtab = (const char *)((uintptr_t)lm->l_addr + (uintptr_t)dyn->d_un.d_ptr);
break;
case DT_SYMTAB:
symtab = (Elf64_Sym *)((uintptr_t)lm->l_addr + (uintptr_t)dyn->d_un.d_ptr);
symtab = (Elf_Sym *)((uintptr_t)lm->l_addr + (uintptr_t)dyn->d_un.d_ptr);
break;
}
dyn++;
Expand Down

0 comments on commit 477f886

Please sign in to comment.