LLD Code coverage issue

Hi All,

We are trying get the code coverage for lld and due to following code


finiarray was never called ,hence __gcov_exit will not ~generate the gcda files for the linker instrumented code .

we can condition line 105 call with flag and call “::exit”" here ,before that we are trying to understand the intention .

Any inputs/info will help understand issue better ,

Thank you

You can run instrumented lld with the environment variable LLD_IN_TEST=1 to skip the early exit.

Then, __gcov_exit inserted by gcc -fprofile-generate should run.

thank you @MaskRay ,that helped us .