Some fixed to a few libc wrapped functions so bash can run (a copy is in tests folder)

This commit is contained in:
ptitSeb 2022-07-15 10:20:45 +02:00
parent 45d2ac757e
commit c1eb7cbfa8
4 changed files with 6 additions and 2 deletions

View File

@ -2822,8 +2822,10 @@ wrappedlibc:
- iFpp:
- execvp
- lstat
- lstat64
- scanf
- stat
- stat64
- iFpV:
- execl
- execle

View File

@ -126,8 +126,10 @@ typedef int32_t (*iFpLiLppp_t)(void*, uintptr_t, int32_t, uintptr_t, void*, void
GO(fstat, iFip_t) \
GO(execvp, iFpp_t) \
GO(lstat, iFpp_t) \
GO(lstat64, iFpp_t) \
GO(scanf, iFpp_t) \
GO(stat, iFpp_t) \
GO(stat64, iFpp_t) \
GO(execl, iFpV_t) \
GO(execle, iFpV_t) \
GO(execlp, iFpV_t) \

View File

@ -1637,8 +1637,8 @@ GO2(sscanf, iFppV, vsscanf) // sscanf va_list is only pointer, no realign to
// ssignal // Weak
// sstk
GOM(__stack_chk_fail, vFEv) //%%
GOM(lstat64, iFpp) //%%,noE
GOM(stat64, iFpp) //%%,noE
GOM(lstat64, iFEpp)
GOM(stat64, iFEpp)
GOW(statfs, iFpp)
// __statfs
GOWM(statfs64, iFpp) //%%,noE

BIN
tests/bash Executable file

Binary file not shown.