linking issue
Ellery Newcomer via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Mon Nov 9 20:36:11 PST 2015
On Monday, 9 November 2015 at 14:45:51 UTC, David Nadlinger wrote:
>
> Did you try adding -rdynamic to the linker command line (e.g.
> using "-L-rdynamic" if you are linking with LDC)?
>
> It is required to make all the symbols be written into
> ".dynsym". Otherwise, they might just as well be removed
> entirely in our case (due to --gc-sections).
>
> — David
Hey, that does it! Or at least it would, if I could convince ldc
to position it before everything else. seems to be position
sensitive, and ldc seems to be reordering flags for me.
is there a trick to do this, or is it back to gcc for link?
More information about the digitalmars-d-ldc
mailing list