[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subsystem initialization functions in normal binary

From: Paul Eggert
Subject: Re: Subsystem initialization functions in normal binary
Date: Mon, 12 Jan 2015 23:43:28 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]