aboutsummaryrefslogtreecommitdiff
path: root/ltrace-elf.h
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2013-11-04 17:01:43 +0100
committerPetr Machata <pmachata@redhat.com>2013-11-04 17:01:43 +0100
commit0ed5399f5cbb2b505a95bcac634c0ad5d7bbd6b8 (patch)
treec5119054ff584415d2817f7f1915b31e34ff5272 /ltrace-elf.h
parentd8286ed3496bcd69cd4796f57a5b5c04859d2378 (diff)
downloadltrace-0ed5399f5cbb2b505a95bcac634c0ad5d7bbd6b8.tar.gz
Properly publish read_relplt interface, rename it to elf_read_relocs
Diffstat (limited to 'ltrace-elf.h')
-rw-r--r--ltrace-elf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ltrace-elf.h b/ltrace-elf.h
index 8e3da5a..57ed87d 100644
--- a/ltrace-elf.h
+++ b/ltrace-elf.h
@@ -117,6 +117,12 @@ struct elf_each_symbol_t {
void *data),
void *data);
+/* Read relocations from relocation section SCN with header SHDR and
+ * add them to RELA_VEC, which is a vector of GElf_Rela. Return 0 on
+ * success, or a negative value on failure. */
+int elf_read_relocs(struct ltelf *lte, Elf_Scn *scn, GElf_Shdr *shdr,
+ struct vect *rela_vec);
+
/* Read, respectively, 1, 2, 4, or 8 bytes from Elf data at given
* OFFSET, and store it in *RETP. Returns 0 on success or a negative
* value if there's not enough data. */