[PATCH] kvx: fix 32-bit build and validation

Alan Modra amodra@gmail.com
Wed Aug 23 12:14:12 GMT 2023


On Wed, Aug 23, 2023 at 09:44:25AM +0200, Paul Iannetta wrote:
> On Wed, Aug 23, 2023 at 09:57:26AM +0930, Alan Modra wrote:
> > ..I don't see kvx_elf64_linux_vec defined anywhere.  Delete it?
> 
> Indeed, it somehow got missing from bfd/targets.c, it is mostly
> similar to kvx_elf64_vec, and only exists to match what is done in the
> linker with the emulation elf64kvx_linux.

Unless you really need it, don't add it.  If you have two target
vectors that match kvx objects then people will run into "file format
is ambiguous" errors when attempting to use any of objdump, objcopy,
nm etc. on a kvx object.  You won't see that if you've built binutils
with one of the kvx targets as the default, but will if you've built
say --target=x86_64-linux-gnu --enable-targets=all.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list