From e2f6705e284d9a12fa3b0037307b615ebdf70903 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 17 Apr 2018 09:36:39 -0700 Subject: [PATCH] Add a comment about why there's no `is_pie` setting. --- lib/codegen/meta/base/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/codegen/meta/base/settings.py b/lib/codegen/meta/base/settings.py index a59904a572..ff1551c151 100644 --- a/lib/codegen/meta/base/settings.py +++ b/lib/codegen/meta/base/settings.py @@ -29,6 +29,9 @@ enable_verifier = BoolSetting( is_64bit = BoolSetting("Enable 64-bit code generation") +# Note that Cretonne doesn't currently need an is_pie flag, because PIE is just +# PIC where symbols can't be pre-empted, which can be expressed with the +# `colocated` flag on external functions and global variables. is_pic = BoolSetting("Enable Position-Independent Code generation") return_at_end = BoolSetting(