summaryrefslogtreecommitdiff
path: root/linkers/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
commit53221a04855a6d476b4300498321ecc509651c82 (patch)
tree2b45b042365af6588c7025602f8932d1cf0d61bd /linkers/rld-files.h
parentb5a59dd96fddf5e6b346aacb3a9dcd41da463c91 (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 'linkers/rld-files.h')
-rw-r--r--linkers/rld-files.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/linkers/rld-files.h b/linkers/rld-files.h
index 36dcc9b..f579626 100644
--- a/linkers/rld-files.h
+++ b/linkers/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.