History log of /llvm-project/llvm/lib/Object/MachOObjectFile.cpp (Results 376 – 400 of 491)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 137faa05 24-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Formatting fixes.

llvm-svn: 180190


# ec4e350f 24-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Use a pointer as the relocation iterator.

Since the relocation iterator walks only the relocations in one section, we
can just use a pointer and avoid fetching information about the section at
every

Use a pointer as the relocation iterator.

Since the relocation iterator walks only the relocations in one section, we
can just use a pointer and avoid fetching information about the section at
every reference.

llvm-svn: 180189

show more ...


# 3cdeb17f 19-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

refactor the struct byte swapping to a helper function.

llvm-svn: 179851


# feef8c24 19-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Don't read one command past the end.

Thanks to Evgeniy Stepanov for reporting this.

It might be a good idea to add a command iterator abstraction to MachO.h, but
this fixes the bug for now.

llvm-s

Don't read one command past the end.

Thanks to Evgeniy Stepanov for reporting this.

It might be a good idea to add a command iterator abstraction to MachO.h, but
this fixes the bug for now.

llvm-svn: 179848

show more ...


# 56f976f6 18-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

At Jim Grosbach's request detemplate Object/MachO.h.

We are still able to handle mixed endian objects by swapping one struct at a
time.

llvm-svn: 179778


# 9b709259 13-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Finish templating MachObjectFile over endianness.

We are now able to handle big endian macho files in llvm-readobject. Thanks to
David Fang for providing the object files.

llvm-svn: 179440


# ecf13205 12-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Add 179294 back, but don't use bit fields so that it works on big endian hosts.

Original message:

Print more information about relocations.

With this patch llvm-readobj now prints if a relocation

Add 179294 back, but don't use bit fields so that it works on big endian hosts.

Original message:

Print more information about relocations.

With this patch llvm-readobj now prints if a relocation is pcrel, its length,
if it is extern and if it is scattered.

It also refactors the code a bit to use bit fields instead of shifts and
masks all over the place.

llvm-svn: 179345

show more ...


# e2742a03 11-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Revert my last two commits while I debug what is wrong in a big endian host.

llvm-svn: 179303


# 708a44d4 11-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Print more information about relocations.

With this patch llvm-readobj now prints if a relocation is pcrel, its length,
if it is extern and if it is scattered.

It also refactors the code a bit to u

Print more information about relocations.

With this patch llvm-readobj now prints if a relocation is pcrel, its length,
if it is extern and if it is scattered.

It also refactors the code a bit to use bit fields instead of shifts and
masks all over the place.

llvm-svn: 179294

show more ...


# e410099a 11-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Fix MachO's getRelocationAdditionalInfo.

It was returning the loaded address of the section containing the relocation,
which really doesn't seem to be the intent of this function.

llvm-svn: 179255


# 641c9bcf 10-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Template MachOObjectFile over endianness too.

llvm-svn: 179179


# eaae687d 10-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Template the MachO types over endianness.

For now they are still only used as little endian.

llvm-svn: 179147


# c2413f59 09-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Convert MachOObjectFile to a template.

For now it is templated only on being 64 or 32 bits. I will add little/big
endian next.

llvm-svn: 179097


# eb8b211e 09-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

More uses for SymbolTableEntryBase.

llvm-svn: 179076


# 5d6cec9b 09-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Add a SymbolTableEntryBase.

Use it when we don't need to know if we have a 32 or 64 bit SymbolTableEntry.

llvm-svn: 179074


# 65d601f9 08-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Add a SectionBase struct.

Use it to share code and when we don't need to know if we have a 32 or 64
bit Section.

llvm-svn: 179072


# c0406e16 08-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Template the MachO types over the word size.

llvm-svn: 179051


# 29d45017 08-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Remove is64BitLoadCommand.

llvm-svn: 179048


# d66c4146 08-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Add all 4 MachO object types. Use the stored type to implement is64Bits().

llvm-svn: 179021


# 421305af 07-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Make MachOObjectFile independent from MachOObject.

llvm-svn: 178998


# c1f28b6a 07-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Implement MachOObjectFile::getData directly.

llvm-svn: 178997


# 28814d79 07-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Implement MachOObjectFile::is64Bit directly.

llvm-svn: 178996


# 774a8cec 07-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Implement MachOObjectFile::getHeaderSize directly.

llvm-svn: 178995


# d6652591 07-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Implement MachOObjectFile::getHeader directly.

llvm-svn: 178994


# 60689987 07-Apr-2013 Rafael Espindola <rafael.espindola@gmail.com>

Implement MachOObjectFile::getHeaderSize and MachOObjectFile::getData.

These were the last missing forwarding functions. Also consistently use
the forwarding functions instead of using MachOObj dire

Implement MachOObjectFile::getHeaderSize and MachOObjectFile::getData.

These were the last missing forwarding functions. Also consistently use
the forwarding functions instead of using MachOObj directly.

llvm-svn: 178992

show more ...


1...<<11121314151617181920