[Issue 17375] colliding modules detected with binutils 2.28 linker and shared libraries

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jun 16 11:47:12 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17375

--- Comment #7 from Martin Nowak <code at dawg.eu> ---
Maybe you had a different git repo, my bisect ended at commit
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9acc85a62eb76c270724bba15c889d2d05567b6a.

We could solve this by emitting the ModuleInfos themselves (not only a pointer
to them) to their own sections and using the old section bracket trick
(__start_minfo and __stop_minfo see
https://github.com/dlang/dmd/blob/eb3bc8d8902a0b0c3b3b02058265d811ec310eb9/src/ddmd/backend/elfobj.c#L3319).

Would need 2 sections if some of them are readonly and some are relro though.

--


More information about the Digitalmars-d-bugs mailing list