This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

regarding __start


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





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]