36 #include "loader/symbols.h"
41 #ifndef SYMTAB_CONF_BINARY_SEARCH
42 #define SYMTAB_CONF_BINARY_SEARCH 1
46 #if SYMTAB_CONF_BINARY_SEARCH
48 symtab_lookup(
const char *name)
50 int start, middle, end;
54 end = symbols_nelts - 1;
58 middle = (start + end) / 2;
59 r = strcmp(name, symbols[middle].name);
65 return symbols[middle].value;
72 symtab_lookup(
const char *name)
74 const struct symbols *s;
75 for(s = symbols; s->name !=
NULL; ++s) {
76 if(strcmp(name, s->name) == 0) {