<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59370>59370</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
How to use equivalent eu-unstrip with llvm-objcopy + llvm-strip
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nimit25
</td>
</tr>
</table>
<pre>
Using the toolchain from ndk 23. I have an exectuable A. I'm using llvm-objcopy to keep debug symbols in a separate file
`llvm-objcopy --only-keep-debug A A.debug` and then I do `llvm-strip --strip-debug --strip-unneeded A`
Now, how do I something like `eu-unstrip A A.debug -o fullA` using llvm tools? At the moment I get
`eu-unstrip: cannot write output file: invalid section alignment`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUks-SqywQxZ8GN11aBKImCxfON2V92dzdfQCQHmUGwStNcvP2tzDzd9VQxfl1n0OrGO3kETtWP7H6uVCJ5rB13i6WRF3oYO7d72j9BDQjUAhunJX18LKFBbx5AyEruMCsrgjKA_7FkZLSDqGv4MJEu0Da5c5dlzLo1zGsd6AAb4grGNRpgnhfdHARrAcFEVe1KUJ4sQ4Zf2a8Zw3_oS7L4N29zITyQeihr_YTazgob_KwHi5gAnyII212hfJR32Uft-Q9okEDudWj569wY-I_mMMtQy4Qw4I0ZyPg7BtmLKYy-Qf2sz-UAV6Scxn0zfgeXGRygJ72IJewoCe4wIQEny6_iEz2MCrvA8Fts4QQEq2JHqHIHqy_KmcNRBzJBg_K2clnJGt4YTppzvKsCuwOTcvlSbZcFHPXHEZpxPmIAs8nrtr6gBK15kc8mbpRdWE7wYU4CN5yKU6CV6ptzeF00MgV1219ZEeOi7KuyqaqsE2FjTFhV59lywunNLr4sUlbt-eu0xTZkTsbKX7JyJLD7v9wy6uQIgL-SfaqXA7lW643S_PPzWHiCb7-s0ib62aiNTLZMzEwMUyW5qSrMSxMDPnleynXLbziSEwM-8yRiWEf-18AAAD__7qz_rc">