Please open a binutils bug and CC me.

H.J.

On Tue, Jul 9, 2024, 9:01 AM H.J. Lu <hjl.to...@gmail.com> wrote:

>
> On Tue, Jul 9, 2024, 8:55 AM Samuel Thibault <samuel.thiba...@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