vmlinux-std.lds 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* ld script to make m68k Linux kernel */
  2. #include <asm-generic/vmlinux.lds.h>
  3. #include <asm/page.h>
  4. #include <asm/thread_info.h>
  5. OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf32-m68k")
  6. OUTPUT_ARCH(m68k)
  7. ENTRY(_start)
  8. jiffies = jiffies_64 + 4;
  9. SECTIONS
  10. {
  11. . = 0x1000;
  12. _text = .; /* Text and read-only data */
  13. .text : {
  14. HEAD_TEXT
  15. TEXT_TEXT
  16. IRQENTRY_TEXT
  17. SOFTIRQENTRY_TEXT
  18. SCHED_TEXT
  19. CPUIDLE_TEXT
  20. LOCK_TEXT
  21. *(.fixup)
  22. *(.gnu.warning)
  23. } :text = 0x4e75
  24. _etext = .; /* End of text section */
  25. EXCEPTION_TABLE(16)
  26. _sdata = .; /* Start of data section */
  27. RODATA
  28. RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE)
  29. BSS_SECTION(0, 0, 0)
  30. _edata = .; /* End of data section */
  31. /* will be freed after init */
  32. . = ALIGN(PAGE_SIZE); /* Init code and data */
  33. __init_begin = .;
  34. INIT_TEXT_SECTION(PAGE_SIZE) :data
  35. INIT_DATA_SECTION(16)
  36. .m68k_fixup : {
  37. __start_fixup = .;
  38. *(.m68k_fixup)
  39. __stop_fixup = .;
  40. }
  41. NOTES
  42. .init_end : {
  43. /* This ALIGN be in a section so that _end is at the end of the
  44. load segment. */
  45. . = ALIGN(PAGE_SIZE);
  46. __init_end = .;
  47. }
  48. _end = . ;
  49. STABS_DEBUG
  50. .comment 0 : { *(.comment) }
  51. /* Sections to be discarded */
  52. DISCARDS
  53. }