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]
Other format: [Raw text]

Re: Output sections


Mohamed Shafi wrote:
> I am looking for adding something to the end of each section in the
> generated .s file. Using TARGET_ASM_NAMED_SECTION i will be able to
> keep track of the sections that are being emitted. But from
> TARGET_ASM_FILE_END hook how can i re-enter into each section. Are the
> sections stored in some global variable?

  I'm not sure I understand the question.  You "enter a section" simply by
emitting the correct .section directive into the asm output.  You re-enter it by
the same method.

    cheers,
      DaveK


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