vmlinux-sun3.lds 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* ld script to make m68k Linux kernel */
  3. #include <asm-generic/vmlinux.lds.h>
  4. #include <asm/page.h>
  5. #include <asm/thread_info.h>
  6. OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf32-m68k")
  7. OUTPUT_ARCH(m68k)
  8. ENTRY(_start)
  9. jiffies = jiffies_64 + 4;
  10. SECTIONS
  11. {
  12. . = 0xE002000;
  13. _text = .; /* Text and read-only data */
  14. .text : {
  15. HEAD_TEXT
  16. TEXT_TEXT
  17. IRQENTRY_TEXT
  18. SOFTIRQENTRY_TEXT
  19. SCHED_TEXT
  20. CPUIDLE_TEXT
  21. LOCK_TEXT
  22. *(.fixup)
  23. *(.gnu.warning)
  24. } :text = 0x4e75
  25. RODATA
  26. _etext = .; /* End of text section */
  27. EXCEPTION_TABLE(16) :data
  28. _sdata = .; /* Start of rw data section */
  29. RW_DATA_SECTION(16, PAGE_SIZE, THREAD_SIZE) :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_SECTION(PAGE_SIZE)
  37. INIT_DATA_SECTION(16)
  38. .m68k_fixup : {
  39. __start_fixup = .;
  40. *(.m68k_fixup)
  41. __stop_fixup = .;
  42. }
  43. . = ALIGN(PAGE_SIZE);
  44. __init_end = .;
  45. BSS_SECTION(0, 0, 0)
  46. _end = . ;
  47. STABS_DEBUG
  48. /* Sections to be discarded */
  49. DISCARDS
  50. }