Bug 17944 – MSCOFF: debug info not compatible with LLVMs LLD

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2017-10-28T13:52:00Z
Last change time
2017-12-18T22:56:16Z
Keywords
pull, symdeb
Assigned to
No Owner
Creator
Rainer Schuetze

Comments

Comment #0 by r.sagitario — 2017-10-28T13:52:00Z
Compiling any files with debug info, but linking it lld-link from the LLVM suite causes the latter to error out with ".debug$S too short". This is caused by object files in phobos64.lib containing empty .debug$S sections.
Comment #1 by r.sagitario — 2017-10-28T13:52:57Z
Comment #2 by github-bugzilla — 2017-10-31T02:01:56Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/d75aaa258f155bd98004e8658e8921b7dba8bd51 fix issue 17944: MSCOFF: do not write empty debug$S section https://github.com/dlang/dmd/commit/775fce733b705a257a905015b781cb9cd40ffca8 Merge pull request #7253 from rainers/lazy_debugS fix issue 17944: MSCOFF: do not write empty debug$S section merged-on-behalf-of: Walter Bright <[email protected]>
Comment #3 by github-bugzilla — 2017-12-18T22:56:16Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/d75aaa258f155bd98004e8658e8921b7dba8bd51 fix issue 17944: MSCOFF: do not write empty debug$S section https://github.com/dlang/dmd/commit/775fce733b705a257a905015b781cb9cd40ffca8 Merge pull request #7253 from rainers/lazy_debugS