On Wed, 2008-08-13 at 12:47 +1000, Simon Horman wrote:It is possible. I think there are several ways to do that. 1) use #ifdef in vmlinux_32.lds.S, such as: #ifdef CONFIG_KEXEC ASSERT(kexec_control_code_size <= KEXEC_CONTROL_CODE_MAX_SIZE, "kexec control code size is too big") #endif 2) #define a macro for kexec check ld script in asm/kexec.h, such as: #define LD_CHECK_KEXEC() ASSERT(kexec_control_code_size <= KEXEC_CONTROL_CODE_MAX_SIZE, \ "kexec control code size is too big") and use that in vmlinux_32.lds.S. 3) #define kexec_control_code_size 0. So that the check can be passed always. And, code size = 0 is reasonable for no code (CONFIG_KEXEC=n). I think 3) is better. What do you think about? Best Regards, Huang Ying --
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Andi Kleen | [PATCH x86] [0/16] Various i386/x86-64 changes |
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
git: | |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Arjan van de Ven | Re: [GIT]: Networking |
