Skip to contentSkip to conversation

asm-sh64/module.h defines 32 bit ELF types

DISCUSSION Jeremy Fitzhardinge 2 participants 2 messages Jun 15, 2007 – Jun 18, 2007

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 4 lines · Jeremy Fitzhardinge

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?

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.