Add support for -pie.
[deliverable/binutils-gdb.git] / gold / output.cc
index 7d869b3326e0d6a0359b1cf978fe91d8a1bfc989..ae7b7b8686fe23b2c7c7c7f7f6bed8089adb9051 100644 (file)
@@ -442,7 +442,7 @@ Output_file_header::do_sized_write(Output_file* of)
   elfcpp::ET e_type;
   if (parameters->options().relocatable())
     e_type = elfcpp::ET_REL;
-  else if (parameters->options().shared())
+  else if (parameters->options().output_is_position_independent())
     e_type = elfcpp::ET_DYN;
   else
     e_type = elfcpp::ET_EXEC;
This page took 0.024137 seconds and 4 git commands to generate.