Menu

Symbol defines

2001-05-16
2012-09-15
  • Nobody/Anonymous

    //    Symbol binding
    #define STB_LOCAL        0
    #define STB_GLOBAL        1
    #define STB_WEAK        2
    #define STB_LOPROC        13
    #define STB_HIPROC        15

    //    Symbol types
    #define    STT_NOTYPE        0
    #define    STT_OBJECT        1
    #define    STT_FUNC        2
    #define    STT_SECTION        3
    #define    STT_FILE        4
    #define    STT_LOPROC        13
    #define    STT_HIPROC        15

     
    • Serge Lamikhov-Center

      Done.
      I have added this defines into ELFTypes.h.

       
    • Nobody/Anonymous

      In C++ you should avoid the use of #defines like this because they pollute the namespace.

      Instead, make them 'static const' members of a class, or make them 'const int' variables inside a namespace (although the latter is not supported by all C++ compilers).

      best regards,
      Davin.

       

Anonymous
Anonymous

Add attachments
Cancel