diff options
author | Chris Johns <chrisj@rtems.org> | 2018-08-06 09:19:18 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2018-08-07 09:11:29 +1000 |
commit | 367bae8843ca24cf58f646f963a0ad1e755b3eb7 (patch) | |
tree | ebbd18a7d6761749673e476da779a5b9e2a900a8 /rtemstoolkit | |
parent | 058a3a0bd05cebcc0e92d7261c0b1a66c072c6c2 (diff) |
rtemstoolkit/elf-symbols: Add the symbol types as an enum.
This can be used by applications to filter the symbols by type.
Diffstat (limited to 'rtemstoolkit')
-rw-r--r-- | rtemstoolkit/rld-symbols.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/rtemstoolkit/rld-symbols.h b/rtemstoolkit/rld-symbols.h index 28d3cab..c3035c4 100644 --- a/rtemstoolkit/rld-symbols.h +++ b/rtemstoolkit/rld-symbols.h @@ -62,6 +62,27 @@ namespace rld { public: /** + * Types of symbols. + */ + enum type { + st_notype = STT_NOTYPE, /* unspecified type */ + st_object = STT_OBJECT, /* data object */ + st_func = STT_FUNC, /* executable code */ + st_section = STT_SECTION, /* section */ + st_file = STT_FILE, /* source file */ + st_common = STT_COMMON, /* uninitialized common block */ + st_tls = STT_TLS, /* thread local storage */ + st_loos = STT_LOOS, /* start of OS-specific types */ + st_gnu_ifunc = STT_GNU_IFUNC, /* indirect function */ + st_hios = STT_HIOS, /* end of OS-specific types */ + st_loproc = STT_LOPROC, /* start of processor-specific types */ + st_arm_tfunc = STT_ARM_TFUNC, /* Thumb function (GNU) */ + st_arm_16bit = STT_ARM_16BIT, /* Thumb label (GNU) */ + st_sparc_reg = STT_SPARC_REGISTER, /* SPARC register information */ + st_hiproc = STT_HIPROC, /* end of processor-specific types */ + }; + + /** * Default constructor. No symbol has been defined. */ symbol (); |