u-boot.lds 865 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #include <config.h>
  2. OUTPUT_ARCH(or1k)
  3. __DYNAMIC = 0;
  4. MEMORY
  5. {
  6. vectors : ORIGIN = 0, LENGTH = 0x2000
  7. ram : ORIGIN = CONFIG_SYS_MONITOR_BASE,
  8. LENGTH = CONFIG_SYS_MONITOR_LEN
  9. }
  10. SECTIONS
  11. {
  12. .vectors :
  13. {
  14. *(.vectors)
  15. } > vectors
  16. __start = .;
  17. .text : AT (__start) {
  18. _stext = .;
  19. *(.text)
  20. _etext = .;
  21. *(.lit)
  22. *(.shdata)
  23. _endtext = .;
  24. } > ram
  25. . = ALIGN(4);
  26. .u_boot_list : {
  27. KEEP(*(SORT(.u_boot_list*)));
  28. } > ram
  29. .rodata : {
  30. *(.rodata);
  31. *(.rodata.*)
  32. } > ram
  33. .shbss :
  34. {
  35. *(.shbss)
  36. } > ram
  37. .talias :
  38. {
  39. } > ram
  40. .data : {
  41. sdata = .;
  42. _sdata = .;
  43. *(.data)
  44. edata = .;
  45. _edata = .;
  46. } > ram
  47. .bss :
  48. {
  49. _bss_start = .;
  50. *(.bss)
  51. *(COMMON)
  52. _bss_end = .;
  53. } > ram
  54. __end = .;
  55. /* No stack specification - done manually */
  56. .stab 0 (NOLOAD) :
  57. {
  58. [ .stab ]
  59. }
  60. .stabstr 0 (NOLOAD) :
  61. {
  62. [ .stabstr ]
  63. }
  64. }