vmlinux.lds.S 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #include <asm-generic/vmlinux.lds.h>
  2. #include <asm/thread_info.h>
  3. #include <asm/cache.h>
  4. #include <asm/page.h>
  5. #include <asm/setup.h>
  6. OUTPUT_FORMAT("elf64-alpha")
  7. OUTPUT_ARCH(alpha)
  8. ENTRY(__start)
  9. PHDRS { kernel PT_LOAD; note PT_NOTE; }
  10. jiffies = jiffies_64;
  11. SECTIONS
  12. {
  13. #ifdef CONFIG_ALPHA_LEGACY_START_ADDRESS
  14. . = 0xfffffc0000310000;
  15. #else
  16. . = 0xfffffc0001010000;
  17. #endif
  18. _text = .; /* Text and read-only data */
  19. .text : {
  20. HEAD_TEXT
  21. TEXT_TEXT
  22. SCHED_TEXT
  23. CPUIDLE_TEXT
  24. LOCK_TEXT
  25. *(.fixup)
  26. *(.gnu.warning)
  27. } :kernel
  28. swapper_pg_dir = SWAPPER_PGD;
  29. _etext = .; /* End of text section */
  30. NOTES :kernel :note
  31. .dummy : {
  32. *(.dummy)
  33. } :kernel
  34. RODATA
  35. EXCEPTION_TABLE(16)
  36. /* Will be freed after init */
  37. __init_begin = ALIGN(PAGE_SIZE);
  38. INIT_TEXT_SECTION(PAGE_SIZE)
  39. INIT_DATA_SECTION(16)
  40. PERCPU_SECTION(L1_CACHE_BYTES)
  41. /* Align to THREAD_SIZE rather than PAGE_SIZE here so any padding page
  42. needed for the THREAD_SIZE aligned init_task gets freed after init */
  43. . = ALIGN(THREAD_SIZE);
  44. __init_end = .;
  45. /* Freed after init ends here */
  46. _sdata = .; /* Start of rw data section */
  47. _data = .;
  48. RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
  49. .got : {
  50. *(.got)
  51. }
  52. .sdata : {
  53. *(.sdata)
  54. }
  55. _edata = .; /* End of data section */
  56. BSS_SECTION(0, 0, 0)
  57. _end = .;
  58. .mdebug 0 : {
  59. *(.mdebug)
  60. }
  61. .note 0 : {
  62. *(.note)
  63. }
  64. STABS_DEBUG
  65. DWARF_DEBUG
  66. DISCARDS
  67. }