<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59645>59645</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm-objcopy should support the --section-alignment option
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
floppym
</td>
</tr>
</table>
<pre>
binutils objcopy has the following option.
```
--section-alignment num
Sets the section alignment field in the PE header. Sections in
memory will always begin at addresses which are a multiple of this
number. Defaults to 0x1000. [This option is specific to PE
targets.]
```
llvm-objcopy lacks this option. This causes systemd-boot to fail to build.
Downstream bug: https://bugs.gentoo.org/887047
Related systemd PRs: https://github.com/systemd/systemd/pull/21960, https://github.com/systemd/systemd/pull/25826
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycU0FvozwQ_TXmMgoyTiDhwKH90pyrfvsHDB7A3cFGjL3Z_PuVCVFVtdrDWk4M8ps3T-8xmtkODrER5bMoz5mOYfRL05Of59uUtd7cmta6GCwx-Pa98_MNRs0QRoTeE_mrdQP4OVjvciHPQj6JSm57fYX72u0Yu4TaabKDm9AFcHH6hEnrfwx39g0OH_DeIhmwbr1-fYERtcElTzUrlMG6L3wTTn65wdUSgaarvjG0OFgHOoA2ZkFmZLiOthtBLwgapkjBzoTgewij5Y3Sxaldu52x15GSSg_ydyGlzAFE-fxjtLw5AZaBZ-xsb7sEe33ZSIJeBgyci_L8rVlEv6bdw2fS3U9eJTwMhrVHp2PSzDcOOJld631ITXptKZ1ttGQeWaz_Z391HBbUE7RxEPsnGEOYWeyfhLoIdWnjwPmALnif-2UQ6nI6HeXheK9-Q9IBzaMfvL7xV4rBhjG2eecnoS4b8tPTHImEuqiirqRQ__1reXlSVWaavan3tc6wKapjUZUHeZLZ2LSVOlRaS2OOWnVYFcej7uuq7vuiLU79PrONkkoVacv0y09SFieNen8wHcq6FgeJk7aUpyCSF5lljtiUdXUoM9ItEq-zopTDK6yXQqk0Okuzhpe8FAdJlgN_sAQbCJtP6fLoIxngOM9-Ces3_d2M3JPP4kLNXyxLzNuxmxf_jl0Q6rLKY6Euq_w_AQAA__9RxEQE">