summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-11 19:13:02 +0000
committerIan Lance Taylor <iant@google.com>2007-10-11 19:13:02 +0000
commit7d00dcbd9cabb4e810e875fc821b1ed26f07c20f (patch)
tree928d1b88a7a7dd45dfa51417591a67969860917c
parentb33682a7ae24336d16a081b214c2292d1aa95960 (diff)
downloadbinutils-gdb-7d00dcbd9cabb4e810e875fc821b1ed26f07c20f.tar.gz
From Andrew Chatham: exit on relocation error.
-rw-r--r--gold/i386.cc10
-rw-r--r--gold/target-reloc.h2
-rw-r--r--gold/x86_64.cc8
3 files changed, 10 insertions, 10 deletions
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;
}
}