ld.script 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. OUTPUT_ARCH(powerpc:common)
  2. SECTIONS
  3. {
  4. /* Read-only sections, merged into text segment: */
  5. . = + SIZEOF_HEADERS;
  6. .interp : { *(.interp) }
  7. .hash : { *(.hash) }
  8. .dynsym : { *(.dynsym) }
  9. .dynstr : { *(.dynstr) }
  10. .rel.text : { *(.rel.text) }
  11. .rela.text : { *(.rela.text) }
  12. .rel.data : { *(.rel.data) }
  13. .rela.data : { *(.rela.data) }
  14. .rel.rodata : { *(.rel.rodata) }
  15. .rela.rodata : { *(.rela.rodata) }
  16. .rel.got : { *(.rel.got) }
  17. .rela.got : { *(.rela.got) }
  18. .rel.ctors : { *(.rel.ctors) }
  19. .rela.ctors : { *(.rela.ctors) }
  20. .rel.dtors : { *(.rel.dtors) }
  21. .rela.dtors : { *(.rela.dtors) }
  22. .rel.bss : { *(.rel.bss) }
  23. .rela.bss : { *(.rela.bss) }
  24. .rel.plt : { *(.rel.plt) }
  25. .rela.plt : { *(.rela.plt) }
  26. .plt : { *(.plt) }
  27. .text :
  28. {
  29. *(.text)
  30. *(.fixup)
  31. __relocate_start = .;
  32. *(.relocate_code)
  33. __relocate_end = .;
  34. }
  35. _etext = .;
  36. PROVIDE (etext = .);
  37. /* Read-write section, merged into data segment: */
  38. . = ALIGN(4096);
  39. .data :
  40. {
  41. *(.data)
  42. *(.data1)
  43. *(.data.boot)
  44. *(.sdata)
  45. *(.sdata2)
  46. *(.got.plt) *(.got)
  47. *(.dynamic)
  48. *(.rodata)
  49. *(.rodata.*)
  50. *(.rodata1)
  51. *(.got1)
  52. __image_begin = .;
  53. *(.image)
  54. __image_end = .;
  55. . = ALIGN(4096);
  56. __ramdisk_begin = .;
  57. *(.ramdisk)
  58. __ramdisk_end = .;
  59. . = ALIGN(4096);
  60. CONSTRUCTORS
  61. }
  62. _edata = .;
  63. PROVIDE (edata = .);
  64. . = ALIGN(4096);
  65. __bss_start = .;
  66. .bss :
  67. {
  68. *(.sbss) *(.scommon)
  69. *(.dynbss)
  70. *(.bss)
  71. *(COMMON)
  72. }
  73. _end = . ;
  74. PROVIDE (end = .);
  75. /DISCARD/ : {
  76. *(__ksymtab)
  77. *(__ksymtab_strings)
  78. *(__bug_table)
  79. *(__kcrctab)
  80. }
  81. }