bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/19803] gc-sections breaks PE DLL variable export


From: martin.koegler at chello dot at
Subject: [Bug ld/19803] gc-sections breaks PE DLL variable export
Date: Wed, 16 Mar 2016 21:56:45 +0000

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]