vmlinux.lds.S 1.3 KB

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