NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Program segfaults if compiled with -pg and linked to shared library



In article <s1og33$f2j$1%ciao.gmane.io@localhost>,
Christos Zoulas <christos%astron.com@localhost> wrote:
>In article
><CAMnT83v9K5ibpBKp9U2LLCwvYA6EOFGC7qALb7yRqJoNkVyu-g%mail.gmail.com@localhost>,
>Lord Vader  <lvd.mhm%gmail.com@localhost> wrote:
>>-=-=-=-=-=-
>>
>>I confirm that bug.
>>
>>If it happens that the program uses anything beyond libc, -pg does not work
>>and causes a program to segfault.
>>It is certainly not what expected. For example, in modern linux distros,
>>profiling works just fine with shared libraries attached to the program.
>
>If you compile with -Bstatic -lc_g -Bdynamic explicitly I think it works.
>So perhaps there is a libc issue.

Err -Bstatic -lc_p -Bdynamic

christos



Home | Main Index | Thread Index | Old Index