Bug 24536 – C runtime constructor/destructor pragma should not be on an exported symbol

Status
NEW
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2024-05-04T06:20:50Z
Last change time
2024-12-13T19:35:04Z
Assigned to
No Owner
Creator
Richard (Rikki) Andrew Cattermole
Moved to GitHub: dmd#20450 →

Comments

Comment #0 by alphaglosined — 2024-05-04T06:20:50Z
So apparently the C runtime constructor/destructors should not be exported. This article covers Linux shared libraries and mentions them. https://www.akkadia.org/drepper/dsohowto.pdf It would be good to verify if this is indeed true and ensure the compiler prevents it.
Comment #1 by alphaglosined — 2024-05-04T07:06:04Z
Another confirmation that it is not required for Linux https://stackoverflow.com/a/32701238
Comment #2 by robert.schadek — 2024-12-13T19:35:04Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20450 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB