[Bug 216587] cc should accept -pie argument

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 29 23:15:00 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216587

            Bug ID: 216587
           Summary: cc should accept -pie argument
           Product: Base System
           Version: 11.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: yuri at rawbw.com

I am getting these warnings while compiling qTox:
> c++: warning: argument unused during compilation: '-pie'

People add the options -pie and -fPIE with the expectation that PIC executable
will enable ASLR.

It looks like ASLR project on FreeBSD stalled: https://reviews.freebsd.org/D473
 https://forums.freebsd.org/threads/54771

But regardless of this, why isn't compiler able to build PIC code anyway? I
think -pie should work.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list