sa_htobe32
tmp = sa_htobe32(0);
tmp = sa_htobe32(kgzlen);
tmp = sa_htobe32(0);
tmp = sa_htobe32(kgzlen);
swapped[i] = sa_htobe32(swapped[i]);
swapped[i] = sa_htobe32(swapped[i]);
fileHdr.magic = sa_htobe32(PEF_MAGIC);
fileHdr.fileTypeID = sa_htobe32(PEF_FILE);
fileHdr.archID = sa_htobe32(PEF_PPC);
fileHdr.versionNumber = sa_htobe32(1);
textHdr.sectionName = sa_htobe32(-1);
textHdr.sectionAddress = sa_htobe32(0);
textHdr.execSize = sa_htobe32(elf_image_len);
textHdr.initSize = sa_htobe32(elf_image_len);
textHdr.rawSize = sa_htobe32(elf_image_len);
textHdr.fileOffset = sa_htobe32(textOffset);
dataHdr.sectionName = sa_htobe32(-1);
dataHdr.sectionAddress = sa_htobe32(0);
dataHdr.execSize = sa_htobe32(sizeof (entry_vector) + kern_img_len);
dataHdr.initSize = sa_htobe32(sizeof (entry_vector) + kern_img_len);
dataHdr.rawSize = sa_htobe32(sizeof (entry_vector) + kern_img_len);
dataHdr.fileOffset = sa_htobe32(dataOffset);
ldrHdr.sectionName = sa_htobe32(-1);
ldrHdr.sectionAddress = sa_htobe32(0);
ldrHdr.execSize = sa_htobe32(sizeof (lh));
ldrHdr.initSize = sa_htobe32(sizeof (lh));
ldrHdr.rawSize = sa_htobe32(sizeof (lh));
ldrHdr.fileOffset = sa_htobe32(ldrOffset);
lh.entryPointSection = sa_htobe32(1); /* Data */
lh.entryPointOffset = sa_htobe32(0);
lh.initPointSection = sa_htobe32(-1);
lh.initPointOffset = sa_htobe32(0);
lh.termPointSection = sa_htobe32(-1);
lh.termPointOffset = sa_htobe32(0);
entry_vector[0] = sa_htobe32(BEBOX_ENTRY); /* Magic */
tmp = sa_htobe32(0);
tmp = sa_htobe32(kgzlen);
(int32_t)sa_htobe32(tmp);
(int32_t)sa_htobe32(roundup(tmp, BEBOX_FILE_BLOCK_SIZE));
(int32_t)sa_htobe32(tp.tv_sec);
un.words[BE64_HI] = sa_htobe32(val >> 32);
un.words[BE64_LO] = sa_htobe32(val & 0xffffffffU);
uint32_t sa_htobe32(uint32_t);
f = (bo == ELFDATA2LSB) ? sa_htole32(f) : sa_htobe32(f)