This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

[A53] Hex file is Huge when generated fromo ELF

Hi , 

If I generate the elf file from the Default bootcode and pagetables , I get a very small size but 

after mapping the Stack pointer to SRAM , I am getting a huge HEX file. 

Here is the  loader file  code 

============================================================

MEMORY
{
rom (r) : ORIGIN = 0x00000000, LENGTH = 0x3FFFF
/* pageTable (rw) : ORIGIN = 0x0B000000, LENGTH = 0x3FFF */
heap (rw) : ORIGIN = 0x02001000, LENGTH = 0x1FFF
/* stack(rw) : ORIGIN = 0x0B120000, LENGTH = 0xFFFF */
/* data_mem (rw) : ORIGIN = 0x02020000, LENGTH = 0xFFFF
bss_mem (rw) : ORIGIN = 0x02020000, LENGTH = 0xFFFF */
ram (rw) : ORIGIN = 0x02004000, LENGTH = 0x3FFF
}


SECTIONS
{

/* Code starts with bootcode, then the vector table, then the
* remainder of the code */
.text :
{
*bootcode.o(boot)
*vectors.o(vectors)
/* *(.text) /* remainder of code */
} > rom

.heap : { *stackheap.o(stackheap) } > heap
. = ALIGN(4);

/* Data */
/* __data_start = .; */
.data : AT (_sdata )
{
. = ALIGN(4);
_sdata = .;
*(.data)
*(.data*)
} > ram

MEMORY
{
rom (r) : ORIGIN = 0x00000000, LENGTH = 0x3FFFF
/* pageTable (rw) : ORIGIN = 0x0B000000, LENGTH = 0x3FFF */
heap (rw) : ORIGIN = 0x02001000, LENGTH = 0x1FFF
/* stack(rw) : ORIGIN = 0x0B120000, LENGTH = 0xFFFF */
/* data_mem (rw) : ORIGIN = 0x02020000, LENGTH = 0xFFFF
bss_mem (rw) : ORIGIN = 0x02020000, LENGTH = 0xFFFF */
ram (rw) : ORIGIN = 0x02004000, LENGTH = 0x3FFF
}


SECTIONS
{

/* Code starts with bootcode, then the vector table, then the
* remainder of the code */
.text :
{
*bootcode.o(boot)
*vectors.o(vectors)
/* *(.text) /* remainder of code */
} > rom

.heap : { *stackheap.o(stackheap) } > heap
. = ALIGN(4);

/* Data */
/* __data_start = .; */
.data : AT (_sdata )
{
. = ALIGN(4);
_sdata = .;
*(.data)
*(.data*)
} > ram

============================================================

I dont understand what is the Issue here.

The size of the Hex generated is 79MB. 

Thanks

Aashish 

Parents Reply Children