[Issue 24536] New: C runtime constructor/destructor pragma should not be on an exported symbol
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat May  4 06:20:50 UTC 2024
    
    
  
https://issues.dlang.org/show_bug.cgi?id=24536
          Issue ID: 24536
           Summary: C runtime constructor/destructor pragma should not be
                    on an exported symbol
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: alphaglosined at gmail.com
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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list