36 lines
902 B
Plaintext
36 lines
902 B
Plaintext
/*
|
|
* \brief Linux-specific linker script additions (STDLIB = no)
|
|
* \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
|
|
{
|
|
/*
|
|
* The virtual gap between start of text segment (0x0) and stack area
|
|
* must be sufficiently large to hold either the entire dynamic linker (text +
|
|
* data) or core (0x1000000 + text + data). Note, core-linux includes 80 MiB
|
|
* core-local memory in the BSS.
|
|
*/
|
|
. = 0x8000000; /* 128 MiB */
|
|
_stack_area_start = .;
|
|
|
|
/*
|
|
* Since Linux loads ldso page-aligned, we align the stack area after
|
|
* loading to a 1 MiB boundary, therefore we reserve one MiB more here.
|
|
*/
|
|
.stack_area : { . += 0x10100000; } : stack_area
|
|
}
|