Don't give an internal error for unsupported relocations.
authorVladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
Wed, 15 Feb 2017 08:55:04 +0000 (00:55 -0800)
committerCary Coutant <ccoutant@gmail.com>
Wed, 15 Feb 2017 08:55:36 +0000 (00:55 -0800)
gold/
* mips.cc (Target_mips::Scan::get_reference_flags): Remove
gold_unreachable from default case.

gold/ChangeLog
gold/mips.cc

index 9b8abc7a83dfa60b02706e31fe47494e17905e74..3f41834689140e74c57f4bb07f86a1a5fc66af7e 100644 (file)
@@ -1,16 +1,21 @@
+2017-02-15  Vladimir Radosavljevic  <Vladimir.Radosavljevic@imgtec.com>
+
+       * mips.cc (Target_mips::Scan::get_reference_flags): Remove
+       gold_unreachable from default case.
+
 2017-02-15  Vladimir Radosavljevic  <Vladimir.Radosavljevic@imgtec.com>
 
        PR gold/21111
-        * mips.cc (Mips_relocate_functions::relhigher): New method.
-        (Mips_relocate_functions::relhighest): Likewise.
-        (mips_get_size_for_reloc): Add support for relocs: R_MIPS_HIGHER and
-        R_MIPS_HIGHEST.
-        (Target_mips::Scan::local): Add support for relocs: R_MIPS_HIGHER,
-        R_MIPS_HIGHEST, R_MICROMIPS_HIGHER and R_MICROMIPS_HIGHEST.
-        (Target_mips::Scan::global): Likewise.
-        (Target_mips::Scan::get_reference_flags): Likewise.
-        (Target_mips::Relocate::relocate): Call static methods for resolving
-        HIGHER and HIGHEST relocations.
+       * mips.cc (Mips_relocate_functions::relhigher): New method.
+       (Mips_relocate_functions::relhighest): Likewise.
+       (mips_get_size_for_reloc): Add support for relocs: R_MIPS_HIGHER and
+       R_MIPS_HIGHEST.
+       (Target_mips::Scan::local): Add support for relocs: R_MIPS_HIGHER,
+       R_MIPS_HIGHEST, R_MICROMIPS_HIGHER and R_MICROMIPS_HIGHEST.
+       (Target_mips::Scan::global): Likewise.
+       (Target_mips::Scan::get_reference_flags): Likewise.
+       (Target_mips::Relocate::relocate): Call static methods for resolving
+       HIGHER and HIGHEST relocations.
 
 2017-02-03  Rahul Chaudhry  <rahulchaudhry@google.com>
 
index 7b19e4c62cbe7a854cb535aad74b55486e804d6b..95bf6db85f09b28872a158cef20731a7b1944686 100644 (file)
@@ -12334,7 +12334,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;
     }