[PATCH] D35487: [ELF] - Represent .init_array/.fini_array via synthetic sections.

Orivej Desh via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 17 09:27:28 PDT 2017


orivej added a comment.

> Idea is next: we can do the same for .ctors/.dtors in another patch.
>  Synthetic section for .ctors/.dtors should know how to change sorting rules on fly depending on output section name.

Do this allow for .ctors and .init_array to be intermixed in the output section? E.g. `.ctors.1`, `.ctors.3`, and `.init_array.2` contents should be concatenated as `reverse(.ctors.1) + .init_array.2 + reverse(.ctors.3)`.


https://reviews.llvm.org/D35487





More information about the llvm-commits mailing list