History log of /llvm-project/llvm/lib/Object/MachOObjectFile.cpp (Results 426 – 450 of 491)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 07cc8487 12-Dec-2012 Rafael Espindola <rafael.espindola@gmail.com>

Remove some dead code.

llvm-svn: 169963


Revision tags: llvmorg-3.2.0-rc3
# ed0881b2 03-Dec-2012 Chandler Carruth <chandlerc@gmail.com>

Use the new script to sort the includes of every file under lib.

Sooooo many of these had incorrect or strange main module includes.
I have manually inspected all of these, and fixed the main module

Use the new script to sort the includes of every file under lib.

Sooooo many of these had incorrect or strange main module includes.
I have manually inspected all of these, and fixed the main module
include to be the nearest plausible thing I could find. If you own or
care about any of these source files, I encourage you to take some time
and check that these edits were sensible. I can't have broken anything
(I strictly added headers, and reordered them, never removed), but they
may not be the headers you'd really like to identify as containing the
API being implemented.

Many forward declarations and missing includes were added to a header
files to allow them to parse cleanly when included first. The main
module rule does in fact have its merits. =]

llvm-svn: 169131

show more ...


Revision tags: llvmorg-3.2.0-rc2
# f3e84b17 29-Nov-2012 Benjamin Kramer <benny.kra@googlemail.com>

Object: Pass the buffer name through when making a copy.

Should bring the buildbots back to life.

llvm-svn: 168935


# aae0a4bd 29-Nov-2012 Jim Grosbach <grosbach@apple.com>

Fix a memory leak in MachOObjectFile.

MachOObjectFile owns a MachOObj, but never frees it. Both MachOObjectFile
and MachOObj want to own the MemoryBuffer, though, so we have to be careful
and give t

Fix a memory leak in MachOObjectFile.

MachOObjectFile owns a MachOObj, but never frees it. Both MachOObjectFile
and MachOObj want to own the MemoryBuffer, though, so we have to be careful
and give them each one of their own.

Thanks to Greg Clayton, Eric Christopher and Michael Spencer for helping
figure out what's going wrong here.

rdar://12561773

llvm-svn: 168923

show more ...


Revision tags: llvmorg-3.2.0-rc1
# 4f223bf7 29-Oct-2012 Tim Northover <Tim.Northover@arm.com>

Add interface for querying object files for symbol values.

Currently only implemented for ELF.

Patch by Amara Emerson.

llvm-svn: 166918


# b96a320a 10-Oct-2012 Andrew Kaylor <andrew.kaylor@intel.com>

Cosmetic changes

llvm-svn: 165588


# 3f31fa05 10-Oct-2012 Andrew Kaylor <andrew.kaylor@intel.com>

This patch adds new functions to the SectionRef and ObjectFile interfaces to determine whether or not a section is meant to be read-only. These functions will be used by the MCJIT RuntimeDyld to giv

This patch adds new functions to the SectionRef and ObjectFile interfaces to determine whether or not a section is meant to be read-only. These functions will be used by the MCJIT RuntimeDyld to give hints to the memory manager during the object loading process in a future patch.

Patch by Ashok Thirumurthi.

llvm-svn: 165586

show more ...


# 9520719b 24-May-2012 Craig Topper <craig.topper@gmail.com>

Mark some static arrays as const.

llvm-svn: 157377


Revision tags: llvmorg-3.1.0, llvmorg-3.1.0-rc3, llvmorg-3.1.0-rc2
# 4a80e94b 02-May-2012 Eli Friedman <eli.friedman@gmail.com>

Fix the implementation of MachOObjectFile::isSectionZeroInit so it follows the MachO spec.

llvm-svn: 155976


Revision tags: llvmorg-3.1.0-rc1
# a737f7de 13-Apr-2012 Benjamin Kramer <benny.kra@googlemail.com>

Remove unused variable.

llvm-svn: 154661


# 2138ef6d 12-Apr-2012 Preston Gurd <preston.gurd@intel.com>

This patch improves the MCJIT runtime dynamic loader by adding new handling
of zero-initialized sections, virtual sections and common symbols
and preventing the loading of sections which are not requ

This patch improves the MCJIT runtime dynamic loader by adding new handling
of zero-initialized sections, virtual sections and common symbols
and preventing the loading of sections which are not required for
execution such as debug information.

Patch by Andy Kaylor!

llvm-svn: 154610

show more ...


# 549515e1 10-Apr-2012 Danil Malyshev <dmalyshev@accesssoftek.com>

Add a constructor for DataRefImpl and remove excess initialization.

llvm-svn: 154371


# d53422d1 09-Mar-2012 David Meyer <pdox@google.com>

[Object]
Make Binary::TypeID more granular, to distinguish between ELF 32/64 little/big

llvm-svn: 152435


# c429b80d 01-Mar-2012 David Meyer <pdox@google.com>

[Object]
Add ObjectFile::getLoadName() for retrieving the soname/installname of a shared object.

llvm-svn: 151845


# 2fc34c5f 01-Mar-2012 David Meyer <pdox@google.com>

[Object]
* Add begin_dynamic_table() / end_dynamic_table() private interface to ELFObjectFile.
* Add begin_libraries_needed() / end_libraries_needed() interface to ObjectFile, for grabbing the list o

[Object]
* Add begin_dynamic_table() / end_dynamic_table() private interface to ELFObjectFile.
* Add begin_libraries_needed() / end_libraries_needed() interface to ObjectFile, for grabbing the list of needed libraries for a shared object or dynamic executable.
* Implement this new interface completely for ELF, leave stubs for COFF and MachO.
* Add 'llvm-readobj' tool for dumping ObjectFile information.

llvm-svn: 151785

show more ...


# 7e4b976c 29-Feb-2012 David Meyer <pdox@google.com>

[Object] Add symbol attribute flags: ST_ThreadLocal, ST_Common, and ST_Undefined. Implement these completely for ELF.
Rename ST_External to ST_Unknown, and slightly change its semantics. It now only

[Object] Add symbol attribute flags: ST_ThreadLocal, ST_Common, and ST_Undefined. Implement these completely for ELF.
Rename ST_External to ST_Unknown, and slightly change its semantics. It now only indicates that the symbol's type
is unknown, not that the symbol is undefined. (For that, use ST_Undefined).

llvm-svn: 151696

show more ...


# 1df4b84d 28-Feb-2012 David Meyer <pdox@google.com>

In the ObjectFile interface, replace isInternal(), isAbsolute(), isGlobal(), and isWeak(), with a bitset of flags.

llvm-svn: 151670


# 8c4729fd 28-Feb-2012 Michael J. Spencer <bigcheesegs@gmail.com>

[Object] Add {begin,end}_dynamic_symbols stubs and implementation for ELF.
Add -D option to llvm-nm to dump dynamic symbols.

Patch by David Meyer.

llvm-svn: 151600


# cbe72fc9 29-Nov-2011 Danil Malyshev <dmalyshev@accesssoftek.com>

Fixed ObjectFile functions:
- getSymbolOffset() renamed as getSymbolFileOffset()
- getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObject

Fixed ObjectFile functions:
- getSymbolOffset() renamed as getSymbolFileOffset()
- getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObjectFile and COFFObjectFile.
- added getRelocationOffset()
- fixed MachOObjectFile::getSymbolSize()
- fixed MachOObjectFile::getSymbolSection()
- fixed MachOObjectFile::getSymbolOffset() for symbols without section data.

llvm-svn: 145408

show more ...


# 37ab257b 27-Nov-2011 Chandler Carruth <chandlerc@gmail.com>

Revert r145180 as it is causing test failures on all the bots.

Original commit message:
Fixed ObjectFile functions:
- getSymbolOffset() renamed as getSymbolFileOffset()
- getSymbolFileOffset(), getS

Revert r145180 as it is causing test failures on all the bots.

Original commit message:
Fixed ObjectFile functions:
- getSymbolOffset() renamed as getSymbolFileOffset()
- getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObjectFile and COFFObjectFile.
- added getRelocationOffset()
- fixed MachOObjectFile::getSymbolSize()
- fixed MachOObjectFile::getSymbolSection()
- fixed MachOObjectFile::getSymbolOffset() for symbols without section data.

llvm-svn: 145182

show more ...


# 2631f93f 27-Nov-2011 Danil Malyshev <dmalyshev@accesssoftek.com>

Fixed ObjectFile functions:
- getSymbolOffset() renamed as getSymbolFileOffset()
- getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObject

Fixed ObjectFile functions:
- getSymbolOffset() renamed as getSymbolFileOffset()
- getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObjectFile and COFFObjectFile.
- added getRelocationOffset()
- fixed MachOObjectFile::getSymbolSize()
- fixed MachOObjectFile::getSymbolSection()
- fixed MachOObjectFile::getSymbolOffset() for symbols without section data.

llvm-svn: 145180

show more ...


Revision tags: llvmorg-3.0.0, llvmorg-3.0.0-rc4, llvmorg-3.0.0-rc3, llvmorg-3.0.0-rc2
# debe01c6 27-Oct-2011 Owen Anderson <resistor@mac.com>

If we're searching for a symbol reference to pretty-print a scattered relocation address, and we don't find a symbol table entry, try section begin addresses as well.

llvm-svn: 143151


# 62972f5c 27-Oct-2011 Owen Anderson <resistor@mac.com>

Fix pretty printing of i386 local sect diff relocations, TLV relocations, and x86_64 TLV relocations in MachO.

llvm-svn: 143140


# bc14bd3b 26-Oct-2011 Owen Anderson <resistor@mac.com>

Add support for scattered relocations to the MachO relocatation pretty printer.

llvm-svn: 143051


# 90c49c03 26-Oct-2011 Owen Anderson <resistor@mac.com>

The order of the two symbol listings in a Macho x86_64 subtractor relocation is reversed from what seems intuitive to me.

llvm-svn: 143035


1...<<11121314151617181920