vmlinux-sun3.lds 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. HEAD_TEXT
  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. .crap : {
  72. /* Stabs debugging sections. */
  73. *(.stab)
  74. *(.stabstr)
  75. *(.stab.excl)
  76. *(.stab.exclstr)
  77. *(.stab.index)
  78. *(.stab.indexstr)
  79. *(.comment)
  80. *(.note)
  81. }
  82. /* Sections to be discarded */
  83. DISCARDS
  84. }