summaryrefslogtreecommitdiff
path: root/kdump/kdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'kdump/kdump.c')
-rw-r--r--kdump/kdump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kdump/kdump.c b/kdump/kdump.c
index 1f5b984..8f6f2df 100644
--- a/kdump/kdump.c
+++ b/kdump/kdump.c
@@ -284,7 +284,8 @@ int main(int argc, char **argv)
}
/* Get the program header */
- phdr = map_addr(fd, sizeof(*phdr)*(ehdr->e_phnum), ehdr->e_phoff);
+ phdr = map_addr(fd, sizeof(*phdr)*(ehdr->e_phnum),
+ start_addr + ehdr->e_phoff);
/* Collect up the notes */
note_bytes = 0;