From owner-cvs-all Tue Sep 8 18:21:30 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA23747 for cvs-all-outgoing; Tue, 8 Sep 1998 18:21:30 -0700 (PDT) (envelope-from owner-cvs-all) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA23738; Tue, 8 Sep 1998 18:21:27 -0700 (PDT) (envelope-from jdp@FreeBSD.org) From: John Polstra Received: (from jdp@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id SAA00997; Tue, 8 Sep 1998 18:21:26 -0700 (PDT) Date: Tue, 8 Sep 1998 18:21:26 -0700 (PDT) Message-Id: <199809090121.SAA00997@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/include objformat.h Makefile src/sbin/ldconfig ldconfig.c src/lib/libc/gen getobjformat.3 getobjformat.c Makefile.inc src/sys/alpha/include param.h src/sys/i386/include param.h Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jdp 1998/09/08 18:21:26 PDT Modified files: include Makefile sbin/ldconfig ldconfig.c lib/libc/gen Makefile.inc sys/alpha/include param.h sys/i386/include param.h Added files: include objformat.h lib/libc/gen getobjformat.3 getobjformat.c Log: Add a new library function getobjformat(). It checks all the standard places ("/etc/objformat", ${OBJFORMAT}, argv) for an indication of the user's preferred object file format. This consolidates some code that was starting to be duplicated in more and more places. Use the new function in ldconfig. Note: I don't think that gcc should use getobjformat(), even though it could. The compiler should limit itself to functions that are widespread, to ease porting and cross-compilation. Revision Changes Path 1.81 +2 -2 src/include/Makefile 1.28 +15 -72 src/sbin/ldconfig/ldconfig.c 1.50 +5 -3 src/lib/libc/gen/Makefile.inc 1.7 +8 -1 src/sys/alpha/include/param.h 1.46 +12 -1 src/sys/i386/include/param.h