https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66805
--- Comment #4 from Jan Engelhardt <jengelh at inai dot de> --- If one uses #pragma pack(push, 1) #pragma pack(pop) the issue goes away, so indeed, it seems that some gcov parts are implicitly built with different padding.