Skip to content

Support creating static PIE

Motivation

Support creating static PIE.

Proposal

Currently, position-independent executable need link with shared Haskell libraries:

https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/phases.html?highlight=pie#ghc-flag--pie

But since GCC 8.0, GCC support use -static-pie to create static PIE.

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

Supporting static PIE is an extremely exciting feature. It greatly enhances security and facilitates deployment.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information