NetBSD-Bugs archive

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

Re: port-hppa/56876: hppa: "cc -pg" fails with "undefined reference to `mprotect'"



The following reply was made to PR port-hppa/56876; it has been noted by GNATS.

From: Tom Lane <tgl%sss.pgh.pa.us@localhost>
To: gnats-bugs%netbsd.org@localhost, matthew green <mrg%eterna.com.au@localhost>
Cc: port-hppa-maintainer%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: port-hppa/56876: hppa: "cc -pg" fails with "undefined reference to `mprotect'"
Date: Fri, 10 Jun 2022 18:59:41 -0400

 matthew green <mrg%eterna.com.au@localhost> writes:
 >  in general, "-pg" requires "-static".  what happens there?
 
 Hmm ... that works:
  
 $ cc -pg -static hello.c
 $ ./a.out
 hello world
 [ plausible-looking gmon.out produced, too ]
 
 Shall I send in a patch to add -static to all these tests that
 are invoking -pg without it?  Or is it supposed to work without
 that these days?  I don't see any such statement in modern gcc's
 manual.
 
 			regards, tom lane
 


Home | Main Index | Thread Index | Old Index