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

Commit

Permalink
Merge pull request #569 from dawgfoto/removeWeakLinkage
Browse files Browse the repository at this point in the history
remove support for weak _d_dso_registry linking
  • Loading branch information
Alex Rønne Petersen committed Aug 13, 2013
2 parents e3cb01d + 524e17a commit 8699f5c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/rt/sections_linux.d
Expand Up @@ -80,15 +80,11 @@ private:
size_t _tlsSize;
}

// drag in _d_dso_registry ref to support weak linkage
private __gshared void* _dummy_ref;

/****
* Gets called on program startup just before GC is initialized.
*/
void initSections()
{
_dummy_ref = &_d_dso_registry;
}


Expand Down Expand Up @@ -157,7 +153,6 @@ T[] toRange(T)(T* beg, T* end) { return beg[0 .. end - beg]; }
* so it gets called by the loader on startup and shutdown.
* (Note that there can be multiple modules in one object file.)
*/
package // dmain weak linkage
extern(C) void _d_dso_registry(CompilerDSOData* data)
{
// only one supported currently
Expand Down

0 comments on commit 8699f5c

Please sign in to comment.