Lines 165-171
static bool sb_check_exec(const char *filename, char *const argv[])
Link Here
|
165 |
\ |
165 |
\ |
166 |
while (sym < symend) { \ |
166 |
while (sym < symend) { \ |
167 |
char *symname = (void *)(elf + stroff + sym->st_name); \ |
167 |
char *symname = (void *)(elf + stroff + sym->st_name); \ |
168 |
if (ELF##n##_ST_VISIBILITY(sym->st_other) == STV_DEFAULT && \ |
168 |
if ((ELF##n##_ST_TYPE(sym->st_info) == STT_OBJECT || \ |
|
|
169 |
ELF##n##_ST_TYPE(sym->st_info) == STT_FUNC) && \ |
170 |
ELF##n##_ST_VISIBILITY(sym->st_other) == STV_DEFAULT && \ |
169 |
sym->st_shndx != SHN_UNDEF && sym->st_shndx < SHN_LORESERVE && \ |
171 |
sym->st_shndx != SHN_UNDEF && sym->st_shndx < SHN_LORESERVE && \ |
170 |
sym->st_name && \ |
172 |
sym->st_name && \ |
171 |
/* Minor optimization to avoid strcmp. */ \ |
173 |
/* Minor optimization to avoid strcmp. */ \ |
172 |
- |
|
|