[llvm] r216905 - Replace -use-init-array with -use-ctors.

Joerg Sonnenberger joerg at britannica.bec.de
Tue Sep 2 07:22:20 PDT 2014

On Tue, Sep 02, 2014 at 01:54:54PM -0000, Rafael Espindola wrote:
> Author: rafael
> Date: Tue Sep  2 08:54:53 2014
> New Revision: 216905
> URL: http://llvm.org/viewvc/llvm-project?rev=216905&view=rev
> Log:
> Replace -use-init-array with -use-ctors.
> We have been using .init-array for most systems for quiet some time,
> but tools like llc are still defaulting to .ctors because the old
> option was never changed.
> This patch makes llc default to .init-array and changes the option to
> be -use-ctors.
> Clang is not affected by this. It has its own fancier logic.

IMO the default is wrong. The list of systems that allow .init_array at least
for ELF is quite small. IIRC Linux, DragonFly and AArch64 in general.


More information about the llvm-commits mailing list