Program addresses from text editor to ELF file.
I'm trying to understand how linkers work basically and have concluded that my understanding of addressing is vague. I have read a lot of guides that are on either side of the focus at the moment. I'm not at all interested in the CPU's end on this as there is an abundant of info on that subject.
I assume that the text lines from a high level Language editor are converted to the equivalent in assembly so I would end up with more lines of"editor" addresses? Then these "editor lines" addresses and code are put through a Linker which resolves labels which deserves it's own paragraph.
Why the repeating of the same vague info with no actual meaning on this topic I'll never know but appearently the linker ;if there is more than one Object file , will remove the labels and some how give this line of code a different address type when it already had a place in the sequence of an"editor" which is really not a address. Do you see what I'm getting at? The linker really can't change the program sequence of execution and the code was on a line in sequence with the other code in an editor so what actually takes place?
How do we go from editor lines to program addresses?
Thanks in advance!
|