![]() There are two ways .llvmbc can be produced: * clang -c -fembed-bitcode=all (which also produces .llvmcmd) * LTO backend: ld.lld -mllvm -lto-embed-bitcode or -plugin-opt=-lto-embed-bitcode .llvmbc and .llvmcmd have the SHF_ALLOC flag, so they can be dropped by --gc-sections. This patch sets SectionKind::Metadata to drop the SHF_ALLOC flag. This is conceptually correct: the two sections are not part of the process image, so SHF_ALLOC is not appropriate. `test/LTO/X86/embed-bitcode.ll`: changed `llvm-objcopy -O binary --only-section` to `llvm-objcopy --dump-section`. `-O binary` does not dump non-SHF_ALLOC sections. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D86374 |
||
---|---|---|
.. | ||
Inputs | ||
attrs.ll | ||
bcsection.ll | ||
cfi_endproc.ll | ||
codemodel-1.ll | ||
codemodel-2.ll | ||
codemodel-3.ll | ||
current-section.ll | ||
diagnostic-handler-noexit.ll | ||
diagnostic-handler-remarks-with-hotness.ll | ||
diagnostic-handler-remarks.ll | ||
disable-verify.ll | ||
dllimport.ll | ||
embed-bitcode.ll | ||
internalize.ll | ||
invalid.ll | ||
keep-used-puts-during-instcombine.ll | ||
libcall-overridden-via-alias.ll | ||
linkonce_odr_func.ll | ||
list-dependent-libraries.ll | ||
list-symbols.ll | ||
lit.local.cfg | ||
llvm-lto-output.ll | ||
no-undefined-puts-when-implemented.ll | ||
objc-detection-i386.ll | ||
objc-detection.ll | ||
parallel.ll | ||
pr25919.ll | ||
pr38046.ll | ||
print-macho-cpu.ll | ||
private-symbol.ll | ||
remangle_intrinsics.ll | ||
remangle_intrinsics_tbaa.ll | ||
restore-externals.ll | ||
runtime-library.ll | ||
set-merged.ll | ||
stdcall.ll | ||
strip-debug-info-no-call-loc.ll | ||
strip-debug-info.ll | ||
symver-asm.ll | ||
symver-asm2.ll | ||
symver-asm3.ll | ||
tailcallelim.ll | ||
triple-init.ll | ||
triple-init2.ll | ||
type-mapping-bug.ll | ||
type-mapping-bug2.ll | ||
type-mapping-bug3.ll | ||
unnamed.ll |