Can you explain this shared lib anomaly? (3B1)

Thad P Floryan thad at cup.portal.com
Mon Dec 31 15:59:47 AEST 1990


Can anyone explain the meaning of "-F (0413 demand paged) " as shown for the
example of "coff3" below?  One thing I've noticed is the latest release of
CTIX identifies all shlib-linked executables that way, but there's only ONE
way to do this on the UNIXPC (per my example of "coff3" below).

Something is obviously different; all 4 executables work; one of them is marked
with the "something new and completely different" ``-F (0413 demand paged)''

Anyone have any ideas?

Thad Floryan [ thad at cup.portal.com (OR) ..!sun!portal!cup.portal.com!thad ]

-------------------- begin included material

$ cat Makefile
CC	=	gcc
CFLAGS	=	-O
LDFLAGS	=	-s
LIBS	=	/lib/crt0s.o /lib/shlib.ifile

doit	:
		gcc $(CFLAGS) $(LDFLAGS) -shlib coff1.c -o coff1
		gcc $(CFLAGS) $(LDFLAGS) coff2.c -o coff2 -shlib
		$(CC) $(CFLAGS)  -c coff3.c
		$(LD) $(LDFLAGS) -o coff3 coff3.o $(LIBS)
		$(CC) $(CFLAGS)  -c coff4.c
		$(LD) $(LDFLAGS) -o coff4 $(LIBS) coff4.o
		rm -f *.o
		ls -il coff1 coff2 coff3 coff4
		file   coff1 coff2 coff3 coff4
		size   coff1 coff2 coff3 coff4
$ ls -il
total 45
 6268 -rw-r--r--  1 thad    users       440 Dec 30 20:41 Makefile
 6269 -rw-r--r--  4 thad    users      5258 Dec 30 20:29 coff1.c
 6269 -rw-r--r--  4 thad    users      5258 Dec 30 20:29 coff2.c
 6269 -rw-r--r--  4 thad    users      5258 Dec 30 20:29 coff3.c
 6269 -rw-r--r--  4 thad    users      5258 Dec 30 20:29 coff4.c
$ make
	gcc -O -s -shlib coff1.c -o coff1
	gcc -O -s coff2.c -o coff2 -shlib
	gcc -O  -c coff3.c
	ld -s -o coff3 coff3.o /lib/crt0s.o /lib/shlib.ifile
	gcc -O  -c coff4.c
	ld -s -o coff4 /lib/crt0s.o /lib/shlib.ifile coff4.o
	rm -f *.o
	ls -il coff1 coff2 coff3 coff4
 6317 -rwxr-xr-x  1 thad    users      3116 Dec 30 20:46 coff1
 6314 -rwxr-xr-x  1 thad    users      3116 Dec 30 20:46 coff2
 6305 -rwxr-xr-x  1 thad    users      3116 Dec 30 20:47 coff3
 4755 -rwxr-xr-x  1 thad    users      3116 Dec 30 20:47 coff4
	file   coff1 coff2 coff3 coff4
coff1:		mc68k executable (shared demand paged with shared library) 
coff2:		mc68k executable (shared demand paged with shared library) 
coff3:		mc68k executable (shared demand paged with shared library) \
-F (0413 demand paged) 
coff4:		mc68k executable (shared demand paged with shared library) 
	size   coff1 coff2 coff3 coff4
coff1: 1476(.text) + 44(.data) + 0(.bss) + 0(.lib) = 1520
coff2: 1476(.text) + 44(.data) + 0(.bss) + 0(.lib) = 1520
coff3: 1476(.text) + 44(.data) + 0(.bss) + 0(.lib) = 1520
coff4: 1476(.text) + 44(.data) + 0(.bss) + 0(.lib) = 1520

-------------------- end included material



More information about the Comp.sys.att mailing list