linker script

Nov 13, 2003 1 Replies

Hi,



when using linker scripts, how can you check if the various sections actually fit into the specified memory regions ?



Thanks,



Tom


Define the memories:

MEMORY { rom (rx) : ORIGIN = 0x0000, LENGTH = 0x8000 ram : ORIGIN = 0x8000, LENGTH = 0x6000 }

Assign each section to a memory:

.rodata1 : { *(.rodata1) } > rom

Jon

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required