vmlinux-std.lds 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. SCHED_TEXT
  17. LOCK_TEXT
  18. *(.fixup)
  19. *(.gnu.warning)
  20. } :text = 0x4e75
  21. _etext = .; /* End of text section */
  22. EXCEPTION_TABLE(16)
  23. RODATA
  24. RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE)
  25. BSS_SECTION(0, 0, 0)
  26. _edata = .; /* End of data section */
  27. /* will be freed after init */
  28. . = ALIGN(PAGE_SIZE); /* Init code and data */
  29. __init_begin = .;
  30. INIT_TEXT_SECTION(PAGE_SIZE) :data
  31. INIT_DATA_SECTION(16)
  32. .m68k_fixup : {
  33. __start_fixup = .;
  34. *(.m68k_fixup)
  35. __stop_fixup = .;
  36. }
  37. NOTES
  38. .init_end : {
  39. /* This ALIGN be in a section so that _end is at the end of the
  40. load segment. */
  41. . = ALIGN(PAGE_SIZE);
  42. __init_end = .;
  43. }
  44. _end = . ;
  45. STABS_DEBUG
  46. .comment 0 : { *(.comment) }
  47. /* Sections to be discarded */
  48. DISCARDS
  49. }