Displaying 2 results from an estimated 2 matches for "getsymbolalignment".
2015 Jun 01
2
[LLVMdev] Error handling in LLVMObject library
...tions can
fail.
For the above function, the ErrorOr style is the best we can do since
to get the address of a symbol on a ELF .o file we have to find the
section and that index can be wrong (not that we actually report that
at the moment :-( ).
But for alignment we can use just use "uint32_t
getSymbolAlignment(DataRefImpl Symb) const" (see r238700).
Going further, it might even be better to replace getSymbolAddress
with a getSymbolValue that cannot fail and have the caller handle the
fact that the value is sometimes a virtual address and sometimes
section relative (it is likely more efficient too)....
2015 May 29
9
[LLVMdev] Error handling in LLVMObject library
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 is a generic discussion of state of affairs. I want to do some
progress in fuzzing before we finish it (especially if we