Description
We often want to compile object files with PIC flag, so we add it to corresponding compile commands. However it can be overriden if PIE flag is used in source compile commands.
Use plugin to generate tests
*2.1 Remove initialization of thread-local variables in log_wrapper.c if #616 is not resolved yet
Run generated tests
Expected behavior
Tests are supposed to be executed successfully.
Actual behavior
Linker error.
Visual proofs (screenshots, logs)
error: /home/utbot/libyang/utbot_tests/makefiles/src/../../../build/utbot_files/utbot_build/recompiled/tests/style/CMakeFiles/cpp_compat.dir/cpp_compat.c.o: requires dynamic R_X86_64_PC32 reloc against 'main__' which may overflow at runtime; recompile with -fPIC
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
Description We often want to compile object files with PIC flag, so we add it to corresponding compile commands. However it can be overriden if PIE flag is used in source compile commands.
To Reproduce Steps to reproduce the behavior:
Expected behavior Tests are supposed to be executed successfully.
Actual behavior Linker error.
Visual proofs (screenshots, logs)