On Sun, Aug 31, 2025 at 6:18 PM Alex <alex.rou...@gmail.com> wrote:
>
> both of them reports coff
> ```
> _cgo_.o:        file format coff-x86-64
> architecture: x86_64
> start address: 0x0000000000000000
> ```

The error you are getting from cgo means that pe.Open failed on the
object file generated by clang21. Try running a trivial program like
(untested)

package main

import (
    "debug/pe"
    "fmt"
    "os"
)

func main() {
    fmt.Println(pe.Open(os.Args[1]))
}


Presumably it will fail if run with the argument being an object
generated by clang21. The error message may suggest what the problem
is.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcX2YRALQwyobkcZtQyNf5c5dR%2BUHtTns5Hcihyy0rk-ng%40mail.gmail.com.

Reply via email to