Re: non-PIC build broken on oss-fuzz

  106913
September 9, 2019 08:03 smalyshev@gmail.com (Stanislav Malyshev)
Hi!

On 9/9/19 12:57 AM, Dmitry Stogov wrote:
> how do you add "-pie" flag?
I do not. I just compile PHP. The script used to configure and build it is here: https://github.com/google/oss-fuzz/blob/master/projects/php/build.sh There are no special flags there as far as I can see. The fuzzing SAPI lives here: https://github.com/php/php-fuzzing-sapi The compiler used is clang. You can reproduce the build by using Docker and these instructions: https://google.github.io/oss-fuzz/getting-started/new-project-guide/#testing-locally Specifically: python infra/helper.py build_image php python infra/helper.py build_fuzzers --sanitizer address php or, if you want to see the details, instead of second command, use: python infra/helper.py shell php and then: compile -- Stas Malyshev smalyshev@gmail.com