search for: symbol_end

Displaying 7 results from an estimated 7 matches for "symbol_end".

2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 04/13] Useful debugging
.../* return to offset to the next symbol */ + return off; +} + +static unsigned long get_symbol_pos(struct lguest_vcpu *vcpu, + struct guest_ksym_stuff *kstuff, + unsigned long addr, + unsigned long *symbolsize, + unsigned long *offset) +{ + unsigned long symbol_start = 0, symbol_end = 0; + unsigned long i, low, high, mid; + + /* do a binary search on the sorted kallsyms_addresses array */ + low = 0; + high = kstuff->num_syms; + + while (high - low > 1) { + mid = (low + high) / 2; + if (kstuff->addresses[mid] <= addr) + low = mid; + else + high = mid; + } + +...
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 04/13] Useful debugging
.../* return to offset to the next symbol */ + return off; +} + +static unsigned long get_symbol_pos(struct lguest_vcpu *vcpu, + struct guest_ksym_stuff *kstuff, + unsigned long addr, + unsigned long *symbolsize, + unsigned long *offset) +{ + unsigned long symbol_start = 0, symbol_end = 0; + unsigned long i, low, high, mid; + + /* do a binary search on the sorted kallsyms_addresses array */ + low = 0; + high = kstuff->num_syms; + + while (high - low > 1) { + mid = (low + high) / 2; + if (kstuff->addresses[mid] <= addr) + low = mid; + else + high = mid; + } + +...
2009 Jul 13
0
[PATCH, v2] x86-64: reduce symbol table size
..._address(low)) --low; /* Grab name */ @@ -121,8 +127,8 @@ const char *symbols_lookup(unsigned long /* Search for next non-aliased symbol */ for (i = low + 1; i < symbols_num_syms; i++) { - if (symbols_addresses[i] > symbols_addresses[low]) { - symbol_end = symbols_addresses[i]; + if (symbols_address(i) > symbols_address(low)) { + symbol_end = symbols_address(i); break; } } @@ -132,8 +138,8 @@ const char *symbols_lookup(unsigned long symbol_end = is_kernel_inittext(addr) ? (unsign...
2007 Apr 18
1
[PATCH] lguest32 kallsyms backtrace of guest.
...;; + + /* return to offset to the next symbol */ + return off; +} + +static unsigned long get_symbol_pos(struct lguest *lg, + struct guest_ksym_stuff *kstuff, + unsigned long addr, + unsigned long *symbolsize, + unsigned long *offset) +{ + unsigned long symbol_start = 0, symbol_end = 0; + unsigned long i, low, high, mid; + + /* do a binary search on the sorted kallsyms_addresses array */ + low = 0; + high = kstuff->num_syms; + + while (high - low > 1) { + mid = (low + high) / 2; + if (kstuff->addresses[mid] <= addr) + low = mid; + else + high = mid; + } + +...
2007 Apr 18
1
[PATCH] lguest32 kallsyms backtrace of guest.
...;; + + /* return to offset to the next symbol */ + return off; +} + +static unsigned long get_symbol_pos(struct lguest *lg, + struct guest_ksym_stuff *kstuff, + unsigned long addr, + unsigned long *symbolsize, + unsigned long *offset) +{ + unsigned long symbol_start = 0, symbol_end = 0; + unsigned long i, low, high, mid; + + /* do a binary search on the sorted kallsyms_addresses array */ + low = 0; + high = kstuff->num_syms; + + while (high - low > 1) { + mid = (low + high) / 2; + if (kstuff->addresses[mid] <= addr) + low = mid; + else + high = mid; + } + +...
2015 Jun 02
2
[LLVMdev] Error handling in LLVMObject library
...more efficient to validate them as they are read. But I think (typing on a phone) that relocations are another case where the best is to have a more specific api: the only way the relocation is invalid from the perspective of the api we provide is if the symbol index is invalid. We can just return symbol_end for that and avoid the error_code and the ErrorOr. Cheers, Rafael On Jun 1, 2015 6:19 PM, "Lang Hames" <lhames at gmail.com> wrote: > Out of interest, what parts of an object file commonly don't get mapped in > by the linker? I'd have assumed linkers would usually en...
2015 May 30
1
[LLVMdev] Error handling in LLVMObject library
On Fri, May 29, 2015 at 4:06 PM, Alexey Samsonov <vonosmas at gmail.com> wrote: > Hi everyone, > > Having proper error handling in LLVM's Object parsing library is a nice > thing by itself, but it would additionally allow us to find bugs by fuzzing > (see r238451 that adds llvm-dwarfdump-fuzzer tool), for which the clean > input validation is essential. > > This