From owner-freebsd-hackers Wed Jan 20 01:16:14 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA29803 for freebsd-hackers-outgoing; Wed, 20 Jan 1999 01:16:14 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from zippy.dyn.ml.org (kenya-175.ppp.hooked.net [206.169.227.175]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA29798 for ; Wed, 20 Jan 1999 01:16:12 -0800 (PST) (envelope-from garbanzo@hooked.net) Received: from localhost (garbanzo@zippy.dyn.ml.org [127.0.0.1]) by zippy.dyn.ml.org (8.9.1/8.8.8) with ESMTP id BAA08612; Wed, 20 Jan 1999 01:19:22 -0800 (PST) (envelope-from garbanzo@hooked.net) Date: Wed, 20 Jan 1999 01:19:21 -0800 (PST) From: Alex Zepeda X-Sender: garbanzo@zippy.dyn.ml.org To: "Jason K. Fritcher" cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Symbol mappings in loadable objects. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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