70 lines
1.1 KiB
Plaintext
70 lines
1.1 KiB
Plaintext
/* $NetBSD: kern.ldscript.2MB,v 1.11 2015/08/25 08:07:24 uebayasi Exp $ */
|
|
|
|
#include "assym.h"
|
|
|
|
ENTRY(_start)
|
|
SECTIONS
|
|
{
|
|
/* Read-only sections, merged into text segment: */
|
|
.text :
|
|
{
|
|
*(.text)
|
|
*(.text.*)
|
|
*(.stub)
|
|
}
|
|
_etext = . ;
|
|
PROVIDE (etext = .) ;
|
|
|
|
.rodata :
|
|
{
|
|
*(.rodata)
|
|
*(.rodata.*)
|
|
}
|
|
|
|
/* Adjust the address for the data segment. We push the data segment
|
|
up to the next 2MB boundary so that we can map the text with large
|
|
pages. */
|
|
. = ALIGN(0x200000);
|
|
__data_start = . ;
|
|
.data :
|
|
{
|
|
*(.data)
|
|
}
|
|
. = ALIGN(COHERENCY_UNIT);
|
|
.data.cacheline_aligned :
|
|
{
|
|
*(.data.cacheline_aligned)
|
|
}
|
|
. = ALIGN(COHERENCY_UNIT);
|
|
.data.read_mostly :
|
|
{
|
|
*(.data.read_mostly)
|
|
}
|
|
. = ALIGN(COHERENCY_UNIT);
|
|
_edata = . ;
|
|
PROVIDE (edata = .) ;
|
|
__bss_start = . ;
|
|
.bss :
|
|
{
|
|
*(.bss)
|
|
*(.bss.*)
|
|
*(COMMON)
|
|
. = ALIGN(64 / 8);
|
|
}
|
|
. = ALIGN(64 / 8);
|
|
_end = . ;
|
|
PROVIDE (end = .) ;
|
|
.note.netbsd.ident :
|
|
{
|
|
KEEP(*(.note.netbsd.ident));
|
|
}
|
|
}
|
|
SECTIONS
|
|
{
|
|
.text :
|
|
AT (ADDR(.text))
|
|
{
|
|
*(.text)
|
|
} =0
|
|
}
|