summaryrefslogtreecommitdiff
path: root/libelf/libelf.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-08-03 00:02:56 +0000
committerUlrich Drepper <drepper@redhat.com>2005-08-03 00:02:56 +0000
commit41de488a0ad6679e816dbab960351e5f62ab8ead (patch)
treed4387847c11e48ccc8fa55ace24bcd2a595d0d84 /libelf/libelf.h
parentc911c9efe553d9af2d4fb0d420d8b614983e16ac (diff)
downloadelfutils-41de488a0ad6679e816dbab960351e5f62ab8ead.tar.gz
Add several more elflint tests:
- check whether dynamic section matches PT_DYNAMIC program header entry - make sure text relocation flag is used correctly libelf needed one extension for this.
Diffstat (limited to 'libelf/libelf.h')
-rw-r--r--libelf/libelf.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libelf/libelf.h b/libelf/libelf.h
index 5b3dc00b..05a03412 100644
--- a/libelf/libelf.h
+++ b/libelf/libelf.h
@@ -1,5 +1,5 @@
/* Interface for libelf.
- Copyright (C) 1998, 1999, 2000, 2002, 2004 Red Hat, Inc.
+ Copyright (C) 1998, 1999, 2000, 2002, 2004, 2005 Red Hat, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -199,6 +199,11 @@ extern Elf64_Phdr *elf64_newphdr (Elf *__elf, size_t __cnt);
/* Get section at INDEX. */
extern Elf_Scn *elf_getscn (Elf *__elf, size_t __index);
+/* Get section at OFFSET. */
+extern Elf_Scn *elf32_offscn (Elf *__elf, Elf32_Off __offset);
+/* Similar bug this time the binary calls is ELFCLASS64. */
+extern Elf_Scn *elf64_offscn (Elf *__elf, Elf64_Off __offset);
+
/* Get index of section. */
extern size_t elf_ndxscn (Elf_Scn *__scn);