Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!husc6!cmcl2!rutgers!cbmvax!andy
From: andy@cbmvax.UUCP (Andy Finkel)
Newsgroups: comp.sys.amiga
Subject: Re: Format of loadable object files
Message-ID: <2136@cbmvax.UUCP>
Date: Fri, 17-Jul-87 16:00:30 EDT
Article-I.D.: cbmvax.2136
Posted: Fri Jul 17 16:00:30 1987
Date-Received: Wed, 22-Jul-87 02:31:31 EDT
References: <510@myrias.UUCP>
Reply-To: andy@cbmvax.UUCP (Andy Finkel)
Organization: Commodore Technology, West Chester, PA
Lines: 24
Keywords: object files format dynamic loading

In article <510@myrias.UUCP> cg@myrias.UUCP (Chris Gray) writes:
>It seems that in order for the system (presumeably 'LoadSeg') to recognize a
>file as a valid object file, the file has to start with a hunk with a 'jmp'
>in it.

The AmigaDOS routine that the CLI is calling to execute you is doing
a JSR to what was just LoadSeg'd.  So its best to have executable
code there.  A JMP isn't required.  For example, the printer.device
individual printer modules.

Of course, you have to start your object module with a hunk_header block.
If this is missing you'll get the "File is not an object module" error
message.  Perhaps (assuming you start with executable code) that
when you put the JMP in that forces the creation of the hunk_header ?
			andy
-- 
andy finkel		{ihnp4|seismo|allegra}!cbmvax!andy 
Commodore-Amiga, Inc.

"The goal of Computer Science is to build something that will last at
least until we've finished building it."

Any expressed opinions are mine; but feel free to share.
I disclaim all responsibilities, all shapes, all sizes, all colors.