What does the concept of relocation mean? [closed]
I'm new to assembly and hence want to understand more about the concept of relocation. Why exactly do we need to relocate programs, data? How exactly is it done? It would be great if someone could explain with a beginner level example. The assembler has one source file to look at. It has to build a memory image based on that one source file. So it starts with 0 for the code, and also for 0 with the data. The results go into an object file. Now, the linker comes along and needs to combine many object files into an executable (or kernel image, or whatever). It can't leave everyone at 0, they