asm-sh64/module.h defines 32 bit ELF types
Hi,
I'm doing a little cleanup of ELF stuff around the tree, and I noticed that asm-sh64/module.h defines 32 bit versions of the ELF types rather than 64. Is this right?
Seems counterintuitive to me...
J
Quoted 4 lines · Jeremy Fitzhardinge
I'm doing a little cleanup of ELF stuff around the tree, and I noticed that
asm-sh64/module.hdefines 32 bit versions of the ELF types rather than 64. Is this right?
Yes, that's correct. sh64 supports both a 64-bit and a 32-bit ABI, but in practice, only the 32-bit is used (both for kernel and user space). While registers and loads/stores are 64-bits, the pointer size is still 32 when using the 32-bit ABI. This was the reason for things like ARCH_SLAB_MINALIGN.