Kavitha, I don't think this is the appropriate place to discuss this problem. OSGeolive is based on ubuntu and debian, and they have PIE enabled for gdal since 2017. In the meantime, PIE is already enabled by default in gcc.
I think discussing on https://lists.osgeo.org/mailman/listinfo/gdal-dev would be more appropriate. But do include what platform (os) you are using and which version of gcc, because recent versions will use pie by default. Kind Regards, Johan On Wed, Aug 5, 2020 at 4:33 PM Kavitha K <kmsk...@gmail.com> wrote: > Hi All, > We are trying to compile the gdal 2.3.2 source with ASLR . But we are > seeing the > Elf file type as EXEC (Executable file) instead DYN. > > Please help us whether gdal build is supported the compilation with > "-Fpie -pie -fPIC". > > Steps which we followed: > > cp gdalDevKits/gdal-2.3.2.tar.gz . > > tar -xvf gdal-2.3.2.tar.gz > > cd gdal-2.3.2 > > env CFLAGS="-Fpie -pie -fPIC" ./configure > > make install > > cd /usr/local/bin > > readelf -l gdaltransform > > Elf file type is EXEC (Executable file) > > Entry point 0x40 > Thanks, > Kavitha > _______________________________________________ > osgeolive mailing list > osgeolive@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/osgeolive >
_______________________________________________ osgeolive mailing list osgeolive@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/osgeolive