This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: dbxout FORCE_TEXT and function sections



  In message <200009061902.PAA26142@mal-ach.watson.ibm.com>you write:
  > 	AIX uses stab strings for debugging which means that it uses GCC's
  > dbxout functionality.  I have taught GCC how to generate AIX function
  > sections (CSECTs) which works fine when not debugging.  AIX needs the
  > debug symbols in the text section and dbxout.c implements this through
  > 
  > #define FORCE_TEXT text_section ();
Tee hee hee.

I went down this road in 1995 or 1996.

  > 	With function sections, FORCE_TEXT needs to switch back to the
  > appropriate named section.
Yup.  I think I just bludgeoned the source to work around this problem
to see if there were any more gotchas waiting.....  Sure enough there were.

For reasons I never fathomed the stabs definitions for the compilation
unit as a whole kept disappearing at link stage.  We never managed to
figure out why and gave up.

If this is important to you I can try to dig through my email archives to
see if there's any useful nuggets lying around...

jeff


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