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

    <tr>
        <th>Summary</th>
        <td>
            llvm-readelf does not support compressed sections
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            tools:llvm-readobj/readelf
      </td>
    </tr>

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

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

<pre>
    GNU binutils readelf and ELF Tool Chain readelf support `-z` to handle compressed sections (typically debug sections). From ELF Tool Chain's manpage:

```
     -z | --decompress
             Decompress contents of sections specified by -x or -p before
             displaying. If the specified section is not compressed, it is
             displayed as is.
```

We are planning to migrate to LLVM's binutils-like tools and this is one issue identified during that process.
(FreeBSD bug reference https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258872)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsU8uOnDoU_BqzOQK5TUPDgsXM9OXqSnOzyWsZ-XEAT4yNbJOk5-sj04-ZRG0h8yhcrnPKxUPQo0XsSPVIqmPG1zg53-HMQ8RMOHXq_v3wGYS2a9QmgEeu0AzArYJ_nnv45JyBp4lre4PCuizORyA1zV9JTSE6mLhVBkG6efEYAioIKKN2NgBhTTwtWnJjTqBQrOMNI6wtoPdu_msrwg4BZm4XPiIpHwg9Enqda3q5tldII38FcniCPFd4FfAOvY7jDQTpbEQbA7jhTWdYUOpBowJxgvwXOA_5AgIH5_EOndJhMfyk7VjAfwPECd8xXEhBB7AuvmsLYU-gI-h7Ai-MqIAH0KG4W_B5_orAPcJiuLXajsmBWY-eR0yPz89f_t9aeHU1N_p7QpwJm7Fx0mkHcBZBh7AiaIU2nrWr1W-UE4-weCcx3KSwpveIjx-PkFz0OKBHKxGmGJeQjGI9Yb1Yx1AMHlEEVTg_nj-9amM4YX2Y3M9vYh0LOWpS9lqR8siqpjkwwtpMdaVqy5Zn2O0OtKnKijV1NnVtqVQl6l27kwc-7KnYc4lKirqpW17TJtMdo2xPGduldbQuKkrrVu6xbvAgdrIle4oz16Yw5secZGVb5V3DKnrIDBdowhYSxrZGkfIh_ZmnU-_EC2H95fwTxlKQfLfBqViyp0aHGN6oo44Gu9v6lBrl8HwYrvG5k5Vs9ab7s5mjjtMqCulmwvpEeLnli3cvKCNh_VZHIKzfSvkdAAD__2NSRJc">