u-boot.lds 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. * (C) Copyright 2000-2010
  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. . = + SIZEOF_HEADERS;
  12. .text :
  13. {
  14. arch/powerpc/cpu/mpc8xx/start.o (.text*)
  15. arch/powerpc/cpu/mpc8xx/traps.o (.text*)
  16. *(.text*)
  17. }
  18. _etext = .;
  19. PROVIDE (etext = .);
  20. .rodata :
  21. {
  22. *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
  23. }
  24. /* Read-write section, merged into data segment: */
  25. . = (. + 0x00FF) & 0xFFFFFF00;
  26. _erotext = .;
  27. PROVIDE (erotext = .);
  28. .reloc :
  29. {
  30. _GOT2_TABLE_ = .;
  31. KEEP(*(.got2))
  32. KEEP(*(.got))
  33. PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
  34. _FIXUP_TABLE_ = .;
  35. KEEP(*(.fixup))
  36. }
  37. __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
  38. __fixup_entries = (. - _FIXUP_TABLE_)>>2;
  39. .data :
  40. {
  41. *(.data*)
  42. *(.sdata*)
  43. }
  44. _edata = .;
  45. PROVIDE (edata = .);
  46. . = .;
  47. . = ALIGN(4);
  48. .u_boot_list : {
  49. KEEP(*(SORT(.u_boot_list*)));
  50. }
  51. . = .;
  52. __start___ex_table = .;
  53. __ex_table : { *(__ex_table) }
  54. __stop___ex_table = .;
  55. . = ALIGN(256);
  56. __init_begin = .;
  57. .text.init : { *(.text.init) }
  58. .data.init : { *(.data.init) }
  59. . = ALIGN(256);
  60. __init_end = .;
  61. __bss_start = .;
  62. .bss (NOLOAD) :
  63. {
  64. *(.bss*)
  65. *(.sbss*)
  66. *(COMMON)
  67. . = ALIGN(4);
  68. }
  69. __bss_end = . ;
  70. PROVIDE (end = .);
  71. }