From: Ian Lance Taylor Date: Thu, 11 Oct 2007 19:13:02 +0000 (+0000) Subject: From Andrew Chatham: exit on relocation error. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d00dcbd9cabb4e810e875fc821b1ed26f07c20f;p=binutils-gdb.git From Andrew Chatham: exit on relocation error. --- diff --git a/gold/i386.cc b/gold/i386.cc index ce4d9615960..7645b3234bb 100644 --- a/gold/i386.cc +++ b/gold/i386.cc @@ -1291,7 +1291,7 @@ Target_i386::Relocate::relocate(const Relocate_info<32, false>* relinfo, program_name, relinfo->location(relnum, rel.get_r_offset()).c_str(), r_type); - // gold_exit(false); + gold_exit(false); break; } @@ -1353,7 +1353,7 @@ Target_i386::Relocate::relocate_tls(const Relocate_info<32, false>* relinfo, program_name, relinfo->location(relnum, rel.get_r_offset()).c_str(), r_type); - // gold_exit(false); + gold_exit(false); break; case elfcpp::R_386_TLS_GD: @@ -1368,7 +1368,7 @@ Target_i386::Relocate::relocate_tls(const Relocate_info<32, false>* relinfo, program_name, relinfo->location(relnum, rel.get_r_offset()).c_str(), r_type); - // gold_exit(false); + gold_exit(false); break; case elfcpp::R_386_TLS_LDM: @@ -1391,7 +1391,7 @@ Target_i386::Relocate::relocate_tls(const Relocate_info<32, false>* relinfo, program_name, relinfo->location(relnum, rel.get_r_offset()).c_str(), r_type); - // gold_exit(false); + gold_exit(false); break; case elfcpp::R_386_TLS_LDO_32: @@ -1414,7 +1414,7 @@ Target_i386::Relocate::relocate_tls(const Relocate_info<32, false>* relinfo, program_name, relinfo->location(relnum, rel.get_r_offset()).c_str(), r_type); - // gold_exit(false); + gold_exit(false); break; } } diff --git a/gold/target-reloc.h b/gold/target-reloc.h index c827d79aafc..2ebd3c97913 100644 --- a/gold/target-reloc.h +++ b/gold/target-reloc.h @@ -200,7 +200,7 @@ relocate_section( fprintf(stderr, _("%s: %s: undefined reference to '%s'\n"), program_name, relinfo->location(i, offset).c_str(), sym->name()); - // gold_exit(false); + gold_exit(false); } if (sym != NULL && sym->has_warning()) diff --git a/gold/x86_64.cc b/gold/x86_64.cc index 6f938ea4d7f..48b185b584b 100644 --- a/gold/x86_64.cc +++ b/gold/x86_64.cc @@ -1238,7 +1238,7 @@ Target_x86_64::Relocate::relocate(const Relocate_info<64, false>* relinfo, program_name, relinfo->location(relnum, rel.get_r_offset()).c_str(), r_type); - // gold_exit(false); + gold_exit(false); break; } @@ -1293,7 +1293,7 @@ Target_x86_64::Relocate::relocate_tls(const Relocate_info<64, false>* relinfo, program_name, relinfo->location(relnum, rel.get_r_offset()).c_str(), r_type); - // gold_exit(false); + gold_exit(false); break; case elfcpp::R_X86_64_TLSGD: @@ -1308,7 +1308,7 @@ Target_x86_64::Relocate::relocate_tls(const Relocate_info<64, false>* relinfo, program_name, relinfo->location(relnum, rel.get_r_offset()).c_str(), r_type); - // gold_exit(false); + gold_exit(false); break; case elfcpp::R_X86_64_TLSLD: @@ -1316,7 +1316,7 @@ Target_x86_64::Relocate::relocate_tls(const Relocate_info<64, false>* relinfo, program_name, relinfo->location(relnum, rel.get_r_offset()).c_str(), r_type); - // gold_exit(false); + gold_exit(false); break; } }