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.