Date: Wed, 20 Jan 1999 01:19:21 -0800 (PST) From: Alex Zepeda <garbanzo@hooked.net> To: "Jason K. Fritcher" <jkf@calweb.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Symbol mappings in loadable objects. Message-ID: <Pine.BSF.4.05.9901200118030.2125-100000@zippy.dyn.ml.org> In-Reply-To: <Pine.BSF.4.02A.9901192316220.16652-100000@web2.calweb.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 19 Jan 1999, Jason K. Fritcher wrote: > The commands I am using to compile the modules is: > > gcc -DPIC -fPIC -g -o mod_blah.o -c mod_blah.c > ld -shared -o mod_blah.so mod_blah.o > > And I'm compiling the main program like this: > > gcc -g -o blah blah.c You didn't say whether you were using an ELF or an a.out box, but judging by your comments, you need to add -export-dynamic to your command line so that: gcc -g -o blah blah.c turns into something like: gcc -export-dynamic -g -o blah blah.c - alex | "Contrary to popular belief, penguins are not the salvation of modern | | technology. Neither do they throw parties for the urban proletariat." | | Powered by FreeBSD http://www.freebsd.org/ | 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?Pine.BSF.4.05.9901200118030.2125-100000>