Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/ldscript.amd64
/* $FreeBSD$ */ | /* $FreeBSD$ */ | ||||
OUTPUT_FORMAT("elf64-x86-64-freebsd", "elf64-x86-64-freebsd", "elf64-x86-64-freebsd") | OUTPUT_FORMAT("elf64-x86-64-freebsd", "elf64-x86-64-freebsd", "elf64-x86-64-freebsd") | ||||
OUTPUT_ARCH(i386:x86-64) | OUTPUT_ARCH(i386:x86-64) | ||||
ENTRY(btext) | ENTRY(btext) | ||||
SEARCH_DIR("/usr/lib"); | SEARCH_DIR("/usr/lib"); | ||||
SECTIONS | SECTIONS | ||||
{ | { | ||||
kernphys = kernload; | |||||
/* Read-only sections, merged into text segment: */ | /* Read-only sections, merged into text segment: */ | ||||
kernphys = 0x200000; /* 2MB superpage size */ | |||||
. = kernbase + kernphys + SIZEOF_HEADERS; | . = kernbase + kernphys + SIZEOF_HEADERS; | ||||
/* | /* | ||||
* Use the AT keyword in order to set the right LMA that contains | * Use the AT keyword in order to set the right LMA that contains | ||||
* the physical address where the section should be loaded. This is | * the physical address where the section should be loaded. This is | ||||
* needed for the Xen loader which honours the LMA. | * needed for the Xen loader which honours the LMA. | ||||
*/ | */ | ||||
.interp : AT (kernphys + SIZEOF_HEADERS) { *(.interp) } | .interp : AT (kernphys + SIZEOF_HEADERS) { *(.interp) } | ||||
.hash : { *(.hash) } | .hash : { *(.hash) } | ||||
▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines |