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

2025-02-12 Thread 'Pierre Gimalac' via golang-nuts
I stumbled on https://go-review.googlesource.com/c/go/+/393365 which explains why plugins need to keep unexported methods. Thanks for taking the time to answer my questions, have a good day ! Le mar. 11 févr. 2025 à 15:52, Ian Lance Taylor a écrit : > On Tue, Feb 11, 2025 at 1:57 AM Pierre Gim

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

2025-02-11 Thread 'Pierre Gimalac' via golang-nuts
But in that case why would that only happen for dynamic builds ? Shouldn't all unexported methods also be kept for the "normal" build ? Pierre. Le sam. 8 févr. 2025 à 01:16, Ian Lance Taylor a écrit : > On Fri, Feb 7, 2025 at 2:59 PM 'Pierre Gimalac' via golang-nuts

[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