vmlinux-sun3.lds 1.6 KB

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