aboutsummaryrefslogtreecommitdiff
path: root/gold/x86_64.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2009-03-27 18:19:09 +0000
committerCary Coutant <ccoutant@google.com>2009-03-27 18:19:09 +0000
commit33aea2fd651cf208e9e3c94c43cc3e10a12f03ea (patch)
tree85f6f707475bfa73beaf31674458f1f998ed04bb /gold/x86_64.cc
parent4a149252f16212640bf5c7ce6299e82f6a422dcd (diff)
downloadgdb-33aea2fd651cf208e9e3c94c43cc3e10a12f03ea.zip
gdb-33aea2fd651cf208e9e3c94c43cc3e10a12f03ea.tar.gz
gdb-33aea2fd651cf208e9e3c94c43cc3e10a12f03ea.tar.bz2
* powerpc.cc (Target_powerpc::check_non_pic): Assert that output is
position independent. * sparc.cc (Target_sparc::check_non_pic): Likewise. * x86_64.cc (Target_x86_64::check_non_pic): Likewise.
Diffstat (limited to 'gold/x86_64.cc')
-rw-r--r--gold/x86_64.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/x86_64.cc b/gold/x86_64.cc
index 6612325..a486da0 100644
--- a/gold/x86_64.cc
+++ b/gold/x86_64.cc
@@ -974,6 +974,7 @@ Target_x86_64::Scan::check_non_pic(Relobj* object, unsigned int r_type)
// error per object file.
if (this->issued_non_pic_error_)
return;
+ gold_assert(parameters->options().output_is_position_independent());
object->error(_("requires unsupported dynamic reloc; "
"recompile with -fPIC"));
this->issued_non_pic_error_ = true;