mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 22:23:10 +00:00
Add mach-o LC_RPATH support to llvm-objdump
Summary: Add rpath load command support in Mach-O object and update llvm-objdump to use it. Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6512 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223343 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -360,6 +360,8 @@ public:
|
||||
getDylinkerCommand(const LoadCommandInfo &L) const;
|
||||
MachO::uuid_command
|
||||
getUuidCommand(const LoadCommandInfo &L) const;
|
||||
MachO::rpath_command
|
||||
getRpathCommand(const LoadCommandInfo &L) const;
|
||||
MachO::source_version_command
|
||||
getSourceVersionCommand(const LoadCommandInfo &L) const;
|
||||
MachO::entry_point_command
|
||||
|
||||
@@ -1109,6 +1109,12 @@ namespace llvm {
|
||||
sys::swapByteOrder(u.cmdsize);
|
||||
}
|
||||
|
||||
inline void swapStruct(rpath_command &r) {
|
||||
sys::swapByteOrder(r.cmd);
|
||||
sys::swapByteOrder(r.cmdsize);
|
||||
sys::swapByteOrder(r.path);
|
||||
}
|
||||
|
||||
inline void swapStruct(source_version_command &s) {
|
||||
sys::swapByteOrder(s.cmd);
|
||||
sys::swapByteOrder(s.cmdsize);
|
||||
|
||||
Reference in New Issue
Block a user