57 lines
1.1 KiB
Plaintext
57 lines
1.1 KiB
Plaintext
/* $NetBSD: kern.ldscript.4MB,v 1.9 2007/10/18 15:28:34 yamt Exp $ */
|
|
|
|
OUTPUT_FORMAT("elf32-i386", "elf32-i386",
|
|
"elf32-i386")
|
|
OUTPUT_ARCH(i386)
|
|
ENTRY(_start)
|
|
SECTIONS
|
|
{
|
|
/* Read-only sections, merged into text segment: */
|
|
.text :
|
|
AT (ADDR(.text) & 0x0fffffff)
|
|
{
|
|
*(.text)
|
|
*(.text.*)
|
|
*(.stub)
|
|
} =0
|
|
_etext = . ;
|
|
PROVIDE (etext = .) ;
|
|
|
|
.rodata :
|
|
AT (LOADADDR(.text) + (ADDR(.rodata) - ADDR(.text)))
|
|
{
|
|
*(.rodata)
|
|
*(.rodata.*)
|
|
}
|
|
|
|
/* Adjust the address for the data segment. We push the data segment
|
|
up to the next 4MB boundary so that we can map the text with large
|
|
pages. */
|
|
. = ALIGN(0x400000);
|
|
__data_start = . ;
|
|
.data :
|
|
AT (LOADADDR(.text) + (ADDR(.data) - ADDR(.text)))
|
|
{
|
|
*(.data)
|
|
*(.data.*)
|
|
}
|
|
_edata = . ;
|
|
PROVIDE (edata = .) ;
|
|
__bss_start = . ;
|
|
.bss :
|
|
AT (LOADADDR(.text) + (ADDR(.bss) - ADDR(.text)))
|
|
{
|
|
*(.bss)
|
|
*(.bss.*)
|
|
*(COMMON)
|
|
. = ALIGN(32 / 8);
|
|
}
|
|
. = ALIGN(32 / 8);
|
|
_end = . ;
|
|
PROVIDE (end = .) ;
|
|
.note.netbsd.ident :
|
|
{
|
|
KEEP(*(.note.netbsd.ident));
|
|
}
|
|
}
|