diff options
author | caiyinyu <caiyinyu@loongson.cn> | 2023-03-28 09:19:53 +0800 |
---|---|---|
committer | caiyinyu <caiyinyu@loongson.cn> | 2023-03-28 09:55:48 +0800 |
commit | 07dd75589ecbedec5162a5645d57f8bd093a45db (patch) | |
tree | 369fa0277e984e4a98c020c3ae09e63bd1608839 /sysdeps | |
parent | bb557fff2ec20e0926932684f69835f90626bb06 (diff) | |
download | glibc-07dd75589ecbedec5162a5645d57f8bd093a45db.tar glibc-07dd75589ecbedec5162a5645d57f8bd093a45db.tar.gz glibc-07dd75589ecbedec5162a5645d57f8bd093a45db.tar.bz2 glibc-07dd75589ecbedec5162a5645d57f8bd093a45db.zip |
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.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/loongarch/readelflib.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/loongarch/readelflib.c b/sysdeps/unix/sysv/linux/loongarch/readelflib.c index ceba355959..e34612895d 100644 --- a/sysdeps/unix/sysv/linux/loongarch/readelflib.c +++ b/sysdeps/unix/sysv/linux/loongarch/readelflib.c @@ -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. */ |