Commit b1354b8
committed
c++, contracts, Darwin: Fix local symbols for linker.
Darwin partitions objects into 'atoms' based on linker-visible
symbols. If these are not present, and weak and non-weak sections
overlap we get spurious warnings. We need the contract violation
constants and the source locations to be visible.
In addition, this fixes those symbols such that we do not
unconditionally emit periods into the names (some assemblers do
not accept this).
TODO: fix other cases at some stage.
Signed-off-by: Iain Sandoe <[email protected]>1 parent 5128291 commit b1354b8
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
996 | 996 | | |
997 | 997 | | |
998 | 998 | | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
999 | 1003 | | |
1000 | 1004 | | |
1001 | 1005 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1999 | 1999 | | |
2000 | 2000 | | |
2001 | 2001 | | |
2002 | | - | |
| 2002 | + | |
2003 | 2003 | | |
2004 | 2004 | | |
2005 | 2005 | | |
| |||
2255 | 2255 | | |
2256 | 2256 | | |
2257 | 2257 | | |
2258 | | - | |
| 2258 | + | |
2259 | 2259 | | |
2260 | 2260 | | |
2261 | 2261 | | |
| |||
0 commit comments