vmlinux.lds.S 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #define EMITS_PT_NOTE
  3. #define RO_EXCEPTION_TABLE_ALIGN 16
  4. #include <asm-generic/vmlinux.lds.h>
  5. #include <asm/thread_info.h>
  6. #include <asm/cache.h>
  7. #include <asm/page.h>
  8. #include <asm/setup.h>
  9. OUTPUT_FORMAT("elf64-alpha")
  10. OUTPUT_ARCH(alpha)
  11. ENTRY(__start)
  12. PHDRS { text PT_LOAD; note PT_NOTE; }
  13. jiffies = jiffies_64;
  14. SECTIONS
  15. {
  16. #ifdef CONFIG_ALPHA_LEGACY_START_ADDRESS
  17. . = 0xfffffc0000310000;
  18. #else
  19. . = 0xfffffc0001010000;
  20. #endif
  21. _text = .; /* Text and read-only data */
  22. .text : {
  23. HEAD_TEXT
  24. TEXT_TEXT
  25. SCHED_TEXT
  26. LOCK_TEXT
  27. *(.fixup)
  28. *(.gnu.warning)
  29. } :text
  30. swapper_pg_dir = SWAPPER_PGD;
  31. _etext = .; /* End of text section */
  32. RO_DATA(4096)
  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(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. ELF_DETAILS
  64. DISCARDS
  65. }