[LLVMdev] [lld] Handling multiple -init/-fini command line options
simon at atanasyan.com
Mon Dec 8 13:33:48 PST 2014
On Tue, Dec 9, 2014 at 12:06 AM, Shankar Easwaran
<shankare at codeaurora.org> wrote:
> There is also an additional issue that needs to be handled,
> The linker decides to convert .ctors/.dtors section to .init/.fini too in
> some circumstances.
> There is also a case where we need to supported for static linking as well.
> I looked into this a bit and there is a bug which illustrates ctors/dtors
> and init_array/fini_array
I'm sorry, but I do not see how -init/-fini command line option
handling relates to this bug. Now the -init/-fini might cause creation
of .init_array/.fini_array sections. But in GNU linker AFAIK these
options affects DT_INIT/DT_FINI tags only.
More information about the llvm-dev