aboutsummaryrefslogtreecommitdiff
path: root/gold
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
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')
-rw-r--r--gold/ChangeLog9
-rw-r--r--gold/powerpc.cc1
-rw-r--r--gold/sparc.cc1
-rw-r--r--gold/x86_64.cc1
4 files changed, 11 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 7044e28..0f4063c 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,10 @@
+2009-03-27 Cary Coutant <ccoutant@google.com>
+
+ * 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.
+
2009-03-24 Cary Coutant <ccoutant@google.com>
* symtab.h (needs_plt_entry): Check for unsatisfied reference from
@@ -17,7 +24,7 @@
* object.h (is_elf_object): Declare.
* archive.cc (Archive::get_elf_object_for_member): Call
is_elf_object.
- * readsymc.cc (Read_symbols::do_read_symbols): Likewise.
+ * readsyms.cc (Read_symbols::do_read_symbols): Likewise.
2009-03-24 Elliott Hughes <enh@google.com>
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;
diff --git a/gold/sparc.cc b/gold/sparc.cc
index fe1ffa6..d15b833 100644
--- a/gold/sparc.cc
+++ b/gold/sparc.cc
@@ -1589,6 +1589,7 @@ Target_sparc<size, big_endian>::Scan::check_non_pic(Relobj* object, unsigned int
// 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;
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;