mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Fix a bug in llvm-objdump’s -private-headers for 32-bit Mach-O files
printing the section header. And add some tests for this for 32-bit files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224302 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3696,7 +3696,7 @@ static void PrintLoadCommands(const MachOObjectFile *Obj, uint32_t ncmds,
|
||||
SLC.initprot, SLC.nsects, SLC.flags, Buf.size(),
|
||||
verbose);
|
||||
for (unsigned j = 0; j < SLC.nsects; j++) {
|
||||
MachO::section_64 S = Obj->getSection64(Command, j);
|
||||
MachO::section S = Obj->getSection(Command, j);
|
||||
PrintSection(S.sectname, S.segname, S.addr, S.size, S.offset, S.align,
|
||||
S.reloff, S.nreloc, S.flags, S.reserved1, S.reserved2,
|
||||
SLC.cmd, sg_segname, filetype, Buf.size(), verbose);
|
||||
|
||||
Reference in New Issue
Block a user