Re: non-PIC build broken on oss-fuzz
| From: | M. W. Moe | Date: | Mon, 09 Sep 2019 17:42:31 +0000 |
| Subject: | Re: non-PIC build broken on oss-fuzz | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-106919@lists.php.net to get a copy of this message | ||
You try to mix static and dynamic linkage; there is something wrong
regarding the setup of target platform;
enumerate details about flavors.
On Sun, Sep 8, 2019 at 10:13 PM Stanislav Malyshev <smalyshev@gmail.com>
wrote:
> Hi!
>
> Looks like commit eef85229d0fe9f69d325aa0231e592f35c468afb broke
> oss-fuzz builds:
>
>
> https://oss-fuzz-build-logs.storage.googleapis.com/log-66ab74a7-4ece-4e14-b21b-f60527dd7244.txt
>
> The error message is:
>
> Step #4: /usr/bin/ld: dynamic STT_GNU_IFUNC symbol `php_stripslashes'
> with pointer equality in `ext/standard/string.o' can not be used when
> making an executable; recompile with -fPIE and relink with -pie
> Step #4: clang-10: error: linker command failed with exit code 1 (use -v
> to see invocation)
> Step #4: make: *** [sapi/cli/php] Error 1
> Step #4: Makefile:264: recipe for target 'sapi/cli/php' failed
>
> I'm not sure I understand what's going on here - I suspect the non-PIC
> build somehow conflicts with stripslashes optimizations, but I don't
> know the details. May be specific to clan builds...
> --
> Stas Malyshev
> smalyshev@gmail.com
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>