[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.
- [Bug ld/19803] New: gc-sections breaks PE DLL variable export, martin.koegler at chello dot at, 2016/03/10
- [Bug ld/19803] gc-sections breaks PE DLL variable export, nickc at redhat dot com, 2016/03/10
- [Bug ld/19803] gc-sections breaks PE DLL variable export, martin.koegler at chello dot at, 2016/03/12
- [Bug ld/19803] gc-sections breaks PE DLL variable export, nickc at redhat dot com, 2016/03/15
- [Bug ld/19803] gc-sections breaks PE DLL variable export, martin.koegler at chello dot at, 2016/03/15
- [Bug ld/19803] gc-sections breaks PE DLL variable export, nickc at redhat dot com, 2016/03/16
- [Bug ld/19803] gc-sections breaks PE DLL variable export,
martin.koegler at chello dot at <=
- [Bug ld/19803] gc-sections breaks PE DLL variable export, nickc at redhat dot com, 2016/03/17
- [Bug ld/19803] gc-sections breaks PE DLL variable export, martin.koegler at chello dot at, 2016/03/17
- [Bug ld/19803] gc-sections breaks PE DLL variable export, martin.koegler at chello dot at, 2016/03/17
- [Bug ld/19803] gc-sections breaks PE DLL variable export, martin.koegler at chello dot at, 2016/03/17
- [Bug ld/19803] gc-sections breaks PE DLL variable export, nickc at redhat dot com, 2016/03/18
- [Bug ld/19803] gc-sections breaks PE DLL variable export, martin.koegler at chello dot at, 2016/03/18
- [Bug ld/19803] gc-sections breaks PE DLL variable export, martin.koegler at chello dot at, 2016/03/18
- [Bug ld/19803] gc-sections breaks PE DLL variable export, martin.koegler at chello dot at, 2016/03/21
- [Bug ld/19803] gc-sections breaks PE DLL variable export, martin.koegler at chello dot at, 2016/03/22
- [Bug ld/19803] gc-sections breaks PE DLL variable export, cvs-commit at gcc dot gnu.org, 2016/03/22