rescue_v32.lds 698 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*#OUTPUT_FORMAT(elf32-us-cris) */
  2. OUTPUT_ARCH (crisv32)
  3. /* Now that NAND support has been stripped, this file could be simplified,
  4. * but it doesn't do any harm on the other hand so why bother. */
  5. MEMORY
  6. {
  7. bootblk : ORIGIN = 0x38000000,
  8. LENGTH = 0x00004000
  9. intmem : ORIGIN = 0x38004000,
  10. LENGTH = 0x00005000
  11. }
  12. SECTIONS
  13. {
  14. .text :
  15. {
  16. _stext = . ;
  17. *(.text)
  18. *(.init.text)
  19. *(.rodata)
  20. *(.rodata.*)
  21. _etext = . ;
  22. } > bootblk
  23. .data :
  24. {
  25. *(.data)
  26. _edata = . ;
  27. } > bootblk
  28. .bss :
  29. {
  30. _bss = . ;
  31. *(.bss)
  32. _end = ALIGN( 0x10 ) ;
  33. } > intmem
  34. /* Get rid of stuff from EXPORT_SYMBOL(foo). */
  35. /DISCARD/ :
  36. {
  37. *(__ksymtab_strings)
  38. *(__ksymtab)
  39. }
  40. }