ret = process_elf64_file (file_name, lib, flag, isa_level, soname,
file_contents, file_length);
+
+ /* The EF_LARCH_OBJABI_V1 flag indicate which set of static relocations
+ the object might use and it only considered during static linking,
+ it does not reflect in runtime relocations. However some binutils
+ version might set it on dynamic shared object, so clear it to avoid
+ see the SO as unsupported. */
flags = elf64_header->e_flags & ~EF_LARCH_OBJABI_V1;
/* LoongArch linkers encode the floating point ABI as part of the ELF headers. */