Date: Wed, 20 Jan 1999 16:15:52 -0800 (PST) From: John Polstra <jdp@polstra.com> To: jkf@calweb.com Cc: hackers@FreeBSD.ORG Subject: Re: Symbol mappings in loadable objects. Message-ID: <199901210015.QAA05959@vashon.polstra.com> In-Reply-To: <013301be44ab$9c366720$3387adcf@devnull.calweb.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <013301be44ab$9c366720$3387adcf@devnull.calweb.com>, Jason K. Fritcher <jkf@calweb.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901210015.QAA05959>