On 17/04/13 13:51, Daniel Kiper wrote: > On Tue, Apr 16, 2013 at 06:13:07PM +0100, David Vrabel wrote: >> >> } >> >> + code_page = __map_domain_page(image->control_code_page); >> + memcpy(code_page, kexec_reloc, PAGE_SIZE); > > memcpy(code_page, kexec_reloc, kexec_reloc_size); kexec_reloc_size is absolute symbol and doing this give linker errors. FWIW, Linux also uses a #define'd value for its similar memcpy. I have added a link time check that kexec_reloc_size <= PAGE_SIZE. David