_ctype_ alias and versioned symbols

Shaun Jackman sjackman@gmail.com
Wed Apr 6 22:47:00 GMT 2005

On Apr 5, 2005 11:18 AM, Shaun Jackman <sjackman@gmail.com> wrote:
> /usr/bin/ld: warning: type and size of dynamic symbol
> `_ctype_@@VERS_1.10' are not defined

I did a bit of digging and found that _ctype_ is a rather unusual
symbol. Its definition uses an alias to calculate an address form
another symbol:

	extern _CONST char _ctype_[1 + 256] __attribute__ ((alias ("_ctype_b+127")));

I didn't even know you could do this, so I've learned an interesting
trick today! In any case, it does seem to be confusing the versioned
symbol linker. Could this result be accomplished some other way?

On the topic of versioned symbols though, what are they being used for
in newlib? Although the symbol_version macro is defined, I can't see
that it's used anywhere. Could life be made simpler by removing the


More information about the Newlib mailing list