From: Paul Eggert <eggert@cs.ucla.edu>
To: Dmitry Antipov <dmantipov@yandex.ru>,
Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: Subsystem initialization functions in normal binary
Date: Mon, 12 Jan 2015 23:43:28 -0800 [thread overview]
Message-ID: <54B4CCA0.8030300@cs.ucla.edu> (raw)
In-Reply-To: <54B3A91C.5060404@yandex.ru>
I'm of two minds about this. On the one hand, it simplifies the C source code
and makes 'emacs' a tad smaller. On the other, it's a bit tricky and I worry
about how portable it is. Suppose, for example, GCC supports __attribute__
((section (".once"))) but 'strip' does not support -R?
Is it possible for unexelf.c to do the strip, rather than to rely on an external
'strip -R' command?
If we use the idea, it might be helpful to use '#define ATTRIBUTE_SECTION_ONCE
__attribute__ ((section (".once")))' (or '#define ATTRIBUTE_SECTION_ONCE /*
empty */' on hosts that don't support the attribute), and then use
ATTRIBUTE_SECTION_ONCE elsewhere.
next prev parent reply other threads:[~2015-01-13 7:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-12 10:59 Subsystem initialization functions in normal binary Dmitry Antipov
2015-01-13 7:43 ` Paul Eggert [this message]
2015-01-13 10:51 ` Dmitry Antipov
2015-01-13 8:34 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54B4CCA0.8030300@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=dmantipov@yandex.ru \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).