On 11 November 2013 03:28, Phi Debian <phi.deb...@gmail.com> wrote: > The Align fot the PT_LOAD is ZERO, then the offset is 0x114, having an > Align set to TARGET_PAGE_BITS, (or at least 4Kb) would provide a > chance for any debugger to do page align copy (either lseek/read, or > mmap) as they trip on the core, marginal detail, but may help.
You almost certainly don't want TARGET_PAGE_BITS or TARGET_PAGE_SIZE. These refer to the *minimum* page size for the target CPU architecture, which may well be smaller than the actual page size being used by either the host or the target OS. In particular, for ARM TARGET_PAGE_SIZE is 1K, but both host and guest are probably using 4K pages. thanks -- PMM