[parisc-linux-cvs] binfmt_elf changes for 64-bit coredumps of 32-bit binaries
Matthew Wilcox
willy@ldl.fc.hp.com
Mon, 12 Feb 2001 13:03:06 -0700
On Mon, Feb 12, 2001 at 07:06:48PM +0000, Richard Hirst wrote:
> These changes define elf_greg_t to be unsigned int for dumping 32 bit
> processes, and unsigned long for dumping 64 bit processes, which is
> fine. However, pt_regs is the same in both cases, with pt->gr[] being
> an array of unsigned long. So, the above memcpy needs to be 32
> seperate copies to translate 64 bit pt_regs entries in to 32 bit core
> file entries.
>
> Or am I confused?
No, you're right. I hadn't tried actually coredumping yet. And now i've
updated my tree to today's, init won't boot with these changes. Wonder
what changed... I didn't realise my tree was sticky.