genode/repos/base-linux/src/ld/stack_area.ld
Sebastian Sumpf 2fc6cedcc0 ld: load dynamic linker at static address on Linux
* move stack area to static address at beginning of binary
* set ELF type of linker from shared to executable

fixes #3479
2019-08-21 13:25:25 +02:00

32 lines
530 B
Plaintext

/*
* \brief Linux-specific linker script additions
* \author Christian Helmuth
* \date 2010-09-22
*/
/*
* Copyright (C) 2010-2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
PHDRS
{
stack_area PT_LOAD FLAGS(0);
}
SECTIONS
{
/*
* Start of Linux binary and stack area
*/
. = 0x40000000; /* 1GB */
_stack_area_start = .;
/*
* 256 MB
*/
.stack_area : { . += 0x10000000; } : stack_area
}