From Andrew Chatham: exit on relocation error.
authorIan Lance Taylor <iant@google.com>
Thu, 11 Oct 2007 19:13:02 +0000 (19:13 +0000)
committerIan Lance Taylor <iant@google.com>
Thu, 11 Oct 2007 19:13:02 +0000 (19:13 +0000)
gold/i386.cc
gold/target-reloc.h
gold/x86_64.cc

index ce4d9615960ba0cbf94ba17baad461d89d45faf9..7645b3234bbd1c3045dec8b8ae70415a69fbd0ce 100644 (file)
@@ -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;
     }
 }
index c827d79aafc7807959b3327509288f0d62a4a726..2ebd3c97913c5c2b8ade9f87b2a8a2435ce534a8 100644 (file)
@@ -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())
index 6f938ea4d7f06f26a7fac5de6a2f67e20060164d..48b185b584b1b5d05ae2dd9d7e3a58395869fa8c 100644 (file)
@@ -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;
     }
 }