bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix spurious glibc version dependency with -z mark-plt on no


From: H.J. Lu
Subject: Re: [PATCH] Fix spurious glibc version dependency with -z mark-plt on non-Linux
Date: Tue, 9 Jul 2024 09:01:35 +0800


On Tue, Jul 9, 2024, 8:55 AM Samuel Thibault <samuel.thibault@gnu.org> wrote:
916730425594 ("elf: Add elf_backend_add_glibc_version_dependency")
introduced adding an extra GLIBC_2.36 version dependency for x86_64. But
on x86_64 GNU/Hurd, there has never been a glibc 2.36 port, and thus the
GLIBC_2.36 version is not defined. The additional version dependency is
thus spurious and produces binaries that cannot be executed:

./test: /lib/x86_64-gnu/libc.so.0.3: version `GLIBC_2.36' not found (required by ./test)

This change fixes this by adding the version dependency only on x86_64
Linux.

That is wrong.  Your patch checks the
building system, which can be different
from the target.

H.J.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]