func (Linker) UpdateNearBranches(text []byte, originAddrs []int32) {
	labelAddr := int32(len(text))
	for _, originAddr := range originAddrs {
		updateAddr8(text, originAddr, labelAddr-originAddr)
	}
}
UpdateNearBranches modifies 8-bit relocations of JMP and Jcc instructions.
package x86
import (
	"encoding/binary"
	"gate.computer/wag/internal/gen/atomic"
	"gate.computer/wag/internal/gen/link"
	"gate.computer/wag/internal/obj"
)
var linker Linker
type Linker struct{}
func (Linker) UpdateNearLoad(text []byte, insnAddr int32) {
	accessAddr := int32(len(text))
	updateAddr32(text, insnAddr, accessAddr)
}
func (Linker) UpdateNearBranch(text []byte, originAddr int32) {
	labelAddr := int32(len(text))
	updateAddr8(text, originAddr, labelAddr-originAddr)
}