Daniel Egger:
> Package: diffoscope
> Version: 84
> 
> I'm using diffoscope on a Mac and it doesn't have tools like readelf and 
> objdump by default and even after installation (e.g. via brew) those would be 
> called greadelf and gobjdump instead to not conflict with local tools under 
> the same name. Diffoscope should either find them automatically or have some 
> configuration to the names.
> 
> However it doesn't stop there: With objdump you can't just pick *any* version 
> but you need one with support for the precisely the target architecture you 
> want to look at; if it has multiple potential choices, it'll barf but more 
> typically it does not have the correct architecture support, e.g. when 
> crosscompiling. So it is important to again either automatically guess and 
> check for the correct version using the readelf information or to provide 
> configuration...
> 
> In case you are wondering now; I'm trying to compare embedded application 
> binaries compiled with a arm-non-eabi toolchain.

We could either support READELF and OBJDUMP environment variables, or support a 
BINUTILS_PREFIX envvar that gets prefixed onto "readelf" and "objdump" when 
running those commands.

Which one would you prefer (or something else entirely)?

X

-- 
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git

Reply via email to