vmlinux-sun3.lds 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. . = 0xE002000;
  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. RODATA
  25. _etext = .; /* End of text section */
  26. EXCEPTION_TABLE(16) :data
  27. _sdata = .; /* Start of rw data section */
  28. RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE) :data
  29. /* End of data goes *here* so that freeing init code works properly. */
  30. _edata = .;
  31. NOTES
  32. /* will be freed after init */
  33. . = ALIGN(PAGE_SIZE); /* Init code and data */
  34. __init_begin = .;
  35. INIT_TEXT_SECTION(PAGE_SIZE)
  36. INIT_DATA_SECTION(16)
  37. .m68k_fixup : {
  38. __start_fixup = .;
  39. *(.m68k_fixup)
  40. __stop_fixup = .;
  41. }
  42. . = ALIGN(PAGE_SIZE);
  43. __init_end = .;
  44. BSS_SECTION(0, 0, 0)
  45. _end = . ;
  46. STABS_DEBUG
  47. /* Sections to be discarded */
  48. DISCARDS
  49. }