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_flags is 32 bits, not 64



details:   https://anonhg.NetBSD.org/src/rev/7dd27aa01d95
branches:  trunk
changeset: 1014173:7dd27aa01d95
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Sep 13 11:09:01 2020 +0000

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

diffstat:

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

diffs (18 lines):

diff -r 468421013647 -r 7dd27aa01d95 sys/lib/libsa/loadfile_elf32.c
--- a/sys/lib/libsa/loadfile_elf32.c    Sun Sep 13 10:20:11 2020 +0000
+++ b/sys/lib/libsa/loadfile_elf32.c    Sun Sep 13 11:09:01 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: loadfile_elf32.c,v 1.57 2020/05/07 18:02:48 maxv Exp $ */
+/* $NetBSD: loadfile_elf32.c,v 1.58 2020/09/13 11:09:01 jmcneill Exp $ */
 
 /*
  * Copyright (c) 1997, 2008, 2017 The NetBSD Foundation, Inc.
@@ -179,7 +179,7 @@
        I64(phdr->p_paddr);
        I64(phdr->p_filesz);
        I64(phdr->p_memsz);
-       I64(phdr->p_flags);
+       I32(phdr->p_flags);
        I64(phdr->p_align);
 #else
 #error ELFSIZE is not 32 or 64



Home | Main Index | Thread Index | Old Index