|To:||Ralf Baechle <email@example.com>|
|Subject:||Re: Can you add a signature to the kernel ELF image?|
|From:||Adam Nielsen <firstname.lastname@example.org>|
|Date:||Wed, 25 Nov 2009 21:34:50 +1000|
|User-agent:||Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:126.96.36.199) Gecko/20090809 Thunderbird/188.8.131.52 Mnenhy/0.7.5.0|
Take a look at arch/mips/kernel/head.S. This file will be the first on the final linker call's command line, that is head.S's .text section will end at the lowest address.
Ah excellent, that combined with the linker script (to twiddle load addresses) is just what I'm after.
#ifdef CONFIG_NCD_HMX b 1f nop nop .word 0x20 .asciz "XncdHMX" .word 0, 0, 0 #endif
Perfect, thanks for the example, that makes it much easier.
The wiki page says something about a CRC but just poking a 0x20 into a constant address is not exactly a CRC calculation. Not sure how this really is meant.
As far as I'm aware 0x20 means "ignore the CRC", I think the CRC itself is covered by one of the zero words.
|<Prev in Thread]||Current Thread||[Next in Thread>|
|Previous by Date:||how to support more than 512MB RAM for MIPS32 ?, figo zhang|
|Next by Date:||Re: Syncing CPU caches from userland on MIPS, Florian Lohoff|
|Previous by Thread:||Re: Can you add a signature to the kernel ELF image?, Ralf Baechle|
|Next by Thread:||how to support more than 512MB RAM for MIPS32 ?, figo zhang|
|Indexes:||[Date] [Thread] [Top] [All Lists]|