Module Name: src Committed By: skrll Date: Mon Oct 21 06:43:33 UTC 2024
Modified Files: src/lib/libc/gen: nlist_private.h Log Message: risc-v: Fix nlist on ELF64 The define __riscv64 is not provided (anymore?), so use _LP64 to determine if nlist support for ELF64 should be added. This fixes a problem pointed to me by he@ riscv64# pstat -sh -N /netbsd pstat: kvm_nlist: bad namelist riscv64# in that it now doesn't fail with "bad namelist". Other problems with pstat seem to exist, however. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/lib/libc/gen/nlist_private.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/gen/nlist_private.h diff -u src/lib/libc/gen/nlist_private.h:1.26 src/lib/libc/gen/nlist_private.h:1.27 --- src/lib/libc/gen/nlist_private.h:1.26 Mon Mar 30 20:34:11 2020 +++ src/lib/libc/gen/nlist_private.h Mon Oct 21 06:43:33 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: nlist_private.h,v 1.26 2020/03/30 20:34:11 maya Exp $ */ +/* $NetBSD: nlist_private.h,v 1.27 2024/10/21 06:43:33 skrll Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou @@ -61,7 +61,7 @@ # define NLIST_ELF32 #elif defined(__riscv__) # define NLIST_ELF32 -# ifdef __riscv64 +# ifdef _LP64 # define NLIST_ELF64 # endif #elif defined(__aarch64__)