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: Sparc ELF definitions of {INIT,FINI}_SECTION_ASM_OP


On Wed, Apr 03, 2002 at 12:15:37PM -0800, David S. Miller wrote:
>    From: "David O'Brien" <obrien@FreeBSD.org>
>    Date: Wed, 3 Apr 2002 12:14:30 -0800
>    
>    If so, will all ELF/SVR4 assemblers accept "'s around them?
> 
> It is probably target specific being that it is set in
> config/${cpu}/sysv4.h and not config/svr4.h

Perhaps you did not know that config/elfos.h grew out of config/svr4.h.
config/svr4.h now only contains system implementation details such as the
the MD_EXEC_PREFIX path ("/usr/ccs/bin/").  All config/svr4.h consumers
must include config/elfos.h also.

Thus for this discussion, please pretend I had used config/svr4.h rather
than config/elfos.h in my original question.

config/sparc/sysv4.h says this:

    /* Undefined some symbols which are defined in "svr4.h" but which are
       appropriate only for typical svr4 systems, but not for the specific
       case of svr4 running on a Sparc.  */

    #undef INIT_SECTION_ASM_OP
    #undef FINI_SECTION_ASM_OP
    #define INIT_SECTION_ASM_OP     "\t.section\t\".init\""
    #define FINI_SECTION_ASM_OP     "\t.section\t\".fini\""

So why is ELF on Sparc so special?

-- 
-- David  (obrien@FreeBSD.org)


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