1
0
Fork 0
mirror of git://sourceware.org/git/glibc.git synced 2025-03-06 20:58:33 +01:00

LoongArch: ldconfig: Add comments for using EF_LARCH_OBJABI_V1

We added Adhemerval Zanella's comment to explain the reason for
using EF_LARCH_OBJABI_V1.
This commit is contained in:
caiyinyu 2023-03-28 09:19:53 +08:00
parent bb557fff2e
commit 07dd75589e

View file

@ -40,6 +40,12 @@ process_elf_file (const char *file_name, const char *lib, int *flag,
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. */