This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld for VMS?
On May 3, 2010, at 11:21 AM, Jay K wrote:
>
> ok, having edited down vms-crt0.c to remove the handler/establish and compile it with cross gcc, cross gcc+ld work, I copied hello.exe to VMS system and it works!
Congrats!
> Thanks!
> Why is the handler incompatible with gcc? Ah..maybe cc treats lib$establish as a special builtin function?
Right, that's it. For DEC-C, lib$establish is an intrinsic.
> Now to try cross building bigger stuff like cvs, ld, gcc.. :)
Good luck. How do you handle the include issue ? Ie, do you have the VMS specific includes ?
> It seems editing vms-crt0.c down might introduce some small malfunction.
No, the lib$establish stuff was not necessary.
NB: for gcc specific issues, you'd better to post on gcc@gcc.gnu.org
Tristan.