This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/25341] Different behaviour of LD_PRELOAD and LD_LIBRARY_PATH from error tolerance perspective
- From: "aladjev.andrew at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 03 Jan 2020 19:18:52 +0000
- Subject: [Bug dynamic-link/25341] Different behaviour of LD_PRELOAD and LD_LIBRARY_PATH from error tolerance perspective
- Auto-submitted: auto-generated
- References: <bug-25341-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=25341
--- Comment #1 from Aladjev Andrew <aladjev.andrew at gmail dot com> ---
I've found the reason of this issue in elf/dl-load.c:
/* Open a file and verify it is an ELF file for this architecture. We
ignore only ELF files for other architectures. Non-ELF files and
ELF files with different header information cause fatal errors since
this could mean there is something wrong in the installation and the
user might want to know about this.
If FD is not -1, then the file is already open and FD refers to it.
In that case, FD is consumed for both successful and error returns. */
So now I think that this is a bug rather than feature. "open_verify" is not
able to ignore "aarch64_be" which is definitely related to other architecture.
--
You are receiving this mail because:
You are on the CC list for the bug.