rupprecht added a comment. Code looks good, but can you add a test for this? Adding something to test/tools/llvm-objcopy/ELF/keep-symbol.test should be fine Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D60054/new/ https://reviews.llvm.org/D60054