[gnu-csky] [PATCH v4 06/13] C-SKY: Linux ABI

Joseph Myers joseph@codesourcery.com
Thu Sep 13 20:49:00 GMT 2018


On Thu, 13 Sep 2018, Arnd Bergmann wrote:

> We have four definitions in the kernel for these structures: The native
> structure for the ELF implementation [2], the generic compat implementation[3]
> for everything other than MIPS, and the two MIPS variants [4][5].
> Looking at the sources, the last three seem to use identical layouts,
> aside from the elf_gregset_t, which uses 64-bit registers on n64 but
> 32-bit registers everywhere else, and the architecture specific
> ELF_NGREG constant.

A 64-bit MIPS kernel is n64, not n32, so "unsigned long" in 
binfmt_elfn32.c is actually a 64-bit type for registers (as expected).

I think this confirms that the other two n32 conditionals in 
sysdeps/unix/sysv/linux/mips/sys/procfs.h are incorrect, as they would 
result in a field having the size it does for n64, not that for n32.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list