Lines Matching refs:s
94 struct sym *s) in get_symbol_from_map() argument
99 s->size = 0; in get_symbol_from_map()
100 s->address = 0; in get_symbol_from_map()
101 s->offset = 0; in get_symbol_from_map()
125 s->address = strtoul(l, NULL, 16); in get_symbol_from_map()
126 if (s->address == 0) in get_symbol_from_map()
128 s->offset = get_offset_from_address(hdr, s->address); in get_symbol_from_map()
129 s->name = name; in get_symbol_from_map()
130 s->content = (void *)hdr + s->offset; in get_symbol_from_map()
158 char *name, struct sym *s) in get_symbol_from_table() argument
166 s->size = 0; in get_symbol_from_table()
167 s->address = 0; in get_symbol_from_table()
168 s->offset = 0; in get_symbol_from_table()
176 s->size = elf_sym->st_size; in get_symbol_from_table()
177 s->address = elf_sym->st_value; in get_symbol_from_table()
178 s->offset = s->address - sec->sh_addr in get_symbol_from_table()
180 s->name = name; in get_symbol_from_table()
181 s->content = (void *)hdr + s->offset; in get_symbol_from_table()
260 static void print_sym(Elf_Ehdr *hdr, struct sym *s) in print_sym() argument
262 info("sym: %s\n", s->name); in print_sym()
263 info("addr: 0x%lx\n", s->address); in print_sym()
264 info("size: %d\n", s->size); in print_sym()
265 info("offset: 0x%lx\n", (unsigned long)s->offset); in print_sym()