Adding large sections using --add-section is currently very slow because llvm-objcopy copies the entire file into memory and writes it to disk again. It'd be great if llvm-objcopy could use more efficient ways of transferring the sections such as reflinks on copy on write filesystems, sendfile() or the newer copy_file_range() on Linux systems to speed things up.
Adding large sections using
--add-section
is currently very slow because llvm-objcopy copies the entire file into memory and writes it to disk again. It'd be great if llvm-objcopy could use more efficient ways of transferring the sections such as reflinks on copy on write filesystems, sendfile() or the newer copy_file_range() on Linux systems to speed things up.