This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: dbxout FORCE_TEXT and function sections
- To: David Edelsohn <dje at watson dot ibm dot com>
- Subject: Re: dbxout FORCE_TEXT and function sections
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 06 Sep 2000 19:29:06 -0600
- cc: gcc at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
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