Re: False positive in skalibs system feature test

From: Jens Rehsack <rehsack_at_gmail.com>
Date: Wed, 23 Oct 2019 21:27:28 +0200

> Am 23.10.2019 um 20:19 schrieb Laurent Bercot <ska-skaware_at_skarnet.org>:
>
>> Overridable for the win ;)
>
> Are we giving advice again without checking first, hmmm?
>
> ./configure --with-sysdep-getrandom=no <-- Try it. :P

Planned in for tomorrow ;)
Finished all other planned tasks so I have some time for that

But I cross-compile for linux only, so especially that one shouldn't
become problematic :P

> My point is that ld *should* be a reliable way to autodetect those
> things, and I want to make sure it works too.

When the entry point is really missing.
When the entry point is there but there is something weird happening
when jumping to it, or it simply points to a "return -1" stub combined
with a ld-warning, than it's not ld's fault.

It's just a smell ...

A look using `objdump -G /path/to/libc.so` should tell us.

A short look into
* binutils-cross-arm/2.32.0-r0/git/ld/testsuite/ld-cris/globsymw1.s
* binutils-cross-arm/2.32.0-r0/git/ld/testsuite/ld-cris/warn3.d
* binutils-cross-arm/2.32.0-r0/git/ld/testsuite/ld-cris/globsymw2.s
* binutils-cross-arm/2.32.0-r0/git/ld/testsuite/ld-cris/warn4.d
confirms the smell ...

Cheers
--
Jens Rehsack - rehsack_at_gmail.com



Received on Wed Oct 23 2019 - 19:27:28 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC