diff options
| author | Roland McGrath <[email protected]> | 2010-01-07 19:41:04 -0800 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2010-01-07 19:43:42 -0800 |
| commit | 6fd3cd104adf4107aa64e1c1e84028b4ea0b3296 (patch) | |
| tree | 6d42f1017e802ccf94abbe5af598eec8b2600166 /libelf/libelf.h | |
| parent | 7452e1953a4a4e70af3fb472e609e89776031e53 (diff) | |
Add elf_getphdrnum, support >65536 phdrs.
Diffstat (limited to 'libelf/libelf.h')
| -rw-r--r-- | libelf/libelf.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libelf/libelf.h b/libelf/libelf.h index 16c7a7a2..b0b3a8d7 100644 --- a/libelf/libelf.h +++ b/libelf/libelf.h @@ -1,5 +1,5 @@ /* Interface for libelf. - Copyright (C) 1998-2000, 2002, 2004-2007, 2009 Red Hat, Inc. + Copyright (C) 1998-2010 Red Hat, Inc. This file is part of Red Hat elfutils. Red Hat elfutils is free software; you can redistribute it and/or modify @@ -220,6 +220,12 @@ extern Elf32_Ehdr *elf32_newehdr (Elf *__elf); /* Similar but this time the binary calls is ELFCLASS64. */ extern Elf64_Ehdr *elf64_newehdr (Elf *__elf); +/* Get the number of program headers in the ELF file. If the file uses + more headers than can be represented in the e_phnum field of the ELF + header the information from the sh_info field in the zeroth section + header is used. */ +extern int elf_getphdrnum (Elf *__elf, size_t *__dst); + /* Retrieve class-dependent program header table. */ extern Elf32_Phdr *elf32_getphdr (Elf *__elf); /* Similar but this time the binary calls is ELFCLASS64. */ |
