This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld-auto-import documentation update


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]