tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: objcopy -x removes static __attribute__((destructor)) function



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


Home | Main Index | Thread Index | Old Index