[PATCH] generate .init_array instead of .ctors sections for AArch64 ELF targets

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Jan 9 08:24:55 PST 2014


So .init_array should be used on BSDs only for aarch64?

In any case, please refactor the clang code so that we don't add
-fuse-init-array in two places (Generic_GCC::addClangTargetOptions and
Linux::addClangTargetOptions.

On 9 January 2014 10:28, Kristof Beyls <kristof.beyls at arm.com> wrote:
> Hi,
>
>
>
> The AArch64 C++ ABI states that .init_array sections should be used for
> static constructors.
>
> The attached patches (one for clang, one for LLVM), make sure that these
> sections get
> produced in an ABI-compliant way, not just for linux platforms, but for all
> ELF-based
> platforms. Could I get a review on these patches?
>
>
>
> Thanks,
>
>
>
> Kristof
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>



More information about the cfe-commits mailing list