Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. ENTRY (_start)
  2.  
  3. SECTIONS
  4. {
  5. /* The kernel will live at 3GB + 1MB in the virtual address space, */
  6. /* which will be mapped to 1MB in the physical address space. */
  7. /* Note that we page-align the sections. */
  8. . = 0xC0100000;
  9. /* Add a symbol that indicates the start address of the kernel. */
  10. _kernel_start = .;
  11. .text ALIGN (4K) : AT (ADDR (.text) - 0xC0000000)
  12. {
  13. *(.multiboot)
  14. *(.text)
  15. }
  16. .rodata ALIGN (4K) : AT (ADDR (.rodata) - 0xC0000000)
  17. {
  18. *(.rodata)
  19. }
  20. .data ALIGN (4K) : AT (ADDR (.data) - 0xC0000000)
  21. {
  22. *(.data)
  23. }
  24. .bss ALIGN (4K) : AT (ADDR (.bss) - 0xC0000000)
  25. {
  26. *(COMMON)
  27. *(.bss)
  28. *(.bootstrap_stack)
  29. }
  30. /* Add a symbol that indicates the end address of the kernel. */
  31. _end = .;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement