[OSGeoLive] reg GDAL with ASLR build binaries

Johan Van de Wauw johan.vandewauw at gmail.com
Thu Aug 6 00:14:44 PDT 2020


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 <kmskavi at 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 at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/osgeolive
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/osgeolive/attachments/20200806/345e63d8/attachment.html>


More information about the osgeolive mailing list