Skip to content

Commit 67314ec

Browse files
groeckarndb
authored andcommitted
RISC-V: Request newstat syscalls
Since commit 82b355d ("y2038: Remove newstat family from default syscall set"), riscv images fail to boot with the following error. /sbin/init: error while loading shared libraries: libc.so.6: cannot stat shared object: Error 38 Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 Explicitly request newstat syscalls to fix the problem. Fixes: 82b355d ("y2038: Remove newstat family from default syscall set") Cc: Arnd Bergmann <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 49c39f8 commit 67314ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/riscv/include/asm/unistd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* be included multiple times. See uapi/asm/syscalls.h for more info.
1717
*/
1818

19+
#define __ARCH_WANT_NEW_STAT
1920
#define __ARCH_WANT_SYS_CLONE
2021
#include <uapi/asm/unistd.h>
2122
#include <uapi/asm/syscalls.h>

0 commit comments

Comments
 (0)