Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libsa Elf64_Phdr::p_offset is 64 bits, not 32



details:   https://anonhg.NetBSD.org/src/rev/026bf00bc8f4
branches:  trunk
changeset: 954921:026bf00bc8f4
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Sep 13 13:31:36 2020 +0000

description:
Elf64_Phdr::p_offset is 64 bits, not 32

diffstat:

 sys/lib/libsa/loadfile_elf32.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r fcbfdd7ce404 -r 026bf00bc8f4 sys/lib/libsa/loadfile_elf32.c
--- a/sys/lib/libsa/loadfile_elf32.c    Sun Sep 13 13:25:07 2020 +0000
+++ b/sys/lib/libsa/loadfile_elf32.c    Sun Sep 13 13:31:36 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: loadfile_elf32.c,v 1.58 2020/09/13 11:09:01 jmcneill Exp $ */
+/* $NetBSD: loadfile_elf32.c,v 1.59 2020/09/13 13:31:36 jmcneill Exp $ */
 
 /*
  * Copyright (c) 1997, 2008, 2017 The NetBSD Foundation, Inc.
@@ -174,7 +174,7 @@
        I32(phdr->p_align);
 #elif ELFSIZE == 64
        I32(phdr->p_type);
-       I32(phdr->p_offset);
+       I64(phdr->p_offset);
        I64(phdr->p_vaddr);
        I64(phdr->p_paddr);
        I64(phdr->p_filesz);



Home | Main Index | Thread Index | Old Index