[Issue 3956] New: linker removes underscore from all exported symbols of a module but the first
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 13 09:18:12 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3956
Summary: linker removes underscore from all exported symbols of
a module but the first
Product: D
Version: unspecified
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Optlink
AssignedTo: nobody at puremagic.com
ReportedBy: r.sagitario at gmx.de
--- Comment #0 from Rainer Schuetze <r.sagitario at gmx.de> 2010-03-13 09:18:09 PST ---
this test program:
module testexport;
export void foo1() {}
export void foo2() {}
export void foo3() {}
void main() {}
compiles, but exports in the resulting executable (not a DLL here for
simplicity) are wrong.
>dumpbin /exports testexport.exe
[...]
ordinal hint RVA name
1 0 00003014 D10testexport4foo2FZv
2 1 00003018 D10testexport4foo3FZv
3 2 00003010 _D10testexport4foo1FZv
[...]
The object file seems ok, here's a snippet from obj2asms' output:
extrn _D10testexport4foo1FZv
;expdef expflag=x00, export '_D10testexport4foo1FZv', internal '',
ordinal=x0
extrn _D10testexport4foo2FZv
;expdef expflag=x00, export '_D10testexport4foo2FZv', internal '',
ordinal=x0
extrn _D10testexport4foo3FZv
;expdef expflag=x00, export '_D10testexport4foo3FZv', internal '',
ordinal=x0
[...]
public _D10testexport12__ModuleInfoZ
_D10testexport4foo1FZv COMDAT flags=x0 attr=x0 align=x0
_D10testexport4foo2FZv COMDAT flags=x0 attr=x0 align=x0
_D10testexport4foo3FZv COMDAT flags=x0 attr=x0 align=x0
__Dmain COMDAT flags=x0 attr=x0 align=x0
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list