mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-12 12:07:12 +08:00
5b118558f9
To avoid having a ELFv2 binary accidentally picking up an old ABI ld.so, this patch bumps the soname to ld64.so.2. In theory (or for testing purposes) this will also allow co-installing ld.so versions for both ABIs on the same system. Note that the kernel will already be able to load executables of both ABIs. However, there is currently no plan to use that theoretical possibility in a any supported distribution environment ... Note that in order to check which ABI to use, we need to invoke the compiler to check the _CALL_ELF macro; this is done in a new configure check in sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac, replacing the hard-coded value of default-abi in the Makefile.
28 lines
1.1 KiB
C
28 lines
1.1 KiB
C
/* ldconfig default paths and libraries. Linux/PowerPC version.
|
|
Copyright (C) 2002-2013 Free Software Foundation, Inc.
|
|
This file is part of the GNU C Library.
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with the GNU C Library; if not, see
|
|
<http://www.gnu.org/licenses/>. */
|
|
|
|
#include <sysdeps/generic/ldconfig.h>
|
|
|
|
#define SYSDEP_KNOWN_INTERPRETER_NAMES \
|
|
{ "/lib/ld.so.1", FLAG_ELF_LIBC6 }, \
|
|
{ "/lib64/ld64.so.1", FLAG_ELF_LIBC6 }, \
|
|
{ "/lib64/ld64.so.2", FLAG_ELF_LIBC6 },
|
|
#define SYSDEP_KNOWN_LIBRARY_NAMES \
|
|
{ "libc.so.6", FLAG_ELF_LIBC6 }, \
|
|
{ "libm.so.6", FLAG_ELF_LIBC6 },
|