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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.