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

    <tr>
        <th>Summary</th>
        <td>
            ld: error: SHF_MERGE section size (X) must be a multiple of sh_entsize (8)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    Trying to build some code with the CompCert (3.10) compiler and being built with Clang 13.0.0 I am seeing errors like the following with LLD 13.0.0, this does not happen when built with our ports-gcc (GCC 8.4.0)..

```
../../ccomp -Wl,-z,notext -stdlib ../../runtime -dc -dclight -dasm -o knucleotide.compcert knucleotide.c -lm
ld: error: /tmp/compcerta394d2.o:(.rodata.cst8): SHF_MERGE section size (4) must be a multiple of sh_entsize (8)
```

```
../../ccomp -Wl,-z,notext -stdlib ../../runtime -dparse -dc -dclight -dasm -fall -DARCH_x86 -DMODEL_64 -o floats.compcert floats.c -lm
ld: error: /tmp/compcert71ea76.o:(.rodata.cst8): SHF_MERGE section size (260) must be a multiple of sh_entsize (8)
```

I came across the following, but I was not sure if this is an issue with Clang / lld or something that needs to be fixed with CompCert.

https://reviews.llvm.org/D77368
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1k91vmzAQwP8aeDmBDCR8PPDQJU1bqdWkbtL2Vhl8CV4NRrZp2v71O5N0baZO2qZNguOM7_NnX6PFU_3ZPMlhB05DM0klwOoeodUCYS9dB65DWOl-XKFxEKRlFicsSCuy6Eep0AAfBDToQ3h_d_BaKU4_kixmMYMr4D1YnG3QGG0sKHmPc-itVkrv_c7sd329PnoF6YoMpAWh0cKgHXR8HHGAfUfiTSo9GRi1cTbata2v8GK1gjJe-BBVHAdsHbCzo8zZ8ZmXtJluZtH6biD6oihr9EyC8uGjg8g6oWQDr5ZmGpwkQJFo_avkriMzwW0PkYb7YWoVaicFxj5k66Gd_IRI9YfsSgTZ2YGHVyi260dfy9GPZ9VCpLGmTWoqNlpwx-PWupL68h6fLjd3N-e3F-fEtnVSD2DlM3oCC39A_WQdHQxw0pSTo0LQW7DdHQ7uxXAO9R6a_8Br5Ma-z23LlYJofXa7urx7LHNSbz6uz6_v8oVnulWaO_uK82X9-ySLBHmR_xXJNGf_iOUVtJw48NZoa0-vvr_qzeRoTvb8cNXtZBDk9jAA9PCBpJ3w7XBRg6BoXrWZR5ZM_RR33MGAKOw80JREPqI4uh2n-GQkOudGO4PZ-NPCB4l7Gyv10MfaUGWbdVFkeRlineTLqszKLCtDUWeiyioeOukU1j_x_zXNr3_CMpyMqk_L21EbU-OvAi18jcdPNBr9jXLRcsZkSVnmVVGFXZ0myTbhWZZVSVLlTZW0HAsmCsGzpSjTRah4g8rWwfJDsFyHsk5ZmrKSFSxN0qSIc7Yolk3DGszKLS4wWDDsuVQ_GIWmnmtopp2lTSWtewUYcmvljg5kjp-mN9ze3_In0nwyPrlOm7oxXLBwrryey_4OJP-9fg">