crislinux.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # This is an approximation of what we want for a real linux system (with MMU and ELF).
  2. MACHINE=
  3. SCRIPT_NAME=elf
  4. OUTPUT_FORMAT="elf32-cris"
  5. NO_REL_RELOCS=yes
  6. ARCH=cris
  7. TEMPLATE_NAME=elf
  8. ENTRY=_start
  9. # Needed? Perhaps should be page-size alignment.
  10. ALIGNMENT=32
  11. GENERATE_SHLIB_SCRIPT=yes
  12. # Is this high enough and low enough?
  13. TEXT_START_ADDR=0x80000
  14. MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
  15. COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
  16. # We don't do the hoops through DEFINED to provide [_]*start, as it
  17. # doesn't work with --gc-sections, and the start-name is pretty fixed
  18. # anyway.
  19. TEXT_START_SYMBOLS='PROVIDE (__Stext = .);'
  20. # Smuggle an "OTHER_TEXT_END_SYMBOLS" here.
  21. OTHER_READONLY_SECTIONS="${RELOCATING+PROVIDE (__Etext = .);}"
  22. DATA_START_SYMBOLS='PROVIDE (__Sdata = .);'
  23. # Smuggle an "OTHER_DATA_END_SYMBOLS" here.
  24. OTHER_SDATA_SECTIONS="${RELOCATING+PROVIDE (__Edata = .);}"
  25. OTHER_BSS_SYMBOLS='PROVIDE (__Sbss = .);'
  26. OTHER_BSS_END_SYMBOLS='PROVIDE (__Ebss = .);'
  27. # Also add the other symbols provided for rsim/xsim and elinux.
  28. OTHER_SYMBOLS='
  29. PROVIDE (__Eall = .);
  30. PROVIDE (__Endmem = 0x10000000);
  31. PROVIDE (__Stacksize = 0);
  32. '
  33. NO_SMALL_DATA=yes