GoCGo
$ cat testc.c
#include <stdio.h>
int main( void )
{
    printf("hello world \n");
    return 0;
}
$ cat testgo.go 
package main
import "fmt"
func main (){
    fmt.Println("hello world")
}
$ gcc testc.c -o testc
$ go build testgo.go
$ ls -lh testc testgo
-rwxrwxr-x 1 oo2 oo2 8.2K Sep 25 10:39 testc
-rwxrwxr-x 1 oo2 oo2 2.0M Sep 25 10:39 testgo
GoCCldd
$ ldd testc
    linux-vdso.so.1 (0x00007ffd57bcd000)
    /lib/x86_64-linux-gnu/libc-2.27.so (0x00007fdd35e03000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fdd363f6000)
$ ldd testgo
    not a dynamic executable
CGo
$ ./testc
hello world 
$ ./testgo
hello world
$ ls -lh /lib/x86_64-linux-gnu/libc.so.6
lrwxrwxrwx 1 root root 12 Jun  4 17:25 /lib/x86_64-linux-gnu/libc.so.6 -> libc-2.27.so
$ sudo rm /lib/x86_64-linux-gnu/libc.so.6
$ ./testc 
./testc: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
$ ./testgo
hello world
lnls
$ type ls
ls is aliased to `ls --color=auto'
$ ln -s /lib/x86_64-linux-gnu/libc-2.27.so /lib/x86_64-linux-gnu/libc.so.6
ln: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
$ ls
ls: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
LD_PRELOADlnsudo
$ export LD_PRELOAD="/lib/x86_64-linux-gnu/libc-2.27.so"
$ ln -s /lib/x86_64-linux-gnu/libc-2.27.so /lib/x86_64-linux-gnu/libc.so.6
ln: failed to create symbolic link '/lib/x86_64-linux-gnu/libc.so.6': Permission denied
$ sudo ln -s /lib/x86_64-linux-gnu/libc-2.27.so /lib/x86_64-linux-gnu/libc.so.6
sudo: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
root
# export LD_PRELOAD="/lib/x86_64-linux-gnu/libc-2.27.so"
# ln -s /lib/x86_64-linux-gnu/libc-2.27.so /lib/x86_64-linux-gnu/libc.so.6
sudormrootroot