<div dir="ltr">Great! It's still using the same binutils src folder to build multiple architectures, meaning there will be a conflict when cross-compiling and/or native-compiling. The change I propose also integrates using the folder `build/<target>/binutils` as the build folder for binutils, so that the binutils source tree stays clean and can be used for multiple targets.<div><br></div><div>Whenever I can submit a bug in JBS (or if anyone feels like doing it and send me the link), I'll submit these changes as well.</div><div><br></div><div>Thanks,</div><div>Ludovic</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 12, 2022 at 12:13 PM Aleksey Shipilev <<a href="mailto:shade@redhat.com">shade@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 10/12/22 11:57, Ludovic Henry wrote:<br>
> I've made a local patch to be able to cross-compile hsdis based on binutils at <br>
> <a href="https://github.com/rivosinc/jdk/commit/4c88e66b654e4c29ede7c221d223298497fa06c2" rel="noreferrer" target="_blank">https://github.com/rivosinc/jdk/commit/4c88e66b654e4c29ede7c221d223298497fa06c2</a> <br>
> <<a href="https://github.com/rivosinc/jdk/commit/4c88e66b654e4c29ede7c221d223298497fa06c2" rel="noreferrer" target="_blank">https://github.com/rivosinc/jdk/commit/4c88e66b654e4c29ede7c221d223298497fa06c2</a>><br>
> <br>
> I'm blocked on getting access to my JBS again in order to submit it upstream. Feel free to use it in <br>
> the meantime.<br>
<br>
You don't need this anymore, as mainline how has this:<br>
<a href="https://github.com/openjdk/jdk/commit/392f35df4be1a9a8d7a67a25ae01230c7dd060ac" rel="noreferrer" target="_blank">https://github.com/openjdk/jdk/commit/392f35df4be1a9a8d7a67a25ae01230c7dd060ac</a><br>
<br>
It allows to cross-compile hsdis on every arch, including RISC-V :)<br>
<br>
-- <br>
Thanks,<br>
-Aleksey<br>
<br>
</blockquote></div>