From owner-freebsd-hackers Wed Mar 8 15:59:53 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 14C7137B66F for ; Wed, 8 Mar 2000 15:59:50 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.9.3/8.9.3) id QAA15913; Wed, 8 Mar 2000 16:30:58 -0800 (PST) Date: Wed, 8 Mar 2000 16:30:58 -0800 From: Alfred Perlstein To: Oscar Bonilla Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: inner workings of the C compiler Message-ID: <20000308163057.W14279@fw.wintelcom.net> References: <20000308150327.A77039@fisicc-ufm.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000308150327.A77039@fisicc-ufm.edu>; from obonilla@fisicc-ufm.edu on Wed, Mar 08, 2000 at 03:03:27PM -0600 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Oscar Bonilla [000308 13:37] wrote: > i'm working on the C library, and to make debuggin easy i've copied > /usr/src/lib/libc to another directory and only build libc.a. > > i've also copied /usr/src/lib/csu/i386-elf to another directory and > have enabled debug symbols on both csu and libc. > > to try things out i create a static binary and coerce it to use my > C library instead of the system's one. I'm pretty sure this can be done a hell of a lot easier by using shared libraries and using the enviornment variables LD_LIBRARY_PATH and LD_PRELOAD, see the rtld manpage for more help. good luck, -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message