Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ENTRY(_start)
- SECTIONS
- {
- . = 1M;
- kern_start = .;
- KERN_VIRT_OFFSET = 0xFFFFFFFFC0000000;
- .multiboot2 :
- {
- /* Ensure this is at the very beginning for sure. */
- *(.multiboot2)
- }
- .earlytext :
- {
- *(.earlytext)
- }
- .earlydata :
- {
- *(.earlydata)
- }
- . += KERN_VIRT_OFFSET;
- kern_virt_start = .;
- .text : AT(ADDR(.text) - KERN_VIRT_OFFSET)
- {
- *(.text*)
- }
- .rodata : AT(ADDR(.rodata) - KERN_VIRT_OFFSET)
- {
- *(.rodata*)
- }
- .bss : AT(ADDR(.bss) - KERN_VIRT_OFFSET)
- {
- *(.bss)
- }
- .data : AT(ADDR(.data) - KERN_VIRT_OFFSET)
- {
- *(.data)
- }
- kern_end = . - KERN_VIRT_OFFSET;
- kern_virt_end = .;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement