Ticket #158 (new defect)
onExit animations
| Reported by: | mringwal | Owned by: | saurik |
|---|---|---|---|
| Priority: | blocker | Component: | Bootstrap |
| Keywords: | jailbreak, QuickPwn, Cydia, install, BossPrefs, SBSettings | Cc: | matthias@… |
Description
The code in ldid.cpp first uses the Framework class to detect the endianess of the file (I wonder if it should test the file or just detect the host endianess - there should be a standard for the file format). Then, Framework.Swap() is used whenever integers are read or stored in the mach-o file. However, there are also global Swap functions that always swap regardless of the host or the file endianess. On x86, the Framework.Swap() doesn't do anything for iPhone apps and Swap() changes the endianess. Although I'm quite puzzled about the use of different endianess styles in the same file, I've added Framework.SwapToBig?() methods that return the opposite endianess as Framework.Swap(). With this, I get the same binaries on the PowerBook?.
