Hi,
I wish to create a c-archive that contains only specific symbols, importing
on runtime the needed symbols.
I managed to create a `.o` file that I believe contains only my functions
using
`go tool compile -shared -dynlink main.go`
but then when I do
`go tool link -buildmode=c-archive -extld clan
Thank you.
I found that the best way (or only?) is to have an assembly function
reference a Go function, then the compiler creates a wrapper that can be
used.
On Tue, Nov 8, 2022 at 7:14 PM Ian Lance Taylor wrote:
> On Tue, Nov 8, 2022 at 7:55 AM Aviram Hassan
> wrote:
> >
> &g
Hi,
I see that some runtime functions have both `abi0` interface and
`ABIInternal`.
I was wondering what makes the compiler do so, and if I can make it do the
same for my defined functions?
A bit of a background - I'm doing a bit of a lowlevel fun, and I want to
hook Go functions using just Go c