How to create a symbol to mark, end of program - using ld
Posted: Fri Mar 25, 2011 4:13 am
Dear All,
How to create a symbol to mark the end of our executable program - using "ld" linker?
It is not clear ?,
OK, I have compiled and linked my program and its size is "100" bytes. I have loaded my program at address "0".
Now, I want to create a symbol with a name "end", it should point the end point of my executable code "end = 100"
I can hard code it inside my program, but I want to generate this value at linking time. How to do it?
How to create a symbol to mark the end of our executable program - using "ld" linker?
It is not clear ?,
OK, I have compiled and linked my program and its size is "100" bytes. I have loaded my program at address "0".
Now, I want to create a symbol with a name "end", it should point the end point of my executable code "end = 100"
I can hard code it inside my program, but I want to generate this value at linking time. How to do it?