[go-nuts] Re: Creating shared-libraries which override existing system functions?

2017-05-09 Thread tonywalker . uk
Looks like the first link didn't work. Should link to here . -- You received this message because you are subscribed to the Google Groups "golang-nuts" group

[go-nuts] Re: Creating shared-libraries which override existing system functions?

2017-05-09 Thread Donovan
make the return type in your go program C.int and it'll compile. then using LD_PRELOAD against the so should work. On Monday, May 8, 2017 at 5:44:09 PM UTC-4, Tony Walker wrote: > > Hi All, > > I'd like to experiment writing a shared library that will override system > functions via LD_LIBRARY_P

[go-nuts] Re: Creating shared-libraries which override existing system functions?

2017-05-10 Thread tonywalker . uk
Excellent - thanks Donovan. Alas I've since discovered that since the program I want to preload is compiled using Go - it doesn't use libc and LD_PRELOAD won't work with it. But - a useful lesson either way. Cheers. -- You received this message because you are subscribed to the Google Groups "