vmlinux-sun3.lds 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. *(.head)
  13. *(.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)
  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. SECURITY_INIT
  53. #ifdef CONFIG_BLK_DEV_INITRD
  54. . = ALIGN(8192);
  55. __initramfs_start = .;
  56. .init.ramfs : { *(.init.ramfs) }
  57. __initramfs_end = .;
  58. #endif
  59. . = ALIGN(8192);
  60. __init_end = .;
  61. .data.init.task : { *(.data.init_task) }
  62. .bss : { *(.bss) } /* BSS */
  63. _end = . ;
  64. /* Sections to be discarded */
  65. /DISCARD/ : {
  66. *(.exit.text)
  67. *(.exit.data)
  68. *(.exitcall.exit)
  69. }
  70. .crap : {
  71. /* Stabs debugging sections. */
  72. *(.stab)
  73. *(.stabstr)
  74. *(.stab.excl)
  75. *(.stab.exclstr)
  76. *(.stab.index)
  77. *(.stab.indexstr)
  78. *(.comment)
  79. *(.note)
  80. }
  81. }