<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/119470>119470</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm-objdump doesn't support RELR
</td>
</tr>
<tr>
<th>Labels</th>
<td>
llvm:binary-utilities
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dwblaikie
</td>
</tr>
</table>
<pre>
Seems llvm-readobj does support dumping relr relocations, but llvm-objdump does not. Some stepping-around debugging, it seems that this call ( https://github.com/llvm/llvm-project/blob/a2fb70523ac310af6d8a4d9663dfe7c9cd370c53/llvm/tools/llvm-objdump/ELFDump.cpp#L350 ) produces a zero-length sequence, when there are relocations in the section. (I verified this by using objcopy to preserve the minimal sections (--only-section=.relr.dyn --only-section=.dynamic --only-section=.dynstr), dumping them (llvm-objdump -R v llvm-readelf -r) and readelf dumps things, objdump does not - debugged into llvm-objdump to reach the above conclusion)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU8tupDoQ_RqzKYFoG5pmwSL3Ji1dKavkC_wowH2NzfjREfP1I5PuyWQym9mA7PI5VafqFA9BTxZxIO0_pH0seIqz84N6E4br_zUWwqlteEVcAhhzXUqPXDlxAeUwQEjr6nwElZZV2wk8Gp8_TvKonQ2E_gsixXekE5f87h1pXazg1S0IIeKawSX3LlkFCkWaJm2nDNYRwp47zjxCnHUAyY0BQk8wx7gGwh4IPRN6nnSck6ikWwg953y3X7l6d0EZCT0L4wShZ05H0dUtZVyyQ83HozrxRvXHI1MjdrKXinW1bNkHT3TOhDvfTQah56fn82Na1kquK6HsmbU1ENrD6p1KEgNw-I7elQbtFGcI-C2hlZhlvc1oIc7oEbjHXzsGeg9AQJnPVVb6H1zR61Gjeu-A2CCF3G4nLtKtG0QHq8eA_oo7eNFWL9zcSUImKUtnzVbergh7rPKwKrVZ-BpSm-WLln-OhOgJ7bOM-9jjjEvO8WnM5QtcPyyDZoQy44BbBfeb_DDPVttp98rvFoHyZgdUoG10n40UXSaS866ZC3dFkM5Kk0IulvaFGpjqWc8LHA4dY6eONnVbzIPgzVEx3re8P_F6PHUtEyOyU8tEN0qhCj3QmjYHeqgpOzDaVj1r-k4J0Y39SIWUpKlx4dpUuaDK-anQISQcDoe-6erCcIEm7DtF6W4i9iC05X4rU9RGR42BUJoXzg-7JpGmQJra6BDDB2nU0eDwZXssoV38uXwvT88vRfJm-OuF2GvOxr6VfR3ojwAAAP__paRgyA">