Forum Discussion
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by newbie@Mar 29 2007, 07:39 PM hi all ,
please help me understand the structuring of elf file sections, generated by the nios2 linker. general reading on elf file format did not quite help.
so far for the current nios application that i am working on, i have seen that the sections are arranged continuously in the memory. the vma of each section is
(vma of prev section + size of previous section)
are there any cases where these sections wont be contiguous? for this particualr application, all sections (.text , .rodata , .rwdata) are mapped to sdram. so can i assume that they will be placed contiguously in the memory. also i use the automatically generated linker script.
thanks in advance for any information you can provide
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22639)
--- quote end ---
--- Quote End --- In some cases, it won't be contiguous. For example you can choose to put the .text in flash, the .rodata and .wrdata in an SDRAM. It only depends on the configuration you put in the system library of your NIOS project.