Displaying 6 results from an estimated 6 matches for "object_error".
2011 Oct 13
0
[LLVMdev] llvm-objdump related patch
...ection(sym->st_shndx) != sec) {
This version of getSection will not handle extended section indices
properly. Use the version that takes a const Elf_Sym*. This also fails
when there is no section table, which is not required for executables
or shared libraries.
+ Result = false;
+ return object_error::success;
+ }
+
+ uint64_t Address;
+ getSymbolOffset(Symb, Address);
+
+ if (sym->getType() == ELF::STT_FUNC
Again, this will only work for functions. Symbols without this type
can also be in a section.
+ && Address >= sec->sh_addr
+ && Address < (sec->sh...
2011 Oct 12
2
[LLVMdev] llvm-objdump related patch
Michael,
I have rework the patch according to your suggestion. And I have
read binutil/objdump source code and found that it has a logic that if
there's no symtab, it will use dynsym, which is missing in llvm-objdump.
Songmao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-the-address-calculation-for-llvm-objdump.patch
Type: text/x-patch
2013 Jan 18
1
[LLVMdev] ELFObjectFile::getSymbolFileOffset
...(revision 172846)
+++ include/llvm/Object/ELF.h (working copy)
@@ -1000,7 +1000,7 @@
switch (symb->getType()) {
case ELF::STT_SECTION:
- Result = Section ? Section->sh_addr : UnknownAddressOrSize;
+ Result = Section ? Section->sh_offset : UnknownAddressOrSize;
return object_error::success;
case ELF::STT_FUNC:
case ELF::STT_OBJECT:
-Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130118/506f6f0a/attachment.html>
-------------- next part --------------
A non-text attachme...
2017 Nov 13
4
How to objcopy via LLVM toolchain for armv7e-m ELF32LE?
Hi LLVM developers,
As PR35281 mentioned:
$ llvm-objcopy -O binary llvm-cortex-m7.elf llvm-cortex-m7.bin
llvm-objcopy: 'llvm-cortex-m7.elf': The file was not recognized as a
valid object file.
if (ELFObjectFile<ELF64LE> *o =
dyn_cast<ELFObjectFile<ELF64LE>>(&Binary))
https://github.com/llvm-mirror/llvm/blob/master/tools/llvm-objcopy/llvm-objcopy.cpp#L200
2015 Jun 01
2
[LLVMdev] Error handling in LLVMObject library
On 29 May 2015 at 19:06, 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 is a
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