mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 04:53:42 +00:00
54169c714f
This simplifies adding more baremetal targets, like a GameBoy Advance, or baremetal x86 for unikernels.
13 lines
345 B
Go
13 lines
345 B
Go
// +build gc.conservative
|
|
// +build baremetal
|
|
|
|
package runtime
|
|
|
|
// markGlobals marks all globals, which are reachable by definition.
|
|
//
|
|
// This implementation marks all globals conservatively and assumes it can use
|
|
// linker-defined symbols for the start and end of the .data section.
|
|
func markGlobals() {
|
|
markRoots(globalsStart, globalsEnd)
|
|
}
|