Skip to content
Commit 590d0e08 authored by Joan Bruguera's avatar Joan Bruguera Committed by Adhemerval Zanella
Browse files

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: 8ee87859 ("Assume only FLAG_ELF_LIBC6 suport")
Signed-off-by: default avatarJoan Bruguera <joanbrugueram@gmail.com>

Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
(cherry picked from commit 1b0ea8c5)
parent 790e504a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment