[PATCH] D35509: Covnert .[cd]tors to .{init, fini}_array using synthetic section.

Mark Kettenis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 25 01:30:06 PDT 2017


kettenis added a comment.

I added support for .init_array and .fini_array to OpenBSD's ld.so almost a year ago. It hasn't been extensively tested on architectures other than arm64, but there is no reason why it shouldn't work on other architectures. We don't really have any ABI concerns.

However, .init_array and .fini_array don't work (yet) for static binaries.  I don't think that's a major issue.


https://reviews.llvm.org/D35509





More information about the llvm-commits mailing list