Golang Internals TODO -- source

Back to Languages/go

Linkers and Go object file

An object file is created when a program is compiled: the go compiler is writen in go, and it creates a go object. This object has a Syms array (array of goobj.Sym structs):

  SymID: goobj.SymID{Name:"main.main", Version:0},
  Kind:  1,
  // ...


Reloc array in the Sym struct consists of the following structs