Limine Bare Bones: Difference between revisions

Jump to navigation Jump to search
Backports from limine-c-template
[unchecked revision][unchecked revision]
No edit summary
(Backports from limine-c-template)
Line 182:
SECTIONS
{
/* WeThe wannabootloader bewill placedrelocate inrelocatable thekernels topmostwith 2GiBa of thebase address space, forof optimisations0 */
/* to or above the address 0xffffffff80000000, which marks the beginning of */
/* and because that is what the Limine spec mandates. */
/* Anythe addresstop-most in this2GiB region willof do,virtual but often 0xffffffff80000000 is chosenaddress asspace. */
/* that isMarking the beginningbase ofaddress as 0 also makes the regionGNU linker (ld.bfd) emit an ELF */
/* file of type ET_DYN, which is what we want. */
. = 0xffffffff80000000;
. = 0;
 
/* Define a section to contain the Limine requests and assign it to its own PHDR */
Line 196 ⟶ 197:
 
/* Move to the next memory page for .text */
. += ALIGN(CONSTANT(MAXPAGESIZE));
 
.text : {
Line 203 ⟶ 204:
 
/* Move to the next memory page for .rodata */
. += ALIGN(CONSTANT(MAXPAGESIZE));
 
.rodata : {
Line 210 ⟶ 211:
 
/* Move to the next memory page for .data */
. += ALIGN(CONSTANT(MAXPAGESIZE));
 
.data : {
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu