[RFC PATCH 2/2] x86: Make dl-cache.h and readelflib.c not Linux-specific
Carlos O'Donell
carlos@redhat.com
Fri May 19 11:36:33 GMT 2023
On 5/17/23 14:54, Sergey Bugaev via Libc-alpha wrote:
> These files could be useful to any port that wants to use ld.so.cache.
I agree, and this is likely cargo-cult across the targets.
At most we look at EI_CLASS, and EM_* machine, and FLAG_ELF_LIBC6 is
defined in sysdeps/generic/ldconfig.h (not Linux specific) and likewise
for the other flags.
LGTM.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
> Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
> ---
> sysdeps/{unix/sysv/linux => }/x86/readelflib.c | 0
> sysdeps/{unix/sysv/linux => }/x86_64/dl-cache.h | 0
> 2 files changed, 0 insertions(+), 0 deletions(-)
> rename sysdeps/{unix/sysv/linux => }/x86/readelflib.c (100%)
> rename sysdeps/{unix/sysv/linux => }/x86_64/dl-cache.h (100%)
>
> diff --git a/sysdeps/unix/sysv/linux/x86/readelflib.c b/sysdeps/x86/readelflib.c
> similarity index 100%
> rename from sysdeps/unix/sysv/linux/x86/readelflib.c
> rename to sysdeps/x86/readelflib.c
> diff --git a/sysdeps/unix/sysv/linux/x86_64/dl-cache.h b/sysdeps/x86_64/dl-cache.h
> similarity index 100%
> rename from sysdeps/unix/sysv/linux/x86_64/dl-cache.h
> rename to sysdeps/x86_64/dl-cache.h
--
Cheers,
Carlos.
More information about the Libc-alpha
mailing list