glibc/sysdeps
Joan Bruguera 1b0ea8c5d8 elf: Restore ldconfig libc6 implicit soname logic [BZ #30125]
While cleaning up old libc version support, the deprecated libc4 code was
accidentally kept in `implicit_soname`, instead of the libc6 code.

This causes additional symlinks to be created by `ldconfig` for libraries
without a soname, e.g. a library `libsomething.123.456.789` without a soname
will create a `libsomething.123` -> `libsomething.123.456.789` symlink.

As the libc6 version of the `implicit_soname` code is a trivial `xstrdup`,
just inline it and remove `implicit_soname` altogether.

Some further simplification looks possible (e.g. the call to `create_links`
looks like a no-op if `soname == NULL`, other than the verbose printfs), but
logic is kept as-is for now.

Fixes: BZ #30125
Fixes: 8ee878592c ("Assume only FLAG_ELF_LIBC6 suport")
Signed-off-by: Joan Bruguera <joanbrugueram@gmail.com>

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2023-02-20 09:32:46 -03:00
..
aarch64 string: Remove string_private.h 2023-02-17 15:56:54 -03:00
alpha alpha: Add string-fza, string-fzb.h, string-fzi.h, and string-shift.h 2023-02-06 16:19:35 -03:00
arc ARC:fpu: add extra capability check before use of sqrt and fma builtins 2023-02-17 16:17:58 -03:00
arm arm: Add string-fza.h 2023-02-06 16:19:35 -03:00
csky C-SKY: Strip hard float abi from hard float feature. 2023-02-07 16:34:24 +08:00
generic elf: Restore ldconfig libc6 implicit soname logic [BZ #30125] 2023-02-20 09:32:46 -03:00
gnu
hppa hppa: Add string-fza.h, string-fzc.h, and string-fzi.h 2023-02-06 16:19:35 -03:00
htl htl: Remove ./sysdeps/htl/bits/types/struct___pthread_mutex.h 2023-02-12 17:28:32 +01:00
hurd
i386 htl: Generalize i386 pt-machdep.h to x86 2023-02-12 16:33:39 +01:00
ia64
ieee754
loongarch Regenerate configure. 2023-01-31 17:51:40 -05:00
m68k string: Remove string_private.h 2023-02-17 15:56:54 -03:00
mach Define PC, SP and SYSRETURN for hurd x86_64 2023-02-20 01:33:15 +01:00
microblaze
mips
nios2
nptl
or1k
posix
powerpc string: Add libc_hidden_proto for memrchr 2023-02-08 17:13:58 -03:00
pthread
riscv riscv: Add string-fza.h and string-fzi.h 2023-02-06 16:19:35 -03:00
s390 string: Remove string_private.h 2023-02-17 15:56:54 -03:00
sh sh: Add string-fzb.h 2023-02-06 16:19:35 -03:00
sparc sparc (64bit): Regenerate ulps 2023-01-24 11:21:50 -05:00
unix Use uintptr_t instead of performing pointer subtraction with a null pointer 2023-02-17 17:07:44 -03:00
wordsize-32
wordsize-64 C2x strtol binary constant handling 2023-02-16 23:02:40 +00:00
x86 string: Remove string_private.h 2023-02-17 15:56:54 -03:00
x86_64 hurd, htl: Add some x86_64-specific code 2023-02-12 16:35:03 +01:00