← Back to index
|
Original Bugzilla link
Bug 22044 – DMD produces corrupt object files with -inline
Status
NEW
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2021-06-19T12:44:41Z
Last change time
2024-12-13T19:17:09Z
Keywords
backend
Assigned to
No Owner
Creator
Vladimir Panteleev
Moved to GitHub: dmd#19949 →
Comments
Comment #0
by dlang-bugzilla — 2021-06-19T12:44:41Z
//////////////////// bug.d /////////////////// mixin({ import std.traits : fullyQualifiedName; string s = fullyQualifiedName!Object; return ``; } ()); import std.net.curl; void[] read(string path) { return get(path); } ////////////////////////////////////////////// Command: dmd -main -inline bug.d All kinds of various errors across DMD versions, such as invalid string offset 51118083 >= 79467 for section `.strtab' and warning: allocated section `.interp' not in segment With 2.097: /usr/sbin/ld: /path/to/dmd.linux/dmd2/linux/bin64/../lib64/libphobos2.a(dmain2_a73_2f9.o):(.tdata+0x0): multiple definition of `_tlsstart'; /usr/sbin/ld: bug.o: could not read symbols: file truncated Downstream issue:
https://github.com/CyberShadow/ae/issues/51
Comment #1
by robert.schadek — 2024-12-13T19:17:09Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/19949
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB