work on stub for powerpc-darwin.dylib-entry.S

This commit is contained in:
John Reiser
2009-05-29 22:08:08 -07:00
parent b89c0b35d1
commit a187cb6c9c
3 changed files with 105 additions and 20 deletions
+1 -1
View File
@@ -473,7 +473,7 @@ void PackMachBase<T>::pack4dylib( // append PackHeader
segcmdtmp.filesize = fo->getBytesWritten();
segcmdtmp.maxprot |= Mach_segment_command::VM_PROT_WRITE;
segcmdtmp.initprot |= Mach_segment_command::VM_PROT_WRITE;
o_end_txt = segcmdtmp.filesize + segcmdtmp.fileoff;
opos = o_end_txt = segcmdtmp.filesize + segcmdtmp.fileoff;
}
else {
opos += ~PAGE_MASK & (0u - opos); // advance to PAGE_SIZE boundary