Commit 662bfd5f authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

make: Sanitize pie.lds.S

Build one "section for all" only. This reflects
what we really do runtime with generated parasite
and restorer blobs.

Signle section is named as ".crblob".
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e2f745b9
...@@ -3,16 +3,26 @@ OUTPUT_ARCH(i386:x86-64) ...@@ -3,16 +3,26 @@ OUTPUT_ARCH(i386:x86-64)
SECTIONS SECTIONS
{ {
. = 0; .crblob 0x0 : {
.text : {
*(.head.text) *(.head.text)
*(.text) *(.text)
. = ALIGN(8); . = ALIGN(32);
} *(.data*)
.data : { . = ALIGN(32);
*(.data) *(.rodata*)
*(.rodata) . = ALIGN(32);
*(.bss) *(.bss*)
. = ALIGN(8); . = ALIGN(32);
*(.export)
. = ALIGN(32);
} =0x00000000
/DISCARD/ : {
*(.debug*)
*(.comment*)
*(.note*)
*(.group*)
*(.eh_frame*)
*(*)
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment