vmlinux-sun3.lds 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /* ld script to make m68k Linux kernel */
  2. #include <asm-generic/vmlinux.lds.h>
  3. OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf32-m68k")
  4. OUTPUT_ARCH(m68k)
  5. ENTRY(_start)
  6. jiffies = jiffies_64 + 4;
  7. SECTIONS
  8. {
  9. . = 0xE002000;
  10. _text = .; /* Text and read-only data */
  11. .text : {
  12. *(.text.head)
  13. TEXT_TEXT
  14. SCHED_TEXT
  15. LOCK_TEXT
  16. *(.fixup)
  17. *(.gnu.warning)
  18. } :text = 0x4e75
  19. RODATA
  20. _etext = .; /* End of text section */
  21. .data : { /* Data */
  22. DATA_DATA
  23. CONSTRUCTORS
  24. . = ALIGN(16); /* Exception table */
  25. __start___ex_table = .;
  26. *(__ex_table)
  27. __stop___ex_table = .;
  28. } :data
  29. /* End of data goes *here* so that freeing init code works properly. */
  30. _edata = .;
  31. /* will be freed after init */
  32. . = ALIGN(8192); /* Init code and data */
  33. __init_begin = .;
  34. .init.text : {
  35. _sinittext = .;
  36. *(.init.text)
  37. _einittext = .;
  38. }
  39. .init.data : { *(.init.data) }
  40. . = ALIGN(16);
  41. __setup_start = .;
  42. .init.setup : { *(.init.setup) }
  43. __setup_end = .;
  44. __initcall_start = .;
  45. .initcall.init : {
  46. INITCALLS
  47. }
  48. __initcall_end = .;
  49. __con_initcall_start = .;
  50. .con_initcall.init : { *(.con_initcall.init) }
  51. __con_initcall_end = .;
  52. .m68k_fixup : {
  53. __start_fixup = .;
  54. *(.m68k_fixup)
  55. __stop_fixup = .;
  56. }
  57. SECURITY_INIT
  58. #ifdef CONFIG_BLK_DEV_INITRD
  59. . = ALIGN(8192);
  60. __initramfs_start = .;
  61. .init.ramfs : { *(.init.ramfs) }
  62. __initramfs_end = .;
  63. #endif
  64. . = ALIGN(8192);
  65. __init_end = .;
  66. .data.init.task : { *(.data.init_task) }
  67. .bss : { *(.bss) } /* BSS */
  68. _end = . ;
  69. /* Sections to be discarded */
  70. /DISCARD/ : {
  71. *(.exit.text)
  72. *(.exit.data)
  73. *(.exitcall.exit)
  74. }
  75. .crap : {
  76. /* Stabs debugging sections. */
  77. *(.stab)
  78. *(.stabstr)
  79. *(.stab.excl)
  80. *(.stab.exclstr)
  81. *(.stab.index)
  82. *(.stab.indexstr)
  83. *(.comment)
  84. *(.note)
  85. }
  86. }