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

    <tr>
        <th>Summary</th>
        <td>
            [WebAssembly] llvm-strip can invalidate linking sections
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            backend:WebAssembly,
            tools:llvm-objcopy/strip
      </td>
    </tr>

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

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

<pre>
    The WebAssembly version of llvm-strip currently just blindly copies all sections.

However, when stripping sections we really need to reconstruct the linking section and the reelections sections since symbol information can change.  This is what the ELF version of llvm-strip does I believe.

See https://github.com/emscripten-core/emscripten/issues/22291
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8ks1u2zoQhZ-G2gxikCPLjhda-CZXaIHuGqBr_owsJhQpcCgbevvCips6KNoNSQw5Z3AOP83sT5GoFc1_ApGNVVIKRNE8V3ouQ8rte60yyS3ty0Dwg8yRmUYTFjhTZp8ipB5COI8PXLKfwM45UyxhgdeZC5jgowsL2DR5YtAhAJMtPkXeCPks5PF9_ZIudKYs8AkuA0VYxSYfTx_P4UKQSYewQCRyUBJksilyybMtUAaC4OPbXQvo6NZ6Jgq_VD7k2EdLwMtoUgAf-5RHvXZZHcEOOp5oA_AyeAbPcBn0-4z_v3V_ce4SMXwFQ8HTmT65-04EQykTi_oosBPYnXwZZrOxaRTY0cg2-6lQfLAp06eKwM4zz8QCO0Q8qMq1tTvUB11Rq_aIj3u1x101tNoiHerdXve67-tGbZ1uZKP2zU6pg-pt5VuUuJWPslENPm53G9dgb3f19azJoRJbSaP2YXN1tUn5VK2jWyVRSqyCNhT4RovR9o2iE_XxjokrPPgkEEtK4Wp2jSeZV5umRWC3BnUjLLfrpZlPLLYyeC78e27xJaxc3os3z59A0xF8POvgnS5__D1Xcw7tPzK_Kt22hymnV7LlPuqb5XOLPwMAAP___p0OhQ">