summaryrefslogtreecommitdiff
path: root/rld-files.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-12-18 20:52:18 +1100
committerChris Johns <chrisj@rtems.org>2012-12-18 20:52:18 +1100
commit07c8f5fd4ef93a1b0860e044369398535cbc752c (patch)
tree591b859c3e312d3cde59adb09502a143ccdadd6e /rld-files.h
parent07e1f228ea5f1dd88642be943d78465b2e8c0558 (diff)
Add object::get_section.
Add a method to return a section given the ELF section index. Add more trace output for debugging.
Diffstat (limited to 'rld-files.h')
-rw-r--r--rld-files.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/rld-files.h b/rld-files.h
index 36dcc9b..f579626 100644
--- a/rld-files.h
+++ b/rld-files.h
@@ -734,6 +734,13 @@ namespace rld
*/
void get_sections (sections& filtered_secs, const std::string& name);
+ /**
+ * Get a section given an index number.
+ *
+ * @param index The section index to search for.
+ */
+ const section& get_section (int index) const;
+
private:
archive* archive_; //< Points to the archive if part of an
// archive.