summaryrefslogtreecommitdiff
path: root/usr.bin/elfdump
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-06-24 14:24:47 -0400
committerIan Moffett <ian@osmora.org>2025-06-24 14:24:47 -0400
commit0a00f1f00f13f61c54929d54a71e046860d95d2a (patch)
tree5d5d1052685a88a7e145af32440d705753e862d4 /usr.bin/elfdump
parentea0b7b8947f30fdd8f144873a5a0672ef3aa7f80 (diff)
usr.bin: elfdump: Fix argument order
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/elfdump')
-rw-r--r--usr.bin/elfdump/elfdump.c2
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) {