summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cgaas.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cgaas.c b/cgaas.c
index d379345..adca535 100644
--- a/cgaas.c
+++ b/cgaas.c
@@ -6834,6 +6834,11 @@ static void write_object_labels (void)
#ifdef ELF
write_l (object_label->object_label_string_offset);
write_c (ELF32_ST_INFO (STB_GLOBAL,STT_NOTYPE));
+# ifdef LINUX
+ if (pic_flag)
+ write_c (STV_PROTECTED);
+ else
+# endif
write_c (0);
write_w (0);
write_q (0);