diff options
author | Roland McGrath <roland@redhat.com> | 2007-09-27 07:31:33 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2007-09-27 07:31:33 +0000 |
commit | c76f0b05676f6207affbfd85e75063db3b6eeccf (patch) | |
tree | 8ccc124a5908a03d34113a7dcdeb2abad7d71522 /libelf/gelf.h | |
parent | cb6d865011ad98a8ac2018f072f396a2268739ca (diff) |
2007-09-27 Roland McGrath <roland@redhat.com>
* alpha_retval.c: Use dwarf_attr_integrate and dwarf_hasattr_integrate.
* i386_retval.c: Likewise.
* ia64_retval.c: Likewise.
* ppc64_retval.c: Likewise.
* ppc_retval.c: Likewise.
* s390_retval.c: Likewise.
* sparc_retval.c: Likewise.
* x86_64_retval.c: Likewise.
Diffstat (limited to 'libelf/gelf.h')
-rw-r--r-- | libelf/gelf.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libelf/gelf.h b/libelf/gelf.h index b985c1c0..9f81b7e9 100644 --- a/libelf/gelf.h +++ b/libelf/gelf.h @@ -335,6 +335,14 @@ extern GElf_auxv_t *gelf_getauxv (Elf_Data *__data, int __ndx, extern int gelf_update_auxv (Elf_Data *__data, int __ndx, GElf_auxv_t *__src); +/* Get note header at the given offset into the data, and the offsets of + the note's name and descriptor data. Returns the offset of the next + note header, or 0 for an invalid offset or corrupt note header. */ +extern size_t gelf_getnote (Elf_Data *__data, size_t __offset, + GElf_Nhdr *__result, + size_t *__name_offset, size_t *__desc_offset); + + /* Retrieve uninterpreted chunk of the file contents. */ extern char *gelf_rawchunk (Elf *__elf, GElf_Off __offset, GElf_Word __size); |