Bug 24708 – _d_assert_msg not weak linkage?

Status
NEW
Severity
enhancement
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-08-17T08:35:08Z
Last change time
2024-12-07T13:43:43Z
Assigned to
No Owner
Creator
Manu
Moved to GitHub: dmd#17484 →

Comments

Comment #0 by turkeyman — 2024-08-17T08:35:08Z
I tried to supply my own _d_assert_msg function to replace the druntime implementation. Program linked, but it still called the original druntime version. Not sure why I didn't get a multiple defined symbols error, but regardless, the druntime function should be marked for weak linkage so applications can supply their own implementation. This principle may apply to a lot of druntime functions...
Comment #1 by robert.schadek — 2024-12-07T13:43:43Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17484 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB