Limine Bare Bones: Difference between revisions

no edit summary
[unchecked revision][unchecked revision]
No edit summary
No edit summary
Line 173:
PHDRS
{
requests PT_LOAD FLAGS(0x06); /* Write + Read */
text PT_LOAD FLAGS(0x05); /* Execute + Read */
rodata PT_LOAD FLAGS(0x04); /* Read only */
Line 187 ⟶ 186:
/* that is the beginning of the region. */
. = 0xffffffff80000000;
 
/* Define a section to contain the Limine requests and assign it to its own PHDR */
.requests : {
KEEP(*(.requests_start_marker))
KEEP(*(.requests))
KEEP(*(.requests_end_marker))
} :requests
 
/* Move to the next memory page for .text */
. = ALIGN(CONSTANT(MAXPAGESIZE));
 
.text : {
Line 214 ⟶ 203:
.data : {
*(.data .data.*)
 
/* DefinePlace athe sectionsections tothat contain the Limine requests andas assignpart itof to its ownthe PHDR.data */
/* output section. */
KEEP(*(.requests_start_marker))
KEEP(*(.requests))
KEEP(*(.requests_end_marker))
} :data
 
Line 237 ⟶ 232:
 
/* Discard .note.* and .eh_frame since they may cause issues on some hosts. */
/* Also discard the program interpreter section since we do not need one. This is */
/* more or less equivalent to the --no-dynamic-linker linker flag, except that it */
/* works with ld.gold. */
/DISCARD/ : {
*(.eh_frame)
*(.note .note.*)
*(.interp)
}
}
Anonymous user