symbol.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* symbol.h - symbol structure header */
  2. /* Copyright 1984-2001 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 02f,29oct01,jn   create symbolP.h
  7. 02e,25jul97,cdp  added SYM_THUMB.
  8. 02d,26mai96,dbt  added support for PowerPC SDA-related symbols.
  9. 02c,22sep92,rrr  added support for c++
  10. 02b,14jul92,jmm  added define of SYM_MASK_EXACT for symTblRemove
  11. 02a,04jul92,jcf  cleaned up.
  12. 01f,26may92,rrr  the tree shuffle
  13. 01e,30apr92,jmm  Added support for group numbers
  14. 01d,04oct91,rrr  passed through the ansification filter
  15.   -fixed #else and #endif
  16.   -changed TINY and UTINY to INT8 and UINT8
  17.   -changed copyright notice
  18. 01c,19may91,gae  changed UINT8 to unsigned char.
  19. 01b,05oct90,shl  added copyright notice.
  20. 01a,10dec89,jcf  written by pulling out of symLib.h.
  21. */
  22. #ifndef __INCsymbolh
  23. #define __INCsymbolh
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. #include "private/symbolP.h"  /* Definition of SYM_TYPE, SYMBOL_ID, etc. */
  28. /* symbol types */
  29. #define SYM_UNDF        0x0     /* undefined */
  30. #define SYM_LOCAL       0x0     /* local */
  31. #define SYM_GLOBAL      0x1     /* global (external) (ORed) */
  32. #define SYM_ABS         0x2     /* absolute */
  33. #define SYM_TEXT        0x4     /* text */
  34. #define SYM_DATA        0x6     /* data */
  35. #define SYM_BSS         0x8     /* bss */
  36. #define SYM_COMM        0x12    /* common symbol */
  37. #define SYM_SDA         0x40    /* symbols related to a PowerPC SDA section */
  38. #define SYM_SDA2        0x80    /* symbols related to a PowerPC SDA2 section */
  39. #define SYM_THUMB 0x40 /* Thumb function */
  40. /* symbol masks */
  41. #define SYM_MASK_ALL 0xff            /* all bits of symbol type valid */
  42. #define SYM_MASK_NONE 0x00 /* no bits of symbol type valid */
  43. #define SYM_MASK_EXACT 0x1ff /* match symbol pointer exactly */
  44. #define SYM_SDA_MASK    0xc0            /* for SDA and SDA2 symbols */
  45. #define SYM_MASK_ANY_TYPE    SYM_MASK_NONE  /* ignore type in searches */
  46. #define SYM_MASK_EXACT_TYPE  SYM_MASK_ALL   /* match type exactly in searches */
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #endif /* __INCsymbolh */