u-boot.lds 878 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #include <config.h>
  2. OUTPUT_ARCH(or32)
  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. __u_boot_cmd_start = .;
  26. .u_boot_cmd : { *(.u_boot_cmd) } > ram
  27. __u_boot_cmd_end = .;
  28. .rodata : {
  29. *(.rodata);
  30. *(.rodata.*)
  31. } > ram
  32. .shbss :
  33. {
  34. *(.shbss)
  35. } > ram
  36. .talias :
  37. {
  38. } > ram
  39. .data : {
  40. sdata = .;
  41. _sdata = .;
  42. *(.data)
  43. edata = .;
  44. _edata = .;
  45. } > ram
  46. .bss :
  47. {
  48. _bss_start = .;
  49. *(.bss)
  50. *(COMMON)
  51. _bss_end = .;
  52. } > ram
  53. __end = .;
  54. /* No stack specification - done manually */
  55. .stab 0 (NOLOAD) :
  56. {
  57. [ .stab ]
  58. }
  59. .stabstr 0 (NOLOAD) :
  60. {
  61. [ .stabstr ]
  62. }
  63. }