Re: [go-nuts] Presence of PCLN Table in CGo binaries

2022-09-18 Thread Ian Lance Taylor
On Sun, Sep 18, 2022 at 11:57 AM Ramon Rüttimann wrote: > > Mh, this is interesting. When I build a test binary with buildmode=pie, I > even get an ELF section called `.data.rel.ro.gopclntab`. > > However, in the containerd binary, this section does not exist.There also is > no `.gosymtab` secti

Re: [go-nuts] Presence of PCLN Table in CGo binaries

2022-09-18 Thread 'Ramon Rüttimann' via golang-nuts
Mh, this is interesting. When I build a test binary with buildmode=pie, I even get an ELF section called `.data.rel.ro.gopclntab`. However, in the containerd binary, this section does not exist.There also is no `.gosymtab` section, as that is easily wiped by the `ldflags`. > It is getting fo

Re: [go-nuts] Presence of PCLN Table in CGo binaries

2022-09-17 Thread Ian Lance Taylor
On Sat, Sep 17, 2022 at 2:48 PM 'Ramon Rüttimann' via golang-nuts wrote: > > Sadly this does not seem to be the case, for example the nightly artifacts > from containerd, which can be found here. > A `go version -m ` lists all deps & shows the Go version 1.19.1, but > there is now PCLN table to

Re: [go-nuts] Presence of PCLN Table in CGo binaries

2022-09-17 Thread 'Ramon Rüttimann' via golang-nuts
Sadly this does not seem to be the case, for example the nightly artifacts from containerd, which can be found here . A `go version -m ` lists all deps & shows the Go version 1.19.1, but there is now PCLN table to be f

Re: [go-nuts] Presence of PCLN Table in CGo binaries

2022-09-16 Thread Ian Lance Taylor
On Fri, Sep 16, 2022 at 12:13 PM Ramon Rüttimann wrote: > > I am currently looking into what a built Go binary may contain and have found > some confusing things around the `.gopclntab` ELF section, also known as the > PCLN table. > > At first, I assumed that the PCLN table is present in all bin

[go-nuts] Presence of PCLN Table in CGo binaries

2022-09-16 Thread Ramon Rüttimann
Hello fellow Gophers, I am currently looking into what a built Go binary may contain and have found some confusing things around the `.gopclntab` ELF section, also known as the PCLN table. At first, I assumed that the PCLN table is present in all binaries, no matter how they are built. I've do