Re: [go-nuts] Unused unexported methods kept by DCE when using plugins

2025-02-07 Thread Ian Lance Taylor
On Fri, Feb 7, 2025 at 2:59 PM 'Pierre Gimalac' via golang-nuts wrote: > > I noticed that when importing the std "plugin" package then (some ?) > unexported methods are kept in the binary. > > Disclaimer it's something I only observed on a complex binary, I could not > make a minimal reproducibl

[go-nuts] Unused unexported methods kept by DCE when using plugins

2025-02-07 Thread 'Pierre Gimalac' via golang-nuts
Hello, I noticed that when importing the std "plugin" package then (some ?) unexported methods are kept in the binary. Disclaimer it's something I only observed on a complex binary, I could not make a minimal reproducible example, so I'm probably misunderstanding something. When using `-ldflag