This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH][gold] Mips: Remove gold_unreachable from get_reference_flags
- From: Vladimir Radosavljevic <Vladimir dot Radosavljevic at imgtec dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Cc: "ccoutant at gmail dot com" <ccoutant at gmail dot com>, Petar Jovanovic <Petar dot Jovanovic at imgtec dot com>
- Date: Tue, 7 Feb 2017 18:59:58 +0000
- Subject: [PATCH][gold] Mips: Remove gold_unreachable from get_reference_flags
- Authentication-results: sourceware.org; auth=none
gold_unreachable in Scan::get_reference_flags prevents gold to produce error if
relocation is not supported.
Regards,
Vladimir
ChangeLog -
* mips.cc (Target_mips::Scan::get_reference_flags): Remove
gold_unreachable from default case.
diff --git a/gold/mips.cc b/gold/mips.cc
index 56af570..349174f 100644
--- a/gold/mips.cc
+++ b/gold/mips.cc
@@ -12261,7 +12261,6 @@ Target_mips<size, big_endian>::Scan::get_reference_flags(
case elfcpp::R_MIPS_COPY:
case elfcpp::R_MIPS_JUMP_SLOT:
default:
- gold_unreachable();
// Not expected. We will give an error later.
return 0;
}