diff options
author | Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com> | 2017-02-15 00:55:04 -0800 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2017-02-15 00:55:36 -0800 |
commit | f9029569740a8ef2a66b3578fa6c89c0ab62be52 (patch) | |
tree | 35ca5b049456ce22039fe95dcb0e7cc2faaff66e | |
parent | e242ece1e890b66d226b38b489a7edd79b3656d5 (diff) | |
download | fsf-binutils-gdb-f9029569740a8ef2a66b3578fa6c89c0ab62be52.zip fsf-binutils-gdb-f9029569740a8ef2a66b3578fa6c89c0ab62be52.tar.gz fsf-binutils-gdb-f9029569740a8ef2a66b3578fa6c89c0ab62be52.tar.bz2 |
Don't give an internal error for unsupported relocations.
gold/
* mips.cc (Target_mips::Scan::get_reference_flags): Remove
gold_unreachable from default case.
-rw-r--r-- | gold/ChangeLog | 25 | ||||
-rw-r--r-- | gold/mips.cc | 1 |
2 files changed, 15 insertions, 11 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 9b8abc7..3f41834 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -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> diff --git a/gold/mips.cc b/gold/mips.cc index 7b19e4c..95bf6db 100644 --- a/gold/mips.cc +++ b/gold/mips.cc @@ -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; } |