alias symbols in object files

John Colvin john.loughran.colvin at gmail.com
Sun Apr 21 12:13:03 PDT 2013


On Sunday, 21 April 2013 at 18:54:27 UTC, John Colvin wrote:
> test.d:
>
> extern (C):
> void foo(){}
> alias foo bar;
>
> $dmd -c test.d
>
> $nm test.o
> 0000000000000000 t
> 0000000000000000 D _D11test12__ModuleInfoZ
>                  w _d_dso_registry
>                  U _Dmodule_ref
> 0000000000000000 T foo
>
>
> Surely the aliased symbol should appear in the object file, or 
> am I missing something?

Just to avoid any confusion for non-linux guys:

nm is a linux utility for listing the symbols in an object file.


More information about the Digitalmars-d mailing list