Re: objcopy -x removes static __attribute__((destructor)) function
Joerg Sonnenberger <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.toolchain |
|---|---|
| Message-ID | <[email protected]> |
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