evgeny777 added a comment. I don't know why this type check was added, but it prevents from joining .init_array with any other section by linker script. If Rafael doesn't mind removing it I'm ok with that as well. Repository: rL LLVM https://reviews.llvm.org/D28761