[CRIU] [PATCH 04/20] multiarch: added the PIE linker script template.

Pavel Emelyanov xemul at parallels.com
Wed Dec 12 10:47:21 EST 2012


On 12/12/2012 05:34 PM, alekskartashov at parallels.com wrote:
> From: Alexander Kartashov <alekskartashov at parallels.com>
> 
> Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
> ---
>  pie/pie.lds.S.in |   23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)
>  create mode 100644 pie/pie.lds.S.in
> 
> diff --git a/pie/pie.lds.S.in b/pie/pie.lds.S.in
> new file mode 100644
> index 0000000..7f8fcb3
> --- /dev/null
> +++ b/pie/pie.lds.S.in
> @@ -0,0 +1,23 @@
> +SECTIONS
> +{
> +	.crblob 0x0 : {
> +		*(.head.text)
> +		*(.text)
> +		. = ALIGN(32);
> +		*(.data*)
> +		. = ALIGN(32);
> +		*(.rodata*)
> +		. = ALIGN(32);
> +		*(.bss*)
> +		. = ALIGN(32);
> +	} =0x00000000
> +
> +	/DISCARD/ : {
> +		*(.debug*)
> +		*(.comment*)
> +		*(.note*)
> +		*(.group*)
> +		*(.eh_frame*)
> +		*(*)
> +	}
> +}
> 

Shouldn't it be instead renamed from existing pie.lds.S rather than being added
and then removed?



More information about the CRIU mailing list