On Tue, Sep 28, 2021 at 02:44:50PM +0000, Emmanuel Dreyfus wrote: > objcopy -x removes static functions. No, it should only remove the label. The constructor and destructor should be referenced either from the .ctor/.dtor section or from .init_array/.fini_array sections. Joerg