From 367bae8843ca24cf58f646f963a0ad1e755b3eb7 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 6 Aug 2018 09:19:18 +1000 Subject: rtemstoolkit/elf-symbols: Add the symbol types as an enum. This can be used by applications to filter the symbols by type. --- rtemstoolkit/rld-symbols.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'rtemstoolkit') 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 @@ -61,6 +61,27 @@ namespace rld class symbol { 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. */ -- cgit v1.2.3