u-boot.lds 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2003
  4. * Wolfgang Denk Engineering, <wd@denx.de>
  5. */
  6. OUTPUT_ARCH(mips)
  7. ENTRY(_start)
  8. SECTIONS
  9. {
  10. . = 0x00000000;
  11. . = ALIGN(4);
  12. .text : {
  13. __text_start = .;
  14. *(.text*)
  15. __text_end = .;
  16. }
  17. . = ALIGN(4);
  18. .rodata : {
  19. *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
  20. }
  21. . = ALIGN(4);
  22. .data : {
  23. *(.data*)
  24. }
  25. . = ALIGN(4);
  26. .sdata : {
  27. *(.sdata*)
  28. }
  29. . = ALIGN(4);
  30. .u_boot_list : {
  31. KEEP(*(SORT(.u_boot_list*)));
  32. }
  33. . = ALIGN(4);
  34. __image_copy_end = .;
  35. __init_end = .;
  36. /*
  37. * .rel must come last so that the mips-relocs tool can shrink
  38. * the section size & the PT_LOAD program header filesz.
  39. */
  40. .rel : {
  41. __rel_start = .;
  42. BYTE(0x0)
  43. . += (32 * 1024) - 1;
  44. }
  45. _end = .;
  46. .bss __rel_start (OVERLAY) : {
  47. __bss_start = .;
  48. *(.sbss.*)
  49. *(.bss.*)
  50. *(COMMON)
  51. . = ALIGN(4);
  52. __bss_end = .;
  53. }
  54. .dynsym _end : {
  55. *(.dynsym)
  56. }
  57. .dynbss : {
  58. *(.dynbss)
  59. }
  60. .dynstr : {
  61. *(.dynstr)
  62. }
  63. .dynamic : {
  64. *(.dynamic)
  65. }
  66. .plt : {
  67. *(.plt)
  68. }
  69. .interp : {
  70. *(.interp)
  71. }
  72. .gnu : {
  73. *(.gnu*)
  74. }
  75. .MIPS.stubs : {
  76. *(.MIPS.stubs)
  77. }
  78. .hash : {
  79. *(.hash)
  80. }
  81. }