u-boot.lds 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. .data.reloc : {
  37. __rel_start = .;
  38. /*
  39. * Space for relocation table
  40. * This needs to be filled so that the
  41. * mips-reloc tool can overwrite the content.
  42. * An invalid value is left at the start of the
  43. * section to abort relocation if the table
  44. * has not been filled in.
  45. */
  46. LONG(0xFFFFFFFF);
  47. FILL(0);
  48. . += CONFIG_MIPS_RELOCATION_TABLE_SIZE - 4;
  49. }
  50. . = ALIGN(4);
  51. _end = .;
  52. .bss __rel_start (OVERLAY) : {
  53. __bss_start = .;
  54. *(.sbss.*)
  55. *(.bss.*)
  56. *(COMMON)
  57. . = ALIGN(4);
  58. __bss_end = .;
  59. }
  60. .dynsym _end : {
  61. *(.dynsym)
  62. }
  63. .dynbss : {
  64. *(.dynbss)
  65. }
  66. .dynstr : {
  67. *(.dynstr)
  68. }
  69. .dynamic : {
  70. *(.dynamic)
  71. }
  72. .plt : {
  73. *(.plt)
  74. }
  75. .interp : {
  76. *(.interp)
  77. }
  78. .gnu : {
  79. *(.gnu*)
  80. }
  81. .MIPS.stubs : {
  82. *(.MIPS.stubs)
  83. }
  84. .hash : {
  85. *(.hash)
  86. }
  87. }