On Mar 30, 8:57 am, Anand Android <android.an...@gmail.com> wrote: > I am able to proceed swapMap() function by fixing an endian issue in that > function. > Fix: pMap->size has to be converted to big-endian before assigning it to > count variable.
Aha, something like: 365c365 < u4 count = pMap->size; --- > u4 count; 370a371,373 > > SWAP_FIELD4(pMap->size); > count = pMap->size; > Now I have another issue in crossVerifyEverything() with > "kDexTypeClassDefItem" switch-case. It is becoming increasingly difficult to > debug this as this is tightly coupled to dex file-format. I hope I can get > some pointers into fixing this issue. Once upon a time the code ran on a big-endian PPC system, but the swap & verify code got rewritten after we moved away from PPC hardware. If it helps any, the DEX format is described in dalvik/docs/dex- format.html. --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---