This commit adds SHF_ALLOC and SHF_EXECINSTR section flags to
.text.__cxa_end_cleanup section. This fixes a link error when we are
using integrated-as and ld.gold (with -Wl,--gc-sections and
- There might be some issue with LLVM integrated-as, so that there is no default section flags for text sections. (This will be fixed in an independent commit.)
- ld.gold will skip the external symbols in the section without SHF_ALLOC. This is the reason why .text.cxa_end_cleanup_impl section is discarded even though it is referenced by cxa_end_cleanup().
This commit workaround the problem by specifying the section flag