[CRIU] Re: [PATCH 03/13] make: Sanitize pie.lds.S

Pavel Emelyanov xemul at parallels.com
Wed Apr 18 04:11:31 EDT 2012


On 04/18/2012 01:55 AM, Cyrill Gorcunov wrote:
> No need to generate several sections in blobs,
> one is enough. We need a simple and strictly
> predefined structure.

Why?

> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  pie.lds.S |   28 +++++++++++++++++++---------
>  1 files changed, 19 insertions(+), 9 deletions(-)
> 
> diff --git a/pie.lds.S b/pie.lds.S
> index 74d9d9e..0d513e8 100644
> --- a/pie.lds.S
> +++ b/pie.lds.S
> @@ -3,16 +3,26 @@ OUTPUT_ARCH(i386:x86-64)
>  
>  SECTIONS
>  {
> -	. = 0;
> -	.text : {
> +	.text 0x0 : {
>  		*(.head.text)
>  		*(.text)
> -		. = ALIGN(8);
> -	}
> -	.data : {
> -		*(.data)
> -		*(.rodata)
> -		*(.bss)
> -		. = ALIGN(8);
> +		. = ALIGN(32);
> +		*(.data*)
> +		. = ALIGN(32);
> +		*(.rodata*)
> +		. = ALIGN(32);
> +		*(.bss*)
> +		. = ALIGN(32);
> +		*(.export)
> +		. = ALIGN(32);
> +	} =0x00000000
> +
> +	/DISCARD/ : {
> +		*(.debug*)
> +		*(.comment*)
> +		*(.note*)
> +		*(.group*)
> +		*(.eh_frame*)
> +		*(*)
>  	}
>  }



More information about the CRIU mailing list