elf32epiphany.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. TEMPLATE_NAME=elf
  2. MACHINE=
  3. SCRIPT_NAME=elf
  4. OUTPUT_FORMAT="elf32-epiphany"
  5. NO_REL_RELOCS=yes
  6. # See also `include/elf/epiphany.h'
  7. MMR_ADDR=0x00000000
  8. MMR_LEN=0x100
  9. #RESERVED_ADDR=0x00000100
  10. #RESERVED_LEN=8128
  11. IVT_ADDR=0x00000000
  12. IVT_LEN=0x040
  13. # ??? This fails: 'Not enough room for program headers, try linking with -N'
  14. #TEXT_START_ADDR=0x00000040
  15. #The following two lines would allow small to medium sized programs
  16. #to run in the first 1 MB.
  17. #TEXT_START_ADDR=0x00000060
  18. #EXECUTABLE_SYMBOLS='PROVIDE (___bss_start = __bss_start); PROVIDE (___heap_start = end); PROVIDE (___heap_end = (0x0c0000)); PROVIDE (___stack = (0x0ffff0));'
  19. TEXT_START_ADDR='DEFINED (___text_start) ? ___text_start : 0x80000000'
  20. EXECUTABLE_SYMBOLS='PROVIDE (___bss_start = __bss_start); PROVIDE (___heap_start = end); PROVIDE (___heap_end = (0x81800000)); PROVIDE (___stack = (0x81fffff0));'
  21. #Smuggle an alignemnt directive in here so that .bss is aligned.
  22. OTHER_SDATA_SECTIONS='. = ALIGN(8);'
  23. ARCH=epiphany
  24. ENTRY=_start
  25. EMBEDDED=yes
  26. ELFSIZE=32
  27. ALIGNMENT=8
  28. #MAXPAGESIZE=8192
  29. MAXPAGESIZE=1
  30. WRITABLE_RODATA=
  31. #OTHER_RELOCATING_SECTIONS=
  32. #OTHER_READONLY_SECTIONS=
  33. #OTHER_READWRITE_SECTIONS=