On 11/10/13 10:10, Phi Debian wrote: > Hi All, > > I implemented guest-dump-memory for arm32, and bumped in something > strange, the PT_LOADs generated from dump.c are not target page > aligned. There are some advantage to get PT_LOAD aligned. > > This mail is to ask advise about patch I could submit later if wanted. > > Would it be desirable to get the PT_LOAD aligned on target page size > always, for all arch ?
Can you please explain the problem in more detail? Preferably illustrated by "readelf" output. Is it about the placement of the PT_LOAD entries in the core file (eg. their distance of the beginning of the file, or some such), or about the contents of the PT_LOAD entries? (Ie. the target-phys ranges they describe and where those are located in the core file.) Thanks Laszlo > If so I could fix dump.c, but may be people using dump-guest-memory on > existing current implementation may object, dunno if some of there > tools (debuggers) are dependent of the non aligned current setup (gdb > would nt complain) > > If not wanted for existing arch (s390, ppc, i386), may be I could do > it for arm only. > > Or ultimatly may be this is not wanted at all, in this case I keep my > dumper for myself :) > > Cheers, > Phi >