llvm-project
ff599bba - [Hexagon] Enable init-array by default for picolibc (#208639)

Commit
6 days ago
[Hexagon] Enable init-array by default for picolibc (#208639) Picolibc uses the modern .init_array/.fini_array mechanism rather than legacy .init/.fini sections. Extend UseInitArrayDefault in HexagonToolChain::addClangTargetOptions to also return true when --cstdlib=picolibc is selected, preventing -fno-use-init-array from being passed to cc1. Signed-off-by: Kushal Pal <kushpal@qti.qualcomm.com>
Author
Parents
Loading