Fix external globals

This broke the allocator on ARM, and with that the blinky example.
This commit is contained in:
Ayke van Laethem
2018-09-02 18:10:01 +02:00
parent 88b6b2e7f5
commit bfff0c33e4
3 changed files with 8 additions and 2 deletions
+4
View File
@@ -220,3 +220,7 @@ func (g *Global) LinkName() string {
return g.g.RelString(nil)
}
}
func (g *Global) IsExtern() bool {
return strings.HasPrefix(g.g.Name(), "_extern_")
}