This is the mail archive of the mailing list for the glibc 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: libc_hidden_proto breaks things for PowerPC64

Andreas Jaeger wrote:

> Yes, please change libc-symbols to get a libc_hidden_def that works
> for you.

The problem is that a single libc_hidden_def (etc.) macro can not be
written to handle both cases.

How would the macro know (at cpp time) if the symbol is a function (which
requires the extra DOT_SYMBOLS) or is static variable (which does need the
extra DOT_SYMBOLS)? I can make libc-symbols.h (and contained macros) do one
(extra DOT_SYMBOLS) or the other, but not both.

The macro processor does not know the intended type (function or data) of
the symbol. But the generated assembler must have DOTed (the actual
function entry) and nonDOTed (the function descriptor or odp entry) symbols

The only alternative that I see is to have two macros each (i.e
libc_hidden_def and libc_hidden_data_def). For most platforms they would
have the same definition, but for PowerPC64 (AIX???) they would have
slightly different definitions ... (with and without the extra DOTed

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