http://bugs.winehq.org/show_bug.cgi?id=20314
--- Comment #2 from Austin English austinenglish@gmail.com 2009-10-12 17:36:30 --- (In reply to comment #1)
Hi Austin. My guess is that you'll have to fix it yourself, since probably very few developers use GNU/kFreeBSD at this time.
I don't think I'll have time to do so either, especially since I'm not terribly familiar with the FreeBSD kernel. I wanted to get a bug filed so it's not forgotten about. Besides, maybe someone will get bored and fix it :-).
You can look to dlls/kernel32/process.c (set_process_name) for inspiration about what the prctl's function (and BSD equivalent?) is. However, you can't just copy that code into the preloader, since the preloader may not depend on *any* userspace library, not even libc or ldso. It has to do direct kernel syscalls for anything it needs to do. Probably only someone with experience with FreeBSD would know how to add such syscalls.
Right. As time permits, I'll play around with it a bit, but don't expect anything fruitful to come out of it.
(Though perhaps it's fine to just ifdef out the whole prctl thing? Its purpose looks quite cosmetic.)
I tried that, still failed. Perhaps with a few more ifdef/elseif's it may be easy to get a working loader...