|
From: | Paul Eggert |
Subject: | Re: getrandom not replaced |
Date: | Sun, 25 Dec 2022 19:12:49 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
On 12/25/22 18:50, Po Lu wrote:
Paul Eggert <eggert@cs.ucla.edu> writes:What's the output of gcc -E?Which of armv7a-unknown-linux-android19-clang -E or gcc -E on the host do you mean?
I meant to use the compiler that is actually used to compile lib/getrandom.c. You can deduce this with something like this:
rm lib/getrandom.o; cd lib; make V=1 getrandom.o and replace '-c -o getrandom.o' with '-E' in the resulting command.
#if 1 /* Fill a buffer with random bytes. */ # if 0 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getrandom # define getrandom rpl_getrandom # endif _GL_FUNCDECL_RPL (getrandom, ssize_t, (void *buffer, size_t length, unsigned int flags) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (getrandom, ssize_t, (void *buffer, size_t length, unsigned int flags)); # else # if !0 _GL_FUNCDECL_SYS (getrandom, ssize_t, (void *buffer, size_t length, unsigned int flags) _GL_ARG_NONNULL ((1)));
That last decl should have been reached and should have declared 'getrandom', but evidently it didn't. This is where the -E output would be helpful.
[Prev in Thread] | Current Thread | [Next in Thread] |