alexshap added a comment. I'm wondering if you can use llvm-objcopy --remove-section for these purposes ? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D104164/new/ https://reviews.llvm.org/D104164