-
-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WRAPPED] Added monstartup #2241
Conversation
src/wrapped/wrappedlibc_private.h
Outdated
#ifdef STATICBUILD | ||
//GO(monstartup, iFpp) | ||
#else | ||
GO(monstartup, iFpp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The doc I found state this:
void
monstartup(u_long lowpc, u_long highpc);
and my local include file is similar.
so, signature should be vFLL
instead. Were did you found iFpp
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
int monstartup(caddr_t LowProgramCounter, caddr_t HighProgramCounter);
https://www.ibm.com/docs/zh-tw/aix/7.1?topic=m-monstartup-subroutine
And caddr_t
:
typedef char *__caddr_t;
typedef __caddr_t caddr_t;
Thanks,
Leslie Zhai
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ptitSeb you are correct:
/usr/include/loongarch64-linux-gnu/sys/gmon.h:194:extern void monstartup (unsigned long __lowpc, unsigned long __highpc) __THROW;
Thanks,
Leslie Zhai
Check this tutorial for the basics of libwrapping: https://box86.org/2024/02/how-to-create-a-wrapping/ |
And it should use
https://github.com/ptitSeb/box64/blob/main/src/elfs/elfloader.c#L713 Please point out my fault. Thanks, |
For static build, you might need to look at |
On my system, that symbol is Weak:
|
Hi @ptitSeb please wait for my local staticbuild test. Thanks, |
Thanks for pointing out my fault
|
Hi,
before:
after:
work :)
Please review my patch.
Thanks,
Leslie Zhai