u-boot-customlayout.lds 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * (C) Copyright 2003-2004
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. OUTPUT_ARCH(powerpc)
  8. SECTIONS
  9. {
  10. /* Read-only sections, merged into text segment: */
  11. .text :
  12. {
  13. /* WARNING - the following is hand-optimized to fit within */
  14. /* the sector layout of our flash chips! XXX FIXME XXX */
  15. arch/powerpc/cpu/mpc5xxx/start.o (.text*)
  16. arch/powerpc/cpu/mpc5xxx/traps.o (.text*)
  17. . = DEFINED(env_offset) ? env_offset : .;
  18. common/env_embedded.o (.ppcenv*)
  19. *(.text*)
  20. . = ALIGN(16);
  21. *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
  22. }
  23. /* Read-write section, merged into data segment: */
  24. . = (. + 0x0FFF) & 0xFFFFF000;
  25. _erotext = .;
  26. PROVIDE (erotext = .);
  27. .reloc :
  28. {
  29. KEEP(*(.got))
  30. _GOT2_TABLE_ = .;
  31. KEEP(*(.got2))
  32. _FIXUP_TABLE_ = .;
  33. KEEP(*(.fixup))
  34. }
  35. __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
  36. __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
  37. .data :
  38. {
  39. *(.data*)
  40. *(.sdata*)
  41. }
  42. _edata = .;
  43. PROVIDE (edata = .);
  44. . = .;
  45. .u_boot_list : {
  46. KEEP(*(SORT(.u_boot_list*)));
  47. }
  48. . = .;
  49. __start___ex_table = .;
  50. __ex_table : { *(__ex_table) }
  51. __stop___ex_table = .;
  52. . = ALIGN(4096);
  53. __init_begin = .;
  54. .text.init : { *(.text.init) }
  55. .data.init : { *(.data.init) }
  56. . = ALIGN(4096);
  57. __init_end = .;
  58. __bss_start = .;
  59. .bss (NOLOAD) :
  60. {
  61. *(.bss*)
  62. *(.sbss*)
  63. *(COMMON)
  64. . = ALIGN(4);
  65. }
  66. __bss_end = . ;
  67. PROVIDE (end = .);
  68. }