From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: emacs-dynamic-module in Emacs Git? Date: Tue, 02 Dec 2014 20:09:43 +0200 Message-ID: <83r3wh6hzs.fsf@gnu.org> References: <87wq6tu5m5.fsf@kima.orebokech.com> <85h9xwhpy9.fsf@stephe-leake.org> <87k32sh50f.fsf@lifelogs.com> <85tx1rg64e.fsf_-_@stephe-leake.org> <87siha7r3b.fsf@lifelogs.com> <87lhmz4mtj.fsf@lifelogs.com> <87sih575rc.fsf@lifelogs.com> <8361dyaqf1.fsf@gnu.org> <83zjb771px.fsf@gnu.org> <851tojm0z6.fsf@stephe-leake.org> <838uiq7m8b.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1417543807 32644 80.91.229.3 (2 Dec 2014 18:10:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2014 18:10:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: Steinar Bang Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 02 19:10:00 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xvrtf-0005TA-Bx for ged-emacs-devel@m.gmane.org; Tue, 02 Dec 2014 19:09:59 +0100 Original-Received: from localhost ([::1]:38145 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xvrte-0007WQ-TJ for ged-emacs-devel@m.gmane.org; Tue, 02 Dec 2014 13:09:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvrtW-0007Rc-HK for emacs-devel@gnu.org; Tue, 02 Dec 2014 13:09:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvrtI-0004j1-3X for emacs-devel@gnu.org; Tue, 02 Dec 2014 13:09:50 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:43061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvrtH-0004iK-Rl for emacs-devel@gnu.org; Tue, 02 Dec 2014 13:09:36 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NFY00A00VQR1W00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Tue, 02 Dec 2014 20:09:34 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NFY0099ZVRYM970@a-mtaout20.012.net.il>; Tue, 02 Dec 2014 20:09:34 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:178702 Archived-At: > From: Steinar Bang > Date: Tue, 02 Dec 2014 18:58:56 +0100 > > >>>>> Eli Zaretskii : > > > Or ask yourself why the latest GCC and Binutils default to not export > > anything, contrary to what they did in older versions. > > Is this through for ELF as well? I have a very limited knowledge and experience about ELF, but here's what the ld manual says in a section that is not specific to MS-Windows: `-E' `--export-dynamic' When creating a dynamically linked executable, add all symbols to the dynamic symbol table. The dynamic symbol table is the set of symbols which are visible from dynamic objects at run time. If you do not use this option, the dynamic symbol table will normally contain only those symbols which are referenced by some dynamic object mentioned in the link. If you use `dlopen' to load a dynamic object which needs to refer back to the symbols defined by the program, rather than some other dynamic object, then you will probably need to use this option when linking the program itself. This does sound a general feature.