1 Reply Latest reply on Jul 25, 2017 5:49 PM by Steve.Clamage-Oracle

    Studio 12.6/Solaris 11.3 x86 Can't discover PIE executables

    RaiderOfTheLostSPARC

      Hi,

       

      known bug?

       

      $ cat hello.c

      #include <stdio.h>

       

      int main(void) {

          printf("hello new world!\n");

          return 0;

      }

       

      $ cc -m64 -g -KPIC -ztype=pie hello.c

      $ file a.out

      a.out: ELF 64-bit LSB dynamic lib AMD64 Version 1 [SSE], position-independent executable, dynamically linked, not stripped

       

      $ discover -vw - a.out

      discover (info): Studio 12.6 Memory Error Discovery Tool 2.4 SunOS_i386 2017-05-30

      discover (error): The instrumentation target needs to be an executable. a.out is a shared library.