From owner-freebsd-hackers Wed Jan 20 16:16:02 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA08005 for freebsd-hackers-outgoing; Wed, 20 Jan 1999 16:16:02 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA07998 for ; Wed, 20 Jan 1999 16:16:00 -0800 (PST) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.1/8.9.1) with ESMTP id QAA15560; Wed, 20 Jan 1999 16:15:52 -0800 (PST) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.1/8.9.1) id QAA05959; Wed, 20 Jan 1999 16:15:52 -0800 (PST) (envelope-from jdp@polstra.com) Date: Wed, 20 Jan 1999 16:15:52 -0800 (PST) Message-Id: <199901210015.QAA05959@vashon.polstra.com> To: jkf@calweb.com Subject: Re: Symbol mappings in loadable objects. Newsgroups: polstra.freebsd.hackers In-Reply-To: <013301be44ab$9c366720$3387adcf@devnull.calweb.com> Organization: Polstra & Co., Seattle, WA Cc: hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <013301be44ab$9c366720$3387adcf@devnull.calweb.com>, Jason K. Fritcher wrote: > > > >gcc -export-dynamic -g -o blah blah.c > > That did the trick on the 3.0 box. > > Just to try it, I compiled this code without the -export-dynamic flag on a > 2.2.5 box and it works. Why is the default of 2.2.5 to export the symbols, > and in 3.0 a flag is needed? Because 2.2.5 uses the a.out object file format, while 3.0 uses ELF. They're two entirely different linkers, and they don't behave 100% identically. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Nobody ever went broke underestimating the taste of the American public." -- H. L. Mencken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message