hotfix: duplicated definition of symbol dlopen on go1.23.9

This commit is contained in:
naison
2025-05-09 04:23:25 +00:00
parent 1f4698c6f8
commit e21fc8cda9
48 changed files with 432 additions and 135 deletions

View File

@@ -85,7 +85,7 @@ const (
_MEMORY = 0b1111
)
func addStruct(v reflect.Value, numInts, numFloats, numStack *int, addInt, addFloat, addStack func(uintptr), keepAlive []interface{}) []interface{} {
func addStruct(v reflect.Value, numInts, numFloats, numStack *int, addInt, addFloat, addStack func(uintptr), keepAlive []any) []any {
if v.Type().Size() == 0 {
return keepAlive
}
@@ -120,7 +120,7 @@ func postMerger(t reflect.Type) (passInMemory bool) {
if t.Size() <= 2*8 {
return false
}
return true // Go does not have an SSE/SEEUP type so this is always true
return true // Go does not have an SSE/SSEUP type so this is always true
}
func tryPlaceRegister(v reflect.Value, addFloat func(uintptr), addInt func(uintptr)) (ok bool) {
@@ -258,3 +258,7 @@ func placeStack(v reflect.Value, addStack func(uintptr)) {
}
}
}
func placeRegisters(v reflect.Value, addFloat func(uintptr), addInt func(uintptr)) {
panic("purego: not needed on amd64")
}