Don't give an internal error for unsupported relocations.
gold/ * mips.cc (Target_mips::Scan::get_reference_flags): Remove gold_unreachable from default case.
This commit is contained in:
parent
e242ece1e8
commit
f902956974
@ -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>
|
2017-02-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
|
||||||
|
|
||||||
PR gold/21111
|
PR gold/21111
|
||||||
* mips.cc (Mips_relocate_functions::relhigher): New method.
|
* mips.cc (Mips_relocate_functions::relhigher): New method.
|
||||||
(Mips_relocate_functions::relhighest): Likewise.
|
(Mips_relocate_functions::relhighest): Likewise.
|
||||||
(mips_get_size_for_reloc): Add support for relocs: R_MIPS_HIGHER and
|
(mips_get_size_for_reloc): Add support for relocs: R_MIPS_HIGHER and
|
||||||
R_MIPS_HIGHEST.
|
R_MIPS_HIGHEST.
|
||||||
(Target_mips::Scan::local): Add support for relocs: R_MIPS_HIGHER,
|
(Target_mips::Scan::local): Add support for relocs: R_MIPS_HIGHER,
|
||||||
R_MIPS_HIGHEST, R_MICROMIPS_HIGHER and R_MICROMIPS_HIGHEST.
|
R_MIPS_HIGHEST, R_MICROMIPS_HIGHER and R_MICROMIPS_HIGHEST.
|
||||||
(Target_mips::Scan::global): Likewise.
|
(Target_mips::Scan::global): Likewise.
|
||||||
(Target_mips::Scan::get_reference_flags): Likewise.
|
(Target_mips::Scan::get_reference_flags): Likewise.
|
||||||
(Target_mips::Relocate::relocate): Call static methods for resolving
|
(Target_mips::Relocate::relocate): Call static methods for resolving
|
||||||
HIGHER and HIGHEST relocations.
|
HIGHER and HIGHEST relocations.
|
||||||
|
|
||||||
2017-02-03 Rahul Chaudhry <rahulchaudhry@google.com>
|
2017-02-03 Rahul Chaudhry <rahulchaudhry@google.com>
|
||||||
|
|
||||||
|
@ -12334,7 +12334,6 @@ Target_mips<size, big_endian>::Scan::get_reference_flags(
|
|||||||
case elfcpp::R_MIPS_COPY:
|
case elfcpp::R_MIPS_COPY:
|
||||||
case elfcpp::R_MIPS_JUMP_SLOT:
|
case elfcpp::R_MIPS_JUMP_SLOT:
|
||||||
default:
|
default:
|
||||||
gold_unreachable();
|
|
||||||
// Not expected. We will give an error later.
|
// Not expected. We will give an error later.
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user