zImage.lds 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. OUTPUT_ARCH(powerpc:common)
  2. SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
  3. /* Do we need any of these for elf?
  4. __DYNAMIC = 0; */
  5. SECTIONS
  6. {
  7. /* Read-only sections, merged into text segment: */
  8. . = + SIZEOF_HEADERS;
  9. .interp : { *(.interp) }
  10. .hash : { *(.hash) }
  11. .dynsym : { *(.dynsym) }
  12. .dynstr : { *(.dynstr) }
  13. .rel.text : { *(.rel.text) }
  14. .rela.text : { *(.rela.text) }
  15. .rel.data : { *(.rel.data) }
  16. .rela.data : { *(.rela.data) }
  17. .rel.rodata : { *(.rel.rodata) }
  18. .rela.rodata : { *(.rela.rodata) }
  19. .rel.got : { *(.rel.got) }
  20. .rela.got : { *(.rela.got) }
  21. .rel.ctors : { *(.rel.ctors) }
  22. .rela.ctors : { *(.rela.ctors) }
  23. .rel.dtors : { *(.rel.dtors) }
  24. .rela.dtors : { *(.rela.dtors) }
  25. .rel.bss : { *(.rel.bss) }
  26. .rela.bss : { *(.rela.bss) }
  27. .rel.plt : { *(.rel.plt) }
  28. .rela.plt : { *(.rela.plt) }
  29. .plt : { *(.plt) }
  30. .text :
  31. {
  32. *(.text)
  33. *(.fixup)
  34. *(.got1)
  35. }
  36. . = ALIGN(4096);
  37. _etext = .;
  38. PROVIDE (etext = .);
  39. .rodata :
  40. {
  41. *(.rodata)
  42. *(.rodata1)
  43. }
  44. .kstrtab : { *(.kstrtab) }
  45. __vermagic : { *(__vermagic) }
  46. .fini : { *(.fini) } =0
  47. .ctors : { *(.ctors) }
  48. .dtors : { *(.dtors) }
  49. /* Read-write section, merged into data segment: */
  50. . = ALIGN(4096);
  51. .data :
  52. {
  53. *(.data)
  54. *(.data1)
  55. *(.sdata)
  56. *(.sdata2)
  57. *(.got.plt) *(.got)
  58. *(.dynamic)
  59. CONSTRUCTORS
  60. }
  61. . = ALIGN(4096);
  62. _vmlinux_start = .;
  63. .kernel:vmlinux.strip : { *(.kernel:vmlinux.strip) }
  64. _vmlinux_end = .;
  65. . = ALIGN(4096);
  66. _initrd_start = .;
  67. .kernel:initrd : { *(.kernel:initrd) }
  68. _initrd_end = .;
  69. . = ALIGN(4096);
  70. _edata = .;
  71. PROVIDE (edata = .);
  72. .fixup : { *(.fixup) }
  73. . = ALIGN(4096);
  74. __bss_start = .;
  75. .bss :
  76. {
  77. *(.sbss) *(.scommon)
  78. *(.dynbss)
  79. *(.bss)
  80. *(COMMON)
  81. }
  82. . = ALIGN(4096);
  83. _end = . ;
  84. PROVIDE (end = .);
  85. }