Link the kernel at the PBVM base address and align the data segment
at the PBVM page boundary.
This commit is contained in:
parent
6097660fbc
commit
f380bcfab5
@ -3,7 +3,7 @@ OUTPUT_FORMAT("elf64-ia64-freebsd", "elf64-ia64-freebsd", "elf64-ia64-freebsd")
|
|||||||
OUTPUT_ARCH(ia64)
|
OUTPUT_ARCH(ia64)
|
||||||
ENTRY(__start)
|
ENTRY(__start)
|
||||||
SEARCH_DIR(/usr/lib);
|
SEARCH_DIR(/usr/lib);
|
||||||
kernel_text = 0xe000003400000000; /* XXX_ALTIX_TODO */
|
kernel_text = 0x9ffc000000000000;
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
/* Read-only sections, merged into text segment: */
|
/* Read-only sections, merged into text segment: */
|
||||||
@ -55,12 +55,12 @@ SECTIONS
|
|||||||
.opd : { *(.opd) }
|
.opd : { *(.opd) }
|
||||||
.IA_64.unwind_info : { *(.IA_64.unwind_info* .gnu.linkonce.ia64unwi.*) }
|
.IA_64.unwind_info : { *(.IA_64.unwind_info* .gnu.linkonce.ia64unwi.*) }
|
||||||
.IA_64.unwind : { *(.IA_64.unwind* .gnu.linkonce.ia64unw.*) }
|
.IA_64.unwind : { *(.IA_64.unwind* .gnu.linkonce.ia64unw.*) }
|
||||||
/* Adjust the address for the data segment. We want to adjust up to
|
/* Adjust the address for the data segment. We want to start in the next
|
||||||
the same address within the page on the next page up. */
|
page in the loader virtual memory. */
|
||||||
. = . + 8192;
|
. = ALIGN(65536);
|
||||||
.data :
|
.data :
|
||||||
{
|
{
|
||||||
*(.data.proc0 .data .data.* .gnu.linkonce.d.*)
|
*(.data.kstack .data .data.* .gnu.linkonce.d.*)
|
||||||
SORT(CONSTRUCTORS)
|
SORT(CONSTRUCTORS)
|
||||||
}
|
}
|
||||||
.data1 : { *(.data1) }
|
.data1 : { *(.data1) }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user