blob: 722730c317922f247e3af08b08e14e145de1972f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- elf.c.orig 2013-01-14 19:40:18 UTC
+++ elf.c
@@ -196,7 +196,7 @@ elfFindSymbolByAddress(struct ElfObject *obj, Elf_Addr
symSection->sh_offset + symSection->sh_size);
for (; sym < endSym; sym++) {
- if ((type == STT_NOTYPE ||
+ if ((ELF_ST_TYPE(sym->st_info) == STT_NOTYPE ||
ELF_ST_TYPE(sym->st_info) == type) &&
sym->st_value <= addr &&
(shdrs[sym->st_shndx]->sh_flags & SHF_ALLOC)) {
|