diff options
author | Ian Moffett <ian@osmora.org> | 2025-06-24 14:24:47 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-06-24 14:24:47 -0400 |
commit | 0a00f1f00f13f61c54929d54a71e046860d95d2a (patch) | |
tree | 5d5d1052685a88a7e145af32440d705753e862d4 /usr.bin/elfdump/elfdump.c | |
parent | ea0b7b8947f30fdd8f144873a5a0672ef3aa7f80 (diff) |
usr.bin: elfdump: Fix argument order
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/elfdump/elfdump.c')
-rw-r--r-- | usr.bin/elfdump/elfdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/elfdump/elfdump.c b/usr.bin/elfdump/elfdump.c index d4a0932..335cdec 100644 --- a/usr.bin/elfdump/elfdump.c +++ b/usr.bin/elfdump/elfdump.c @@ -89,7 +89,7 @@ parse_phdrs(const Elf64_Ehdr *eh, int fd) Elf64_Phdr phdr; const char *type = "Unknown"; - lseek(fd, SEEK_SET, eh->e_phoff); + lseek(fd, eh->e_phoff, SEEK_SET); printf("-- PHDRS BEGIN --\n"); for (size_t i = 0; i < eh->e_phnum; ++i) { if (read(fd, &phdr, eh->e_phentsize) <= 0) { |