Message ID | f964e5bb-6b84-40d6-d247-7655ef09d47b@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | x86: memcpy() / memset() (non-)ERMS flavors plus fallout | expand |
On 27/05/2021 13:34, Jan Beulich wrote: > The source file requests page alignment - avoid a padding hole by > placing it right after .text.entry. On average this yields a .text size > reduction of 2k. > > Requested-by: Andrew Cooper <andrew.cooper3@citrix.com> > Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> I'll rebase my kexec metadata patch over this. ~Andrew
--- a/xen/arch/x86/xen.lds.S +++ b/xen/arch/x86/xen.lds.S @@ -83,10 +83,11 @@ SECTIONS . = ALIGN(PAGE_SIZE); _etextentry = .; + *(.text.kexec) /* Page aligned in the object file. */ + *(.text.cold) *(.text.unlikely) *(.fixup) - *(.text.kexec) *(.gnu.warning) _etext = .; /* End of text section */ } PHDR(text) = 0x9090
The source file requests page alignment - avoid a padding hole by placing it right after .text.entry. On average this yields a .text size reduction of 2k. Requested-by: Andrew Cooper <andrew.cooper3@citrix.com> Signed-off-by: Jan Beulich <jbeulich@suse.com> --- v2: New.