aarch64elf.sh 881 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. ARCH=aarch64
  2. MACHINE=
  3. NOP=0
  4. SCRIPT_NAME=elf
  5. ELFSIZE=64
  6. OUTPUT_FORMAT="elf64-littleaarch64"
  7. BIG_OUTPUT_FORMAT="elf64-bigaarch64"
  8. LITTLE_OUTPUT_FORMAT="elf64-littleaarch64"
  9. NO_REL_RELOCS=yes
  10. TEMPLATE_NAME=elf32
  11. EXTRA_EM_FILE=aarch64elf
  12. GENERATE_SHLIB_SCRIPT=yes
  13. MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
  14. ENTRY=_start
  15. EMBEDDED=yes
  16. SEPARATE_GOTPLT=24
  17. IREL_IN_PLT=
  18. TEXT_START_ADDR=0x00400000
  19. DATA_START_SYMBOLS='__data_start = . ;';
  20. # AArch64 does not support .s* sections.
  21. NO_SMALL_DATA=yes
  22. OTHER_BSS_SYMBOLS='__bss_start__ = .;'
  23. OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ;'
  24. OTHER_END_SYMBOLS='__end__ = . ;'
  25. OTHER_SECTIONS='.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }'
  26. ATTRS_SECTIONS='.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }'
  27. # This sets the stack to the top of the simulator memory (2^19 bytes).
  28. STACK_ADDR=0x80000