Created attachment 14768 [details] patch: basic implementation of machine flag check for LoongArch eu-elflint is unhappy about any LoongArch (lp64d ABI) ELF binary, in particular, about itself: $ ./src/elflint --gnu-ld ./src/elflint invalid machine flags: 0x43 $ echo $? 1
Thanks, that looks perfect. Pushed as: commit b2871fa8d430e2c5fb39e3ebc6745ea32f1bddb4 Author: Alexey Sheplyakov <asheplyakov@basealt.ru> Date: Mon Mar 20 18:45:02 2023 +0400 LoongArch: implemented a basic machine flag check With this patch I can use eu-elflint to verify LoongArch ELF binaries. Previously eu-elflint was complaining about invalid machine flags: $ ./src/elflint --gnu-ld ./src/elflint invalid machine flags: 0x43 $ echo $? 1 * backends/loongarch_symbol.c (loongarch_init): Hook machine_flag_check. * backends/loongarch_symbol.c (loongarch_machine_flag_check): New function. https://sourceware.org/bugzilla/show_bug.cgi?id=30251 Signed-off-by: Alexey Sheplyakov <asheplyakov@basealt.ru>