aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELFObjectFile.cpp
AgeCommit message (Collapse)AuthorFilesLines
2011-07-15ObjectFile: Add a method to check whether a section contains a symbol.Benjamin Kramer1-0/+12
- No ELF or COFF implementation yet, I don't have a way to test that. Should be straightforward to add though. llvm-svn: 135288
2011-06-25Object: Add proper error handling.Michael J. Spencer1-62/+100
llvm-svn: 133872
2011-06-25Make Binary the parent of ObjectFile and update children to new interface.Michael J. Spencer1-20/+22
llvm-svn: 133870
2011-06-13Revert the last two commits in the series. r132911, r132912.Michael J. Spencer1-22/+20
llvm-svn: 132913
2011-06-13Make Binary the parent of ObjectFile and update children to new interface.Michael J. Spencer1-20/+22
llvm-svn: 132911
2011-04-03Assorted bugfixes in object file handling:Eric Christopher1-0/+2
- Adds support for sniffing PE/COFF files on win32 (.exe and .dll) which are COFF files that have an MS-DOS compatibility stub on the front of them. - Fixes a bug in the COFFObjectFile's support for the Microsoft COFF extension for long symbol names, wherein it was attempting to parse the leading '/' in an extended symbol name reference as part of the integer offset. - Fixes bugs in COFFObjectFile and ELFObjectFile wherein section and symbol iterators were being returned with uninitialized bytes; the type DataRefImpl is a union between 2 32-bit words (d.a and d.b) and a single intptr_t word (p). Only p was being initialized, so in 32-bit builds the result would be iterators with random upper 32-bit words in their DataRefImpls. This caused random failures when seeking around in object files. Patch by Graydon Hoare! llvm-svn: 128799
2011-01-21Object: Fix type punned pointer issues by making DataRefImpl a union and ↵Michael J. Spencer1-60/+40
using intptr_t. llvm-svn: 123962
2011-01-20Object: Add ELF support.Michael J. Spencer1-0/+706
llvm-svn: 123896