[comp.sys.amiga] Format of libraries on disk

hatcher@INGRES.BERKELEY.EDU (Doug Merritt) (05/23/87)

I've been trying to figure out how you can look at the contents of a
library file and determine that it is indeed a library, and not a
"real" executable (they both start with magic number 0x000003f3). Can
anyone tell me, or better yet, tell me where this is documented? I just
re-read a good chunk of the RKM again today looking for this. (I know,
I know, it's good for you.)

Question two: although I have a list of info about gurus online, I was
surprised that I couldn't seem to find that documented in the RKM (or
anywhere else), either...

Hopefully both these things *are* clearly documented somewhere and I
am just suffering from a mental block in finding them.
	Thanks,
		Doug Merritt		ucbvax!ingres!hatcher

hamilton@uxc.cso.uiuc.edu (05/24/87)

hatcher@INGRES asks:
> I've been trying to figure out how you can look at the contents of a
> library file and determine that it is indeed a library, and not a
> "real" executable (they both start with magic number 0x000003f3).

    well, if the first thing in the first hunk looks like:

	MOVEQ	#0,D0
	RTS

it's a good bet you've got a library, not a program.  another thing
to look for is the magic number $4AFC, an illegal opcode that is used
to flag the presence of a Resident structure.

> Question two: although I have a list of info about gurus online, I was
> surprised that I couldn't seem to find that documented in the RKM (or
> anywhere else), either...

    your info probably came from the include file exec/alerts.[ih].

	wayne hamilton
	U of Il and US Army Corps of Engineers CERL
UUCP:	{ihnp4,seismo,pur-ee,convex}!uiucuxc!hamilton
ARPA:	hamilton@uxc.cso.uiuc.edu	USMail:	Box 476, Urbana, IL 61801
CSNET:	hamilton%uxc@uiuc.csnet		Phone:	(217)333-8703
CIS:    [73047,544]			PLink:  w hamilton