-
-
Notifications
You must be signed in to change notification settings - Fork 262
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
[uClibc][MIPS32] Segfault when cross-compiling code using variadics #2989
Comments
Cross-compiling shouldn't matter, it's just that |
Yeah, I remember testing this with an older LDC and it worked back then. I guess is a LLVM regression then? |
I was looking at this http://math-atlas.sourceforge.net/devel/assembly/mipsabi32.pdf and http://math-atlas.sourceforge.net/devel/assembly/mipsabi64.pdf and my understanding is the MIPS32 rules apply to MIPS64. Am I correct? |
Sorry, I don't have the time to look into this, but the logic is almost always the same for the 'simpler' architectures - read current value from pointer, then bump the pointer by type size + alignment padding, with alignment mostly being the |
OK, will try that later when I have access to the hardware to test. Having MIPS_Any compiles and links, just need to test this on the machine. |
Same code from MIPS64 works for MIPS32 on my HW. |
Cross compiling the following code gives a segfault when targeting MIPS32.
The compiler debug:
The text was updated successfully, but these errors were encountered: