Lines Matching refs:sec
19 static inline char *offstr(struct section *sec, unsigned long offset)
21 bool is_text = (sec->sh.sh_flags & SHF_EXECINSTR);
27 sym = find_func_containing(sec, offset);
29 sym = find_symbol_containing(sec, offset);
32 str = malloc(strlen(sym->name) + strlen(sec->name) + 40);
35 sprintf(str+len, " (%s+0x%lx)", sec->name, offset);
37 str = malloc(strlen(sec->name) + 20);
38 sprintf(str, "%s+0x%lx", sec->name, offset);
49 #define WARN_FUNC(format, sec, offset, ...) \
51 char *_str = offstr(sec, offset); \
60 WARN_FUNC(format, _insn->sec, _insn->offset, \
70 char *_str = offstr(_insn->sec, _insn->offset); \