NetBSD Problem Report #425

From gnats  Sat Aug 20 17:19:33 1994
Received: from forte (forte.mathematik.uni-Bremen.de [134.102.232.1]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id RAA00489 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Sat, 20 Aug 1994 17:19:25 -0700
Message-Id: <199408201326.PAA07204@forte>
Date: Sat, 20 Aug 1994 15:26:14 +0200
From: thomas@mathematik.uni-Bremen.de
Reply-To: thomas@mathematik.uni-Bremen.de
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: making ld.so a bit smaller
X-Send-Pr-Version: 3.2

>Number:         425
>Category:       bin
>Synopsis:       making ld.so a bit smaller (needs no floating point formatting)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 20 17:20:08 +0000 1994
>Closed-Date:    Sat Aug 20 18:20:08 +0000 1994
>Last-Modified:  Wed Aug 07 20:51:01 +0000 2002
>Originator:     Thomas Eberhardt
>Release:        
>Organization:
CeVis, University of Bremen, Germany
>Environment:

System: NetBSD ed209 1.0_BETA NetBSD 1.0_BETA (ED209) #0: Sat Aug 20 03:10:19 MET DST 1994 thomas@ed209:/usr/src/sys/arch/i386/compile/ED209 i386

Machine: i386
>Description:
	ld.so is currently linked with the full vfprintf from the C library.
	Since it doesn't need the floating point formatting capabilities
	they can be removed to get 16KB (on the i386 at least) back.
>How-To-Repeat:

>Fix:
*** lib/libc/stdio/vfprintf.c-	Mon May 23 12:26:03 1994
--- lib/libc/stdio/vfprintf.c	Sat Aug 20 15:16:58 1994
***************
*** 61,67 ****
--- 61,69 ----
  #include "fvwrite.h"

  /* Define FLOATING_POINT to get floating point. */
+ #ifndef NO_FLOATING_POINT
  #define	FLOATING_POINT
+ #endif

  /*
   * Flush out all the vectors defined by the given uio,
*** gnu/usr.bin/ld/rtld/Makefile-	Sat Jan 29 11:24:56 1994
--- gnu/usr.bin/ld/rtld/Makefile	Sat Aug 20 15:17:18 1994
***************
*** 1,18 ****
  #	$Id: Makefile,v 1.8 1994/01/28 21:01:20 pk Exp $

  PROG=	ld.so
! SRCS=	mdprologue.S rtld.c malloc.c shlib.c etc.c md.c
  NOMAN=	noman
  LDDIR?= $(.CURDIR)/..
  #PICFLAG=-pic
  PICFLAG=-fpic
! CFLAGS+=-I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE_ARCH) $(PICFLAG) -DRTLD
  LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic
  ASFLAGS+=-k
  LDADD+=	-lc_pic
  BINDIR= /usr/libexec

! .PATH: $(LDDIR) $(LDDIR)/$(MACHINE_ARCH)

  $(PROG):
  	$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LDADD)
--- 1,18 ----
  #	$Id: Makefile,v 1.8 1994/01/28 21:01:20 pk Exp $

  PROG=	ld.so
! SRCS=	mdprologue.S rtld.c malloc.c shlib.c etc.c md.c vfprintf.c
  NOMAN=	noman
  LDDIR?= $(.CURDIR)/..
  #PICFLAG=-pic
  PICFLAG=-fpic
! CFLAGS+=-I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE_ARCH) $(PICFLAG) -DRTLD -DLIBC_SCCS -DNO_FLOATING_POINT
  LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic
  ASFLAGS+=-k
  LDADD+=	-lc_pic
  BINDIR= /usr/libexec

! .PATH: $(LDDIR) $(LDDIR)/$(MACHINE_ARCH) ${.CURDIR}/../../../../lib/libc/stdio

  $(PROG):
  	$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LDADD)
>Release-Note:
>Audit-Trail:
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.