diff options
author | Chris Johns <chrisj@rtems.org> | 2012-11-29 19:01:43 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2012-11-29 19:01:43 +1100 |
commit | 14ba72fd1b30dfbe8a0635e0ae78a812b1dd4a46 (patch) | |
tree | 1ed5bb5b7463f4227bb3d56b0a012f52ede5951a | |
parent | 685475d63da95fc423125afafa2f24f4fc2e0822 (diff) |
Add access to the value and info fields of a symbols.
-rw-r--r-- | rld-symbols.cpp | 12 | ||||
-rw-r--r-- | rld-symbols.h | 10 |
2 files changed, 22 insertions, 0 deletions
diff --git a/rld-symbols.cpp b/rld-symbols.cpp index 127bb2f..3174ce4 100644 --- a/rld-symbols.cpp +++ b/rld-symbols.cpp @@ -140,6 +140,18 @@ namespace rld return esym_.st_shndx; } + elf::elf_addr + symbol::value () const + { + return esym_.st_value; + } + + uint32_t + symbol::info () const + { + return esym_.st_info; + } + rld::files::object* symbol::object () const { diff --git a/rld-symbols.h b/rld-symbols.h index 43e8ef5..dcb0d3e 100644 --- a/rld-symbols.h +++ b/rld-symbols.h @@ -110,6 +110,16 @@ namespace rld int index () const; /** + * The value of the symbol. + */ + elf::elf_addr value () const; + + /** + * The data of the symbol. + */ + uint32_t info () const; + + /** * The symbol's object file name. */ files::object* object () const; |