From owner-freebsd-current Wed Jul 26 13:49:55 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id NAA21773 for current-outgoing; Wed, 26 Jul 1995 13:49:55 -0700 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.11/8.6.6) with SMTP id NAA21766 for ; Wed, 26 Jul 1995 13:49:51 -0700 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA23200; Wed, 26 Jul 95 14:41:37 MDT From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9507262041.AA23200@cs.weber.edu> Subject: Re: ls_length in struct linker_set To: wollman@halloran-eldar.lcs.mit.edu (Garrett Wollman) Date: Wed, 26 Jul 95 14:41:36 MDT Cc: freebsd-current@freebsd.org In-Reply-To: <9507261936.AA08840@halloran-eldar.lcs.mit.edu> from "Garrett Wollman" at Jul 26, 95 03:36:05 pm X-Mailer: ELM [version 2.4dev PL52] Sender: current-owner@freebsd.org Precedence: bulk > > While on that topic, didn't anyone notice that the PCI code is the > > only code that actually uses the linker set length field? Everything > > else looks for the NULL record at the end of the set. Does anyone > > want to clean up the PCI code to do the same, and get rid of the > > length field altogether? > > The layout of the structure is defined by GNU ld, so I would not want > to touch it since other GNUware may depend on it for correct > operation. See gnu/usr.bin/ld/ld.h, as I recall, near where it > defines N_SETT etc. I mean the PCI code change to not depend on it. 8-). The difference between static and non-static allocation of a data structure which is a list of non-NULL (caddr_t)'s terminated by a NULL (caddr_t). Non-static being the GNU ld stuff. I'd like to move away from depending on non-portable magic as much as possible. I didn't mean we should change the linker (far be it for us to have any say on how that's coded). I think our current use is abuse of a facility that was put there to support FORTRAN common blocks, actually. Terry Lambert terry@cs.weber.edu --- Any opinions in this posting are my own and not those of my present or previous employers.