Mercurial > hg > graal-jvmci-8
comparison agent/src/os/linux/symtab.c @ 23822:626f594dffa6
8139040: Fix initializations before ShouldNotReachHere() etc. and enable -Wuninitialized on linux.
Reviewed-by: stuefe, coleenp, roland
author | csahu |
---|---|
date | Tue, 01 Mar 2016 12:50:37 +0530 |
parents | 55fb97c4c58d |
children | f13e777eb255 |
comparison
equal
deleted
inserted
replaced
23821:2f8db587e1fc | 23822:626f594dffa6 |
---|---|
512 // library does not have symbol table | 512 // library does not have symbol table |
513 if (!symtab || !symtab->hash_table) | 513 if (!symtab || !symtab->hash_table) |
514 return (uintptr_t)NULL; | 514 return (uintptr_t)NULL; |
515 | 515 |
516 item.key = (char*) strdup(sym_name); | 516 item.key = (char*) strdup(sym_name); |
517 item.data = NULL; | |
517 hsearch_r(item, FIND, &ret, symtab->hash_table); | 518 hsearch_r(item, FIND, &ret, symtab->hash_table); |
518 if (ret) { | 519 if (ret) { |
519 struct elf_symbol * sym = (struct elf_symbol *)(ret->data); | 520 struct elf_symbol * sym = (struct elf_symbol *)(ret->data); |
520 uintptr_t rslt = (uintptr_t) ((char*)base + sym->offset); | 521 uintptr_t rslt = (uintptr_t) ((char*)base + sym->offset); |
521 if (sym_size) *sym_size = sym->size; | 522 if (sym_size) *sym_size = sym->size; |