Date: Tue, 6 May 2003 18:12:13 +0200 (CEST) From: Harti Brandt <brandt@fokus.fraunhofer.de> To: "Jacques A. Vidrine" <nectar@freebsd.org> Cc: freebsd-arch@freebsd.org Subject: Re: `Hiding' libc symbols Message-ID: <20030506180935.A631@beagle.fokus.fraunhofer.de> In-Reply-To: <20030506155128.GB77956@madman.celabo.org> References: <20030505225021.GA43345@nagual.pp.ru> <Pine.GSO.4.10.10305051855570.10283-100000@pcnet1.pcnet.com> <20030506155128.GB77956@madman.celabo.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 6 May 2003, Jacques A. Vidrine wrote: JAV>On Tue, May 06, 2003 at 09:42:04AM -0600, Ben Mesander wrote: JAV>> In addition to ports which override libc functions like printf() for JAV>> ease of porting, there are important ports, such as the Boehm garbage JAV>> collector for C/C++ or electric fence, which _depend_ upon the ability JAV>> to override libc functions such as malloc() and free(). JAV>> JAV>> Whatever decision is eventually made must allow such ports to JAV>> function. JAV>> JAV>> This has been brought up once before, but I do not see how any of the JAV>> advocates for change have addressed it. JAV> JAV>Probably because there is not much to address. I think it is JAV>universally agreed that the allocator is likely to need to be JAV>overridden. There are at least two solutions: JAV> JAV> (a) Treat malloc & company as an exception: always call them by JAV> their un-adorned name from within libc. JAV> JAV> (b) Let these specialized applications override the adorned names JAV> instead. There is probably already code within these ports to JAV> deal with underscore-prefixed names. JAV> JAV>I don't really have a preference for either solution. If you absolutely need to, use b). Treating all functions uniform reduces the number of surprises one will encounter by 1. harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fraunhofer.de, harti@freebsd.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030506180935.A631>