regarding __start
Chandra Chavva
cchavva@cygnus.com
Fri May 26 13:15:00 GMT 2000
Hi,
I have a program which has nothing in the text section and all the
useful data is in new section. When i build the executable and run on sim
or gdb, will my code get executed present in the new section.
As far as i understand __start variable, it points to the begining of
text section and always whatever present under text section gets
executed. In the above example since text has no data in it, nothing will
get executed. To make the above program work, these are the possible ways
of doing:
1. i need to have a linker script saying the new section is part of text
section. or
2. i need to modify the testcase to add a jump to new section from text
section or
3. while linking change the value of entry symbol.
Please let me know am i correct or not.
Thanks
chandra
More information about the Binutils
mailing list