u-boot-flashenv.lds 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /*
  2. * Linker command file for the GEN860T board when the environment is
  3. * stored in flash memory.
  4. *
  5. * (C) Copyright 2000
  6. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  7. *
  8. * See file CREDITS for list of people who contributed to this
  9. * project.
  10. *
  11. * This program is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License as
  13. * published by the Free Software Foundation; either version 2 of
  14. * the License, or (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  24. * MA 02111-1307 USA
  25. */
  26. OUTPUT_ARCH(powerpc)
  27. SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
  28. SECTIONS
  29. {
  30. /*
  31. * Read-only sections, merged into text segment:
  32. */
  33. . = + SIZEOF_HEADERS;
  34. .interp : { *(.interp) }
  35. .hash : { *(.hash) }
  36. .dynsym : { *(.dynsym) }
  37. .dynstr : { *(.dynstr) }
  38. .rel.text : { *(.rel.text) }
  39. .rela.text : { *(.rela.text) }
  40. .rel.data : { *(.rel.data) }
  41. .rela.data : { *(.rela.data) }
  42. .rel.rodata : { *(.rel.rodata) }
  43. .rela.rodata : { *(.rela.rodata) }
  44. .rel.got : { *(.rel.got) }
  45. .rela.got : { *(.rela.got) }
  46. .rel.ctors : { *(.rel.ctors) }
  47. .rela.ctors : { *(.rela.ctors) }
  48. .rel.dtors : { *(.rel.dtors) }
  49. .rela.dtors : { *(.rela.dtors) }
  50. .rel.bss : { *(.rel.bss) }
  51. .rela.bss : { *(.rela.bss) }
  52. .rel.plt : { *(.rel.plt) }
  53. .rela.plt : { *(.rela.plt) }
  54. .init : { *(.init) }
  55. .plt : { *(.plt) }
  56. .text :
  57. {
  58. cpu/mpc8xx/start.o (.text)
  59. *(.text)
  60. *(.fixup)
  61. *(.got1)
  62. }
  63. _etext = .;
  64. PROVIDE (etext = .);
  65. .rodata :
  66. {
  67. *(.rodata)
  68. *(.rodata1)
  69. *(.rodata.str1.4)
  70. }
  71. .fini : { *(.fini) } =0
  72. .ctors : { *(.ctors) }
  73. .dtors : { *(.dtors) }
  74. /*
  75. * Read-write section, merged into data segment:
  76. */
  77. . = (. + 0x00FF) & 0xFFFFFF00;
  78. _erotext = .;
  79. PROVIDE (erotext = .);
  80. .reloc :
  81. {
  82. *(.got)
  83. _GOT2_TABLE_ = .;
  84. *(.got2)
  85. _FIXUP_TABLE_ = .;
  86. *(.fixup)
  87. }
  88. __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
  89. __fixup_entries = (. - _FIXUP_TABLE_)>>2;
  90. .data:
  91. {
  92. *(.data)
  93. *(.data1)
  94. *(.sdata)
  95. *(.sdata2)
  96. *(.dynamic)
  97. CONSTRUCTORS
  98. }
  99. _edata = .;
  100. PROVIDE (edata = .);
  101. __start___ex_table = .;
  102. __ex_table : { *(__ex_table) }
  103. __stop___ex_table = .;
  104. . = ALIGN(256);
  105. __init_begin = .;
  106. .text.init : { *(.text.init) }
  107. .data.init : { *(.data.init) }
  108. . = ALIGN(256);
  109. __init_end = .;
  110. __bss_start = .;
  111. .bss :
  112. {
  113. *(.sbss) *(.scommon)
  114. *(.dynbss)
  115. *(.bss)
  116. *(COMMON)
  117. }
  118. _end = . ;
  119. PROVIDE (end = .);
  120. .ppcenv:
  121. {
  122. . = env_offset;
  123. common/environment.o
  124. }
  125. }