Under certain pmcstat(8) fails to resolve symbols for userland processes which are already running by the time pmcstat launches.
This happens because pmcstat(8) miscalculates virtual address of the code section of the loaded image.
This has no effect on the symbol resolution for the newly launched programs as the same value passed
to the pmcstat_image_link() function as the 'start' argument, so the offset ends up being zero. However,
for existing processes the correct value is getting passed, so offset becomes invalid and the start and
end values of the code segments receive invalid values.
Work this around by ignoring non-executable sections of the ELF file. A real fix is more complicated
as ELF file can contain multiple code segments and all of them need to be handled properly. But
this should solve the problem for majority of cases for now.