Subject: port-i386/374: minimum shared executable size too large at 12kb
To: None <gnats-admin>
From: Bill Sommerfeld <sommerfeld@orchard.medford.ma.us>
List: netbsd-bugs
Date: 07/31/1994 12:35:05
>Number:         374
>Category:       port-i386
>Synopsis:       minimum shared executable size too large at 12kb
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 31 12:35:03 1994
>Originator:     Bill Sommerfeld
>Organization:
	None
>Release:        
>Environment:
System: NetBSD orchard.medford.ma.us 1.0-ALPHA NetBSD 1.0-ALPHA (ORCHARD) #4: Fri Jul 22 10:36:08 EDT 1994 root@orchard.medford.ma.us:/u1/nsys/sys/arch/i386/compile/ORCHARD i386


>Description:
	[as requested by jtc, this is a resubmission of my earlier report]
	The minimum size of shared executables, at 12kb, strikes me as
	being too large.
>How-To-Repeat:
	$ cat >foo.c <<EOF
	main() {printf("Hello, world\n");}
	EOF
	$ cc -o foo foo.c
	$ size foo
	text	data	bss	dec	hex
	8192	4096	0	12288	3000
>Fix:
	Here's one which worked for me:
	Try either a) turning libgcc into a shared library, or b) putting
	the modules of libgcc into libc.  Option (a) made the
	difference between 4k and 8k of text in the above program.

	I'm sure there may be other possibilities as well..
>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------