Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!cbmvax!carolyn From: carolyn@cbmvax.cbm.UUCP (Carolyn Scheppner CATS) Newsgroups: comp.sys.amiga Subject: Re: Linking. Message-ID: <1573@cbmvax.cbmvax.cbm.UUCP> Date: Wed, 18-Mar-87 18:53:40 EST Article-I.D.: cbmvax.1573 Posted: Wed Mar 18 18:53:40 1987 Date-Received: Fri, 20-Mar-87 02:59:00 EST References: <915@crash.CTS.COM> Reply-To: carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) Organization: Commodore Technology, West Chester, PA Lines: 20 In article <915@crash.CTS.COM> billk@pnet01.CTS.COM (Bill Kelly) writes: > >I need to link my program with AStartup.obj as well as some library routines. >I believe I've used the correct XREFs and XDEFs, but maybe not. I am doing an >XDEF _main so that the startup code can jump to my program, but when I >disassembled my code (after linking), although the startup code was there, it >was not getting called at all. The startup code must be the first file in your link. The system just starts executing at the beginning of your executable. So you must place the startup code first for it to be the entry point. Alink FROM Astartup.obj, yourcode.o TO yourcode LIBRARY Amiga.lb -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CBM >>Amiga Technical Support<< UUCP ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=