From: Cary Coutant Date: Fri, 27 Mar 2009 18:19:09 +0000 (+0000) Subject: * powerpc.cc (Target_powerpc::check_non_pic): Assert that output is X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=33aea2fd651cf208e9e3c94c43cc3e10a12f03ea;p=binutils-gdb.git * 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. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 7044e284127..0f4063cb221 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,10 @@ +2009-03-27 Cary Coutant + + * 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 * 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 diff --git a/gold/powerpc.cc b/gold/powerpc.cc index cf83a55f741..9e3d327d01a 100644 --- a/gold/powerpc.cc +++ b/gold/powerpc.cc @@ -1094,6 +1094,7 @@ Target_powerpc::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 fe1ffa66518..d15b8339f69 100644 --- a/gold/sparc.cc +++ b/gold/sparc.cc @@ -1589,6 +1589,7 @@ Target_sparc::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 66123259fb8..a486da062c4 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;