BullseyeCoverage Up Contents Search

Error on __dso_handle

Symptoms

When building and instrumenting with GCC, one or both of the errors below occurs.

BullseyeCoverage_definitions:...: undefined reference to `__dso_handle'
relocation ... against undefined hidden symbol `__dso_handle' can not be used when making a shared object

Resolution

Possible alternative resolutions are listed below.

  1. Do not use linker option -nostartfiles
  2. If you compile any source files with the g++ command, you must also link with the g++. Do not link C++ code with ld or gcc.
  3. If you are instrumenting for Linux kernel, enable covc option --kernel.

Updated: 5 Dec 2017