dbghelp: Elf for wine and spec definitions.

Enhancement over previous fix (we don't need to insert NOTYPE symbols
in our public symbol table, so drop them as early as possible).
This commit is contained in:
Eric Pouech 2006-06-23 21:45:52 +02:00 committed by Alexandre Julliard
parent 2ad04cae39
commit f939b0853d
1 changed files with 17 additions and 17 deletions

View File

@ -291,11 +291,14 @@ static void elf_hash_symtab(struct module* module, struct pool* pool,
symname = strp + symp->st_name;
if (ELF32_ST_TYPE(symp->st_info) == STT_FILE)
/* handle some specific symtab (that we'll throw away when done) */
switch (ELF32_ST_TYPE(symp->st_info))
{
case STT_FILE:
compiland = symname ? symt_new_compiland(module, source_new(module, NULL, symname)) : NULL;
continue;
}
case STT_NOTYPE:
/* we are only interested in wine markers inserted by winebuild */
for (j = 0; thunks[j].symname; j++)
{
if (!strcmp(symname, thunks[j].symname))
@ -305,7 +308,8 @@ static void elf_hash_symtab(struct module* module, struct pool* pool,
break;
}
}
if (thunks[j].symname) continue;
continue;
}
/* FIXME: we don't need to handle them (GCC internals)
* Moreover, they screw up our symbol lookup :-/
@ -550,9 +554,6 @@ static int elf_new_wine_thunks(struct module* module, struct hash_table* ht_symt
ELF32_ST_BIND(ste->symp->st_info) == STB_LOCAL,
addr, ste->symp->st_size, NULL);
break;
case STT_NOTYPE:
/* at least winebuild specific symbols */
break;
default:
FIXME("Shouldn't happen\n");
break;
@ -612,7 +613,6 @@ static int elf_new_public_symbols(struct module* module, struct hash_table* symt
hash_table_iter_init(symtab, &hti, NULL);
while ((ste = hash_table_iter_up(&hti)))
{
if (ELF32_ST_TYPE(ste->symp->st_info) != STT_NOTYPE)
symt_new_public(module, ste->compiland, ste->ht_elt.name,
module->elf_info->elf_addr + ste->symp->st_value,
ste->symp->st_size, TRUE /* FIXME */,