summaryrefslogtreecommitdiffhomepage
path: root/ir/be/begnuas.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-01-10 03:55:55 +0100
committerMatthias Braun <matze@braunis.de>2016-01-10 04:44:29 +0100
commita0fa334a5834b3fc254542bcf8a4fe1edb6d0345 (patch)
tree2bc73d25c58ce5bc2424478fcb1a624744be1e78 /ir/be/begnuas.c
parent6bd1f80e0e5d6a38ece944dc54ad601fa4346dd1 (diff)
be: Make ia32 PIC styles a general be option.
Diffstat (limited to 'ir/be/begnuas.c')
-rw-r--r--ir/be/begnuas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c
index 8ee8158..6cd6f14 100644
--- a/ir/be/begnuas.c
+++ b/ir/be/begnuas.c
@@ -474,7 +474,7 @@ static be_gas_section_t determine_basic_section(const ir_entity *entity)
&& entity_is_string_const(entity, true))
return GAS_SECTION_CSTRING;
- if (be_options.pic) {
+ if (be_options.pic_style != BE_PIC_NONE) {
ir_initializer_t const *const init = get_entity_initializer(entity);
switch (classify_initializer_relocs(init)) {
case ONLY_LOCAL_RELOCATIONS: return GAS_SECTION_REL_RO_LOCAL;