[PATCH] x86: merge .text.* into .text while linking

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] x86: merge .text.* into .text while linking

Jan Beulich-2
For xen.efi, this eliminates a pointless gap between .text and
.text.unlikely of almost 2Mb size.

Signed-off-by: Jan Beulich <[hidden email]>

--- a/xen/arch/x86/xen.lds.S
+++ b/xen/arch/x86/xen.lds.S
@@ -47,6 +47,8 @@ SECTIONS
   .text : {
         _stext = .;            /* Text and read-only data */
        *(.text)
+       *(.text.cold)
+       *(.text.unlikely)
        *(.fixup)
        *(.gnu.warning)
        _etext = .;             /* End of text section */




_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel

x86-text-unlikely.patch (578 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] x86: merge .text.* into .text while linking

Keir Fraser-5
On 07/05/2012 15:25, "Jan Beulich" <[hidden email]> wrote:

> For xen.efi, this eliminates a pointless gap between .text and
> .text.unlikely of almost 2Mb size.
>
> Signed-off-by: Jan Beulich <[hidden email]>

Acked-by: Keir Fraser <[hidden email]>

> --- a/xen/arch/x86/xen.lds.S
> +++ b/xen/arch/x86/xen.lds.S
> @@ -47,6 +47,8 @@ SECTIONS
>    .text : {
>          _stext = .;            /* Text and read-only data */
>         *(.text)
> +       *(.text.cold)
> +       *(.text.unlikely)
>         *(.fixup)
>         *(.gnu.warning)
>         _etext = .;             /* End of text section */
>
>
>
> _______________________________________________
> Xen-devel mailing list
> [hidden email]
> http://lists.xen.org/xen-devel



_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xen.org/xen-devel