https://sourceware.org/bugzilla/show_bug.cgi?id=19803
--- Comment #6 from martin.koegler at chello dot at ---
The last patch is incorrect. In my testcase, it still exports the removed
variable in the DLL export table:
[Ordinal/Name Pointer] Table
[ 0] testval
So directly linking with the DLL produces a invalid binary.
May I ask, why you only adapt the implib generation?
If you make sure, that the export table is correct [every exported symbol is
not removed by gc-sections], shouldn't the export library generated from it be
automatically correct too?
In my option, your first patch didn't break gc-sections. The windows default is
to export all (global?) symbols from a DLL, if no specific export list is
provided via a DEF file.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils