This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/87938] New: libgnat.a not compiled with -fno-PIC


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87938

            Bug ID: 87938
           Summary: libgnat.a not compiled with -fno-PIC
           Product: gcc
           Version: 8.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

We build two versions of libgnat.a: libgnat.a and libgnat_pic.a.

The libgnat_pic.a is compiled with -fpic (more precisely, with
PICFLAG_FOR_TARGET).

But libgnat.a is compiled with whatever the default is, so if gcc defaults to
-pie -fPIE, then libgnat.a is compiled with -fPIE.  My guess is that we want to
build libgnat.a with -fno-PIE/-fno-pie.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]