Forum: ARM programming with GCC/GNU tools Memory map -> large elf file

Author: Dustin Sr (dbrazeau)
Posted on:

Rate this post
0 useful
not useful
When I link my project a very large elf file is created. Here is my
memory map:

  FLASH      : ORIGIN = 0x00000000, LENGTH = 0x000FC000
  CODE      : ORIGIN = 0x000FC000, LENGTH =  0x00004000
  CODE2      : ORIGIN = 0x00100000, LENGTH =  0x04000000
  MEM      : ORIGIN = 0x04100000, LENGTH = 0xA3F00000
  MVL      : ORIGIN = 0x80000000, LENGTH = 0x00100000
  QLOG       : ORIGIN = 0x80100000, LENGTH = 0x10000000
  HDWR      : ORIGIN = 0xFE800000, LENGTH = 0x017FFFFF

Basicly it is just filling in the gaps in memory with zeros, which
results in a huge elf and bin file.  Is there a link option that will
keep it from doing this?



Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.