Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

RaiderOfTheLostSPARCJul 22 2017 — edited Jul 25 2017

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.

This post has been answered by Steve.Clamage-Oracle on Jul 25 2017
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 22 2017
Added on Jul 22 2017
1 comment
402 views