This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld-auto-import documentation update
- From: Christopher Faylor <cgf at redhat dot com>
- To: Binutils <binutils at sources dot redhat dot com>
- Date: Sun, 22 Dec 2002 17:04:34 -0500
- Subject: Re: ld-auto-import documentation update
- References: <001301c2a9be$1fa0d6b0$c65e07d5@BRAMSCHE>
On Sun, Dec 22, 2002 at 02:29:15PM +0100, Ralf Habacker wrote:
>Charles Wilson writes:
>
>+2. Sometimes, it is useful to rename exports. For instance, the cygwin
>+kernel does this regularly: a symbol @samp{_foo} will be exported as
>+@samp{_foo}, but also as @samp{foo} by using special directives in the
>+DEF file when creating the import library. This ability is not
>+present without import libs.
>
>This isn't true. The gcc manual in
>http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Function-Attributes.html#Function%20At
>tributes says:
It's true for the way cygwin does it. We don't necessarily export the
function using the same name as the global, i.e., a function declared
'foo' may be exported as 'cygwin_foo' and we don't want 'foo' exported
at all.
Are there other ways to accomplish this by standing on our heads and
using defines? Probably? Do we want to change Cygwin to use these
other methods? No.
cgf