linker.ld 919 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ENTRY(_start)
  2. SECTIONS {
  3. .text : {
  4. *(.text)
  5. }
  6. .data : ALIGN(32) {
  7. *(.sdata*)
  8. *(.data*)
  9. }
  10. /*
  11. * In MIPS position independent code (PIC), the global offset table (GOT) is a data structure
  12. * used to facilitate access to global variables and functions when the code's final memory
  13. * location is not known at compile time. The GOT contains absolute addresses of global symbols,
  14. * but is itself located using a relative reference. This allows the code to be relocated at
  15. * runtime without modification.
  16. */
  17. .got : ALIGN(32) {
  18. __got_start = .;
  19. *(.got*)
  20. __got_end = .;
  21. }
  22. /*
  23. * Storage for the compressed kernel image that was integrated into the loader during link time.
  24. * No code just binary data.
  25. */
  26. .kernel : ALIGN(1) {
  27. __kernel_data_start = .;
  28. KEEP(*(.kernel))
  29. __kernel_data_end = .;
  30. }
  31. .bss (NOLOAD) : ALIGN(4) {
  32. __bss_start = .;
  33. *(.bss)
  34. *(.sbss)
  35. *(COMMON)
  36. __bss_end = .;
  37. }
  38. }