Bug 9893 – [ELF] export should affect symbol visibility

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2013-04-06T18:38:20Z
Last change time
2024-12-13T18:05:52Z
Keywords
dll
Assigned to
No Owner
Creator
Martin Nowak
Moved to GitHub: dmd#18557 →

Comments

Comment #0 by code — 2013-04-06T18:38:20Z
There are a number of good reasons to switch to explicit export, i.e. normal symbols use hidden visibility and exported symbols use default visibility. - Windows compatibility - less performance impact for PIC as only exported symbols require an indirection - faster symbol lookup reduces the load time - more possibilities for link time optimizations - inlining visible functions breaks interposition For a more detailed reading see http://gcc.gnu.org/wiki/Visibility http://www.akkadia.org/drepper/dsohowto.pdf NB: As of now libphobos2.so exports 14100 symbols and 87139 with unittests compiled in.
Comment #1 by robert.schadek — 2024-12-13T18:05:52Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18557 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB