Gcc port: epic fail.
Err, version string looking good though! More work required me thinks.
FAIL!
Re: FAIL!
nice lol let's hope your OS knows how to free a process' memory when it crashes
-
- Member
- Posts: 2566
- Joined: Sun Jan 14, 2007 9:15 pm
- Libera.chat IRC: miselin
- Location: Sydney, Australia (I come from a land down under!)
- Contact:
Re: FAIL!
Make sure sysconf for _SC_PAGESIZE doesn't return -1
EDIT: This is because GCC assumes sysconf is implemented and doesn't check the return value. After all, there's not much that can throw an error when obtaining the system page size.
Congrats on getting it working, by the way!
EDIT: This is because GCC assumes sysconf is implemented and doesn't check the return value. After all, there's not much that can throw an error when obtaining the system page size.
Congrats on getting it working, by the way!
Re: FAIL!
You could tell it was a signed vs unsigned issue. I remember having to modify the prototype for newlib's getpagesize() to return int instead of caddr_t to get it compile.
Without even trying it I know you are absolutely on the money there. It does. Thanks!pcmattman wrote:Make sure sysconf for _SC_PAGESIZE doesn't return -1
All your base are belong to us.