ld for VMS?

Tristan Gingold gingold@adacore.com
Mon May 3 09:32:00 GMT 2010


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.



More information about the Binutils mailing list