File tree 1 file changed +10
-4
lines changed 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -148,12 +148,18 @@ func (ctxt *Link) MaxVersion() int {
148
148
}
149
149
150
150
// generatorFunc is a convenience type.
151
- // Linker created symbols that are large, and shouldn't really live in the
152
- // heap can define a generator function, and their bytes can be generated
151
+ // Some linker- created Symbols are large and shouldn't really live in the heap.
152
+ // Such Symbols can define a generator function. Their bytes can be generated
153
153
// directly in the output mmap.
154
154
//
155
- // Generator symbols shouldn't grow the symbol size, and might be called in
156
- // parallel in the future.
155
+ // Relocations are applied prior to emitting generator Symbol contents.
156
+ // Generator Symbols that require relocations can be written in two passes.
157
+ // The first pass, at Symbol creation time, adds only relocations.
158
+ // The second pass, at content generation time, adds the rest.
159
+ // See generateFunctab for an example.
160
+ //
161
+ // Generator functions shouldn't grow the Symbol size.
162
+ // Generator functions must be safe for concurrent use.
157
163
//
158
164
// Generator Symbols have their Data set to the mmapped area when the
159
165
// generator is called.
You can’t perform that action at this time.
0 commit comments