one_gadget: use multiarch binutils

The version of objdump used should support {i686,x86_64,aarch64}-linux-gnu, regardless of the
host architecture (e.g. darwin).
This commit is contained in:
George Huebner
2025-07-09 14:24:50 -04:00
parent 86bd059713
commit 107574ad65
+4 -2
View File
@@ -1,6 +1,6 @@
{
lib,
binutils,
binutils-unwrapped,
bundlerApp,
bundlerUpdateScript,
makeWrapper,
@@ -14,7 +14,9 @@ bundlerApp {
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/one_gadget --prefix PATH : ${binutils}/bin
wrapProgram $out/bin/one_gadget --prefix PATH : ${
binutils-unwrapped.override { withAllTargets = true; }
}/bin
'';
passthru.updateScript = bundlerUpdateScript "one_gadget";