Aliased to undefined symbol

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

 



Hi

This is a recent change (last month?) in the semantics of alias.
We can no longer say:

---------program.c---------
int foo();
int bar () __attribute__((alias("foo")));
------------------------------

According to the documentation:

"""
This is because it's meaningless to define an alias to an undefined symbol.
On Solaris, the native assembler would have caught this error, but GNU as does not.
"""


But how is this meaningless? It used to work just fine. If the solaris native assembler
caught this "error" then it's probably a bug of the solaris native assembler. If it was an
error GNU as couldn't catch, then programs using this would crash or fail to link.


Probably this is not important since "alias" is a non-standard extension and people
who use it should be prepared for such breakage. Still, I hope it's fixed.



Stelios


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux