vmlinux-sun3.lds 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. NOTES
  33. /* will be freed after init */
  34. . = ALIGN(PAGE_SIZE); /* Init code and data */
  35. __init_begin = .;
  36. .init.text : {
  37. _sinittext = .;
  38. INIT_TEXT
  39. _einittext = .;
  40. }
  41. .init.data : { INIT_DATA }
  42. . = ALIGN(16);
  43. __setup_start = .;
  44. .init.setup : { *(.init.setup) }
  45. __setup_end = .;
  46. __initcall_start = .;
  47. .initcall.init : {
  48. INITCALLS
  49. }
  50. __initcall_end = .;
  51. __con_initcall_start = .;
  52. .con_initcall.init : { *(.con_initcall.init) }
  53. __con_initcall_end = .;
  54. .m68k_fixup : {
  55. __start_fixup = .;
  56. *(.m68k_fixup)
  57. __stop_fixup = .;
  58. }
  59. SECURITY_INIT
  60. #ifdef CONFIG_BLK_DEV_INITRD
  61. . = ALIGN(PAGE_SIZE);
  62. __initramfs_start = .;
  63. .init.ramfs : { *(.init.ramfs) }
  64. __initramfs_end = .;
  65. #endif
  66. . = ALIGN(PAGE_SIZE);
  67. __init_end = .;
  68. .data.init.task : { *(.data.init_task) }
  69. .bss : { *(.bss) } /* BSS */
  70. _end = . ;
  71. /* Sections to be discarded */
  72. /DISCARD/ : {
  73. EXIT_TEXT
  74. EXIT_DATA
  75. *(.exitcall.exit)
  76. }
  77. .crap : {
  78. /* Stabs debugging sections. */
  79. *(.stab)
  80. *(.stabstr)
  81. *(.stab.excl)
  82. *(.stab.exclstr)
  83. *(.stab.index)
  84. *(.stab.indexstr)
  85. *(.comment)
  86. *(.note)
  87. }
  88. }