Limine Bare Bones: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
No edit summary |
No edit summary |
||
Line 173:
PHDRS
{
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 */▼
KEEP(*(.requests_start_marker))▼
KEEP(*(.requests))▼
KEEP(*(.requests_end_marker))▼
.text : {
Line 214 ⟶ 203:
.data : {
*(.data .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)
}
}
|