PackLinuxElf32ppc conversion; alignment in *::Section

This commit is contained in:
John Reiser
2006-07-16 15:04:16 -07:00
parent 755d990dfd
commit b34e204676
13 changed files with 456 additions and 257 deletions
+2 -2
View File
@@ -98,13 +98,13 @@ PackMachPPC32::buildMachLoader(
memcpy(cprLoader, &h, sizeof(h));
// This adds the definition to the "library", to be used later.
linker->addSection("FOLDEXEC", cprLoader, sizeof(h) + h.sz_cpr);
linker->addSection("FOLDEXEC", cprLoader, sizeof(h) + h.sz_cpr, 0);
delete [] cprLoader;
int const GAP = 128; // must match stub/l_mac_ppc.S
segcmdo.vmsize += h.sz_unc - h.sz_cpr + GAP + 64;
linker->addSection("MACOS000", proto, szproto);
linker->addSection("MACOS000", proto, szproto, 0);
addLoader("MACOS000", NULL);
addLoader("FOLDEXEC", NULL);