This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
regarding __start
- To: binutils at sourceware dot cygnus dot com
- Subject: regarding __start
- From: Chandra Chavva <cchavva at cygnus dot com>
- Date: Fri, 26 May 2000 13:14:58 -0700 (PDT)
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