aboutsummaryrefslogtreecommitdiff
path: root/gold/powerpc.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/powerpc.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/powerpc.cc')
-rw-r--r--gold/powerpc.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/powerpc.cc b/gold/powerpc.cc
index cf83a55..9e3d327 100644
--- a/gold/powerpc.cc
+++ b/gold/powerpc.cc
@@ -1094,6 +1094,7 @@ Target_powerpc<size, big_endian>::Scan::check_non_pic(Relobj* object,
// 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;