mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-09-11 15:09:32 +00:00
runtime: precisely scan globals on all platforms
This commit is contained in:
@@ -1293,6 +1293,9 @@ func makeGlobalsModule(ctx llvm.Context, globals map[string]map[string]string, m
|
||||
global := llvm.AddGlobal(mod, stringType, globalName)
|
||||
global.SetInitializer(initializer)
|
||||
global.SetAlignment(targetData.PrefTypeAlignment(stringType))
|
||||
// Keep external linkage for module resolution. Hidden visibility permits internalization.
|
||||
// See https://llvm.org/docs/LangRef.html#visibility-styles.
|
||||
global.SetVisibility(llvm.HiddenVisibility)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Vendored
+3
-3
@@ -1,4 +1,4 @@
|
||||
target package code rodata data bss
|
||||
hifive1b examples/echo 4321 323 0 2268
|
||||
microbit examples/serial 2842 382 8 2264
|
||||
wioterminal examples/pininterrupt 8039 1669 132 7496
|
||||
hifive1b examples/echo 4405 323 0 2268
|
||||
microbit examples/serial 2922 382 8 2264
|
||||
wioterminal examples/pininterrupt 8251 1717 148 7496
|
||||
|
||||
Reference in New Issue
Block a user