This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #889 from MartinNowak/fix13025
fix Issue 13025 - Tools repository does not build on Ubuntu
- Loading branch information
1 parent
268332d
commit 7502b0d
Showing
3 changed files
with
26 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* This module is used to detect copy relocated ModuleInfos (located in .bss section). | ||
* | ||
* Copyright: Copyright Martin Nowak 2014-. | ||
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. | ||
* Authors: Martin Nowak | ||
* Source: $(DRUNTIMESRC src/rt/_sections_linux.d) | ||
*/ | ||
|
||
/* These symbols are defined in the linker script and bracket the | ||
* .bss, .lbss, .lrodata and .ldata sections. | ||
*/ | ||
#if __linux__ | ||
// Need to use weak linkage to workaround a bug in ld.bfd (Bugzilla 13025). | ||
extern int __attribute__((weak)) __bss_start, _end; | ||
|
||
void* rt_get_bss_start() { return (void*)&__bss_start; } | ||
void* rt_get_end() { return (void*)&_end; } | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters