Commit 0be8beb6 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

compel: Add lds scripts for PIE code

In CRIU these are auto-generated, we want to have them in
compel and it looks like it's better to have them fixed
rather than generated.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 6d5a8930
OUTPUT_ARCH(aarch64)
SECTIONS
{
.crblob 0x0 : {
*(.head.text)
*(.text*)
. = ALIGN(32);
*(.data*)
. = ALIGN(32);
*(.rodata*)
. = ALIGN(32);
*(.bss*)
. = ALIGN(32);
*(.got*)
. = ALIGN(32);
*(.toc*)
. = ALIGN(32);
} =0x00000000,
/DISCARD/ : {
*(.debug*)
*(.comment*)
*(.note*)
*(.group*)
*(.eh_frame*)
*(*)
}
/* Parasite args should have 4 bytes align, as we have futex inside. */
. = ALIGN(4);
__export_parasite_args = .;
}
OUTPUT_ARCH(arm)
SECTIONS
{
.crblob 0x0 : {
*(.head.text)
*(.text*)
. = ALIGN(32);
*(.data*)
. = ALIGN(32);
*(.rodata*)
. = ALIGN(32);
*(.bss*)
. = ALIGN(32);
*(.got*)
. = ALIGN(32);
*(.toc*)
. = ALIGN(32);
} =0x00000000,
/DISCARD/ : {
*(.debug*)
*(.comment*)
*(.note*)
*(.group*)
*(.eh_frame*)
*(*)
}
/* Parasite args should have 4 bytes align, as we have futex inside. */
. = ALIGN(4);
__export_parasite_args = .;
}
OUTPUT_ARCH(powerpc:common64)
SECTIONS
{
.text : {
*(.head.text)
*(.text*)
*(.compel.exit)
*(.compel.init)
}
.data : {
*(.data*)
*(.bss*)
}
.rodata : {
*(.rodata*)
*(.got*)
}
.toc : ALIGN(8) {
*(.toc*)
}
/DISCARD/ : {
*(.debug*)
*(.comment*)
*(.note*)
*(.group*)
*(.eh_frame*)
}
/* Parasite args should have 4 bytes align, as we have futex inside. */
. = ALIGN(4);
__export_parasite_args = .;
}
OUTPUT_ARCH(i386)
TARGET(elf32-i386)
SECTIONS
{
.text : {
*(.head.text)
*(.text*)
*(.compel.exit)
*(.compel.init)
}
.data : {
*(.data*)
*(.bss*)
}
.rodata : {
*(.rodata*)
*(.got*)
}
.toc : ALIGN(8) {
*(.toc*)
}
/DISCARD/ : {
*(.debug*)
*(.comment*)
*(.note*)
*(.group*)
*(.eh_frame*)
}
/* Parasite args should have 4 bytes align, as we have futex inside. */
. = ALIGN(4);
__export_parasite_args = .;
}
OUTPUT_ARCH(i386:x86-64)
TARGET(elf64-x86-64)
SECTIONS
{
. = ALIGN(64);
.text : {
*(.compel.prologue.text)
*(.head.text)
*(.text*)
} =0x0
. = ALIGN(64);
.compel.init : {
*(.compel.exit)
*(.compel.init)
} =0xff
}
. = ALIGN(64);
.data : {
*(.data*)
*(.bss*)
}
.rodata : {
*(.rodata*)
} =0x0
*(.got*)
}
.toc : ALIGN(8) {
*(.toc*)
}
/DISCARD/ : {
*(.debug*)
......@@ -25,6 +29,9 @@ SECTIONS
*(.note*)
*(.group*)
*(.eh_frame*)
*(*)
}
/* Parasite args should have 4 bytes align, as we have futex inside. */
. = ALIGN(4);
__export_parasite_args = .;
}
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