u-boot.lds 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. * (C) Copyright 2000
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. OUTPUT_ARCH(m68k)
  8. SECTIONS
  9. {
  10. /* Read-only sections, merged into text segment: */
  11. .text :
  12. {
  13. arch/m68k/cpu/mcf5445x/start.o (.text*)
  14. *(.text*)
  15. }
  16. _etext = .;
  17. PROVIDE (etext = .);
  18. .rodata :
  19. {
  20. *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
  21. }
  22. /* Read-write section, merged into data segment: */
  23. . = (. + 0x00FF) & 0xFFFFFF00;
  24. _erotext = .;
  25. PROVIDE (erotext = .);
  26. .reloc :
  27. {
  28. __got_start = .;
  29. KEEP(*(.got))
  30. __got_end = .;
  31. _GOT2_TABLE_ = .;
  32. KEEP(*(.got2))
  33. _FIXUP_TABLE_ = .;
  34. KEEP(*(.fixup))
  35. }
  36. __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
  37. __fixup_entries = (. - _FIXUP_TABLE_)>>2;
  38. .data :
  39. {
  40. *(.data*)
  41. *(.sdata*)
  42. }
  43. _edata = .;
  44. PROVIDE (edata = .);
  45. . = .;
  46. . = ALIGN(4);
  47. .u_boot_list : {
  48. KEEP(*(SORT(.u_boot_list*)));
  49. }
  50. . = .;
  51. __start___ex_table = .;
  52. __ex_table : { *(__ex_table) }
  53. __stop___ex_table = .;
  54. . = ALIGN(256);
  55. __init_begin = .;
  56. .text.init : { *(.text.init) }
  57. .data.init : { *(.data.init) }
  58. . = ALIGN(256);
  59. __init_end = .;
  60. __bss_start = .;
  61. .bss (NOLOAD) :
  62. {
  63. _sbss = .;
  64. *(.bss*)
  65. *(.sbss*)
  66. *(COMMON)
  67. . = ALIGN(4);
  68. _ebss = .;
  69. }
  70. __bss_end = . ;
  71. PROVIDE (end = .);
  72. }