summaryrefslogtreecommitdiff
path: root/elf_info.h
diff options
context:
space:
mode:
authorHATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>2013-03-09 13:49:43 +0900
committerAtsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>2013-06-27 10:53:51 +0900
commit5c94eed79fa31225a47c6e72485b7963f9859ff5 (patch)
tree399bb878634bfa1918ae3ecb2c4fc92dcec3cfa1 /elf_info.h
parent95fe0a66791ea746fb1e4ece92f94e6434838f4f (diff)
[PATCH] Fix max offset relative to file.
To see file offset of each memory chunk, it's correct to read p_offset in the corresponing PT_LOAD entrie. On /proc/vmcore PT_LOAD entries are sorted on p_load values in increasing order. So, it's sufficient to refer to the last PT_LOAD entry only. But the code here doesn't assuming that, calculating maximum one from all the PT_LOAD entries. Signed-off-by: HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>
Diffstat (limited to 'elf_info.h')
-rw-r--r--elf_info.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/elf_info.h b/elf_info.h
index eb58023..61ab3c9 100644
--- a/elf_info.h
+++ b/elf_info.h
@@ -71,6 +71,8 @@ int has_eraseinfo(void);
void get_eraseinfo(off_t *offset, unsigned long *size);
void set_eraseinfo(off_t offset, unsigned long size);
+off_t get_max_file_offset(void);
+
#endif /* ELF_INFO_H */