From owner-freebsd-hackers Wed Jan 20 11:32:36 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA07613 for freebsd-hackers-outgoing; Wed, 20 Jan 1999 11:32:36 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail.calweb.com (mail.calweb.com [208.131.56.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA07606 for ; Wed, 20 Jan 1999 11:32:33 -0800 (PST) (envelope-from jkf@calweb.com) Received: by mail.calweb.com (8.8.6/8.8.6) with SMTP id LAA26051; Wed, 20 Jan 1999 11:32:25 -0800 (PST) X-SMTP: helo devnull from jkf@calweb.com server @devnull.calweb.com ip 207.173.135.51 Message-ID: <013301be44ab$9c366720$3387adcf@devnull.calweb.com> From: "Jason K. Fritcher" To: Cc: Subject: Re: Symbol mappings in loadable objects. Date: Wed, 20 Jan 1999 11:32:21 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I just realized, I hit reply, instead of reply all, to the original response, so here is a copy to the list. >On Tue, 19 Jan 1999, Jason K. Fritcher wrote: >You didn't say whether you were using an ELF or an a.out box, but judging I am developing on a 3.0-release box that I upgraded to -current at the beginning of December. >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 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? Thanx for the help. :) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message