* powerpc.cc (Target_powerpc::check_non_pic): Assert that output is
authorCary Coutant <ccoutant@google.com>
Fri, 27 Mar 2009 18:19:09 +0000 (18:19 +0000)
committerCary Coutant <ccoutant@google.com>
Fri, 27 Mar 2009 18:19:09 +0000 (18:19 +0000)
position independent.
* sparc.cc (Target_sparc::check_non_pic): Likewise.
* x86_64.cc (Target_x86_64::check_non_pic): Likewise.

gold/ChangeLog
gold/powerpc.cc
gold/sparc.cc
gold/x86_64.cc

index 7044e284127b2ad3c354e2375ecc62e70bc778ef..0f4063cb22104020d571cdc3a82c9f29b883d8c4 100644 (file)
@@ -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>
 
index cf83a55f741f9ec8943f1dd9cc56fa71d5fdb00f..9e3d327d01a396dc6947405fd04d039eaadcbfd2 100644 (file)
@@ -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;
index fe1ffa6651895ddf0794044678e39790b4d57811..d15b8339f693da3c0ddcc161653164ffcb9272b5 100644 (file)
@@ -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;
index 66123259fb86e31c5b35231ecc7279358b017291..a486da062c4d9d59174cb208d8987a24b2ac44e0 100644 (file)
@@ -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;