Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Conversation

@MartinNowak
Copy link
Member

No description provided.

@WalterBright
Copy link
Member

Auto-merge toggled on

WalterBright added a commit that referenced this pull request Sep 6, 2015
use linker generated section brackets
@WalterBright WalterBright merged commit 0df48a5 into dlang:master Sep 6, 2015
@MartinNowak MartinNowak deleted the sections branch September 6, 2015 20:51
@jpf91
Copy link
Contributor

jpf91 commented Sep 20, 2015

@MartinNowak binutils ld/gold on linux emits these symbols as well: https://sourceware.org/binutils/docs/ld/Orphan-Sections.html Unfortunately binutils does not keep these symbols hidden/local to shared libraries. Just out of curiosity, does Solaris/Android export these as hidden symbols?

@MartinNowak
Copy link
Member Author

@MartinNowak binutils ld/gold on linux emits these symbols as well:

Yes, that's what we're using here.

Unfortunately binutils does not keep these symbols hidden/local to shared libraries.

The linker uses the visibility of the reference, so they are hidden b/c we reference it like that in dmd.
https://github.com/D-Programming-Language/dmd/blob/6a062c6ca37dce06533167b074277320bc8f9ec2/src/backend/elfobj.c#L3142

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants