Commit e437e616 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

parasite, restorer: Cleanup ld scripts

There is no need for specific parasite or restorer
head sections, a general "head" one is enough.

Also .stack section is dropped since it's never used.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent fca43c1a
......@@ -11,7 +11,7 @@
#include "util-net.h"
#define __parasite_head __used __section(.parasite.head.text)
#define __head __used __section(.head.text)
#define PARASITE_STACK_SIZE 2048
#define PARASITE_ARG_SIZE 8196
......
......@@ -494,7 +494,7 @@ static int __used parasite_service(unsigned long cmd, void *args)
return -1;
}
static void __parasite_head __used parasite_head(void)
static void __head parasite_head(void)
{
/*
* The linker will handle the stack allocation.
......
......@@ -5,7 +5,7 @@ SECTIONS
{
. = 0;
.text : {
*(.parasite.head.text)
*(.head.text)
*(.text)
. = ALIGN(8);
}
......@@ -13,7 +13,6 @@ SECTIONS
*(.data)
*(.rodata)
*(.bss)
*(.parasite.stack)
. = ALIGN(8);
}
}
......@@ -5,7 +5,7 @@ SECTIONS
{
. = 0;
.text : {
*(.restorer.head.text)
*(.head.text)
*(.text)
. = ALIGN(8);
}
......@@ -13,7 +13,6 @@ SECTIONS
*(.data)
*(.rodata)
*(.bss)
*(.restorer.stack)
. = ALIGN(8);
}
}
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