<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/60577>60577</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [llvm-objcopy] Speed up writing of large sections
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          DaanDeMeyer
      </td>
    </tr>
</table>

<pre>
    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.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcktFunDwQhZ_G3Ix2ZbwLhAsu8v-rlSq1V32AaMADTGJs5LGz5e0raJRWuUKawZ_POT4owpMn6lT1n6puBeY0h9jdEP2NftBGseiD3bpna9lP4DBOBEJD4uAFsuxDVevTCa09fcxVrYEFhhwj-eQ2eKe4gbjwgJ4GzELg3PtyCv3rENYNhrAyCaSZgHziSDCyI2CfAiy0hLgBeguPyIkEOEEKYFneACdkf4ZvSZnGQk8wRcIEPH7lZ2dhv3YJkYDGkQcmn-CBm0AYIUX0MlKMu5tdxqdBycMMKBBpdOzfBIKHgxn8Hz2HVNkk0SLK_A9C3u4jZZ6UaSHEg-fpQfE4-LIvXyL66fMXD9_Z51_wQdndyUpkIc3sJ4G8ngvbXWx7abGgrqybqqmbUpfF3F2uOJj-Cau6p0b3TatNW-KTuepBI411wZ3R5qKNbkpdldfy3GM9El6r3tRtdam0umpakN15j-wc4lSwSKau1lXTFA57cnKUwxhPDziWypi9K7E7Yu7zJOqqHUuSv5TEyR2t-vcpVHWDn4e3vB757YGH8UutihxdN6e0iro8K3NX5j5xmnN_HsKizH0nfnxOawyvNCRl7ocyUeZ-KP8dAAD__4yS-QA">