Hi everyone,
I am confused about how the linker actually goes about generating a memory image. Right now im studying how ld works, i have to use it with an ARM920T.
Suppose i have a program with two sections, one of which has a size of
1kb, and is to be placed at location 0x200000, and another which also has a size of 1kb and is to be placed at 0x600000. How does the linke ensure that these sections go to the correct place? Does it do this by padding the intermediate spaces? But if this were true, then for a 2kb program, the size of the image would be 0x600000 + 1Kb!When the image is loaded into the uC`s memory through, say, a serial connection, the loading program would be dumb and would not know where to place which part of the image..so how does the data get to the correct place??
Plz help..
Regards
Mayank