#
3c50f062 |
| 07-Apr-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Remove LoadCommandInfo now that we always have a pointer to the command.
LoadCommandInfo was needed to keep a command and its offset in the file. Now that we always have a pointer to the command, we
Remove LoadCommandInfo now that we always have a pointer to the command.
LoadCommandInfo was needed to keep a command and its offset in the file. Now that we always have a pointer to the command, we don't need the offset.
llvm-svn: 178991
show more ...
|
#
224208b8 |
| 07-Apr-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add MachOObjectFile::LoadCommandInfo.
This avoids using MachOObject::getLoadCommandInfo.
llvm-svn: 178990
|
#
1309a448 |
| 07-Apr-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Use getLoadCommandInfo instead of MachOObj->getLoadCommandInfo.
llvm-svn: 178989
|
#
17bece31 |
| 07-Apr-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Construct MachOObject in MachOObjectFile's constructor.
llvm-svn: 178988
|
#
717c4d44 |
| 07-Apr-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Remove unused argument.
llvm-svn: 178987
|
#
5ffc079c |
| 07-Apr-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Remove MachOObjectFile::getObject.
llvm-svn: 178986
|
#
31fce896 |
| 07-Apr-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Remove two uses of getObject.
llvm-svn: 178985
|
#
b7b11f7b |
| 07-Apr-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Remove last use of InMemoryStruct in llvm-objdump.
llvm-svn: 178979
|
#
91af8e84 |
| 06-Apr-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Remove last use of InMemoryStruct from MachOObjectFile.cpp.
llvm-svn: 178948
|
#
15e2a9cd |
| 06-Apr-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't use InMemoryStruct<macho::SymtabLoadCommand>.
This also required not using the RegisterStringTable API, which is also a good thing.
llvm-svn: 178947
|
#
a65f5de4 |
| 06-Apr-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't use InMemoryStruct in getSymbol64TableEntry.
llvm-svn: 178946
|
#
2a34c2d8 |
| 06-Apr-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't use InMemoryStruct in getSymbolTableEntry.
llvm-svn: 178945
|
#
7caf2fbd |
| 06-Apr-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't use InMemoryStruct in getRelocation.
llvm-svn: 178943
|
#
4386fa99 |
| 05-Apr-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Define versions of Section that are explicitly marked as little endian.
These should really be templated like ELF, but this is a start.
llvm-svn: 178896
|
#
8622f2c1 |
| 05-Apr-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't use InMemoryStruct in getSection and getSection64.
llvm-svn: 178894
|
#
b0f76a4b |
| 05-Apr-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't fetch pointers from a InMemoryStruct.
InMemoryStruct is extremely dangerous as it returns data from an internal buffer when the endiannes doesn't match. This should fix the tests on big endian
Don't fetch pointers from a InMemoryStruct.
InMemoryStruct is extremely dangerous as it returns data from an internal buffer when the endiannes doesn't match. This should fix the tests on big endian hosts.
llvm-svn: 178875
show more ...
|
#
0ac16d53 |
| 28-Feb-2013 |
Eric Christopher <echristo@gmail.com> |
Move an assert earlier in a file and check that the result of our bitwise compare is equal to the field we're looking for.
Noticed on inspection.
llvm-svn: 176296
|
#
83c74e9f |
| 12-Feb-2013 |
Guy Benyei <guy.benyei@intel.com> |
Add static cast to unsigned char whenever a character classification function is called with a signed char argument, in order to avoid assertions in Windows Debug configuration.
llvm-svn: 175006
|
#
048d2f96 |
| 31-Jan-2013 |
Jim Grosbach <grosbach@apple.com> |
Object: Fix errant fallthrough.
llvm-svn: 174079
|
#
a9f810b6 |
| 21-Dec-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add a function to get the segment name of a section.
On MachO, sections also have segment names. When a tool looking at a .o file prints a segment name, this is what they mean. In reality, a .o has
Add a function to get the segment name of a section.
On MachO, sections also have segment names. When a tool looking at a .o file prints a segment name, this is what they mean. In reality, a .o has only one anonymous, segment.
This patch adds a MachO only function to fetch that segment name. I named it getSectionFinalSegmentName since the main use for the name seems to be inform the linker with segment this section should go to.
The patch also changes MachOObjectFile::getSectionName to return just the section name instead of computing SegmentName,SectionName.
The main difference from the previous patch is that it doesn't use InMemoryStruct. It is extremely dangerous: if the endians match it returns a pointer to the file buffer, if not, it returns a pointer to an internal buffer that is overwritten in the next API call.
We should change all of this code to use support::detail::packed_endian_specific_integral like ELF, but since these functions only handle strings, they work with big and little endian machines as is.
I have tested this by installing ubuntu 12.10 ppc on qemu, that is why it took so long :-)
llvm-svn: 170838
show more ...
|
Revision tags: llvmorg-3.2.0 |
|
#
0f00de40 |
| 19-Dec-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
Revert 170545 while I debug the ppc failures.
llvm-svn: 170547
|
#
aa7b2780 |
| 19-Dec-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add r170095 back.
I cannot reproduce it the failures locally, so I will keep an eye at the ppc bots. This patch does add the change to the "Disassembly of section" message, but that is not what was
Add r170095 back.
I cannot reproduce it the failures locally, so I will keep an eye at the ppc bots. This patch does add the change to the "Disassembly of section" message, but that is not what was failing on the bots.
Original message:
Add a funciton to get the segment name of a section.
On MachO, sections also have segment names. When a tool looking at a .o file prints a segment name, this is what they mean. In reality, a .o has only one anonymous, segment.
This patch adds a MachO only function to fetch that segment name. I named it getSectionFinalSegmentName since the main use for the name seems to be infor the linker with segment this section should go to.
The patch also changes MachOObjectFile::getSectionName to return just the section name instead of computing SegmentName,SectionName.
llvm-svn: 170545
show more ...
|
#
5edabc13 |
| 17-Dec-2012 |
Tim Northover <Tim.Northover@arm.com> |
Teach MachO which sections contain code
llvm-svn: 170349
|
#
c859c291 |
| 13-Dec-2012 |
Eric Christopher <echristo@gmail.com> |
Revert "Add a funciton to get the segment name of a section."
This reverts commit r170095 since it appears to be breaking the bots.
llvm-svn: 170105
|
#
bc8016d0 |
| 13-Dec-2012 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add a funciton to get the segment name of a section.
On MachO, sections also have segment names. When a tool looking at a .o file prints a segment name, this is what they mean. In reality, a .o has
Add a funciton to get the segment name of a section.
On MachO, sections also have segment names. When a tool looking at a .o file prints a segment name, this is what they mean. In reality, a .o has only one, anonymous, segment.
This patch adds a MachO only function to fetch that segment name. I named it getSectionFinalSegmentName since the main use for the name seems to be informing the linker with segment this section should go to.
The patch also changes MachOObjectFile::getSectionName to return just the section name instead of computing SegmentName,SectionName.
llvm-svn: 170095
show more ...
|