vmlinux-sun3.lds 1.7 KB

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