forked from Imagelibrary/binutils-gdb
Add unaligned check for R_MIPS_PC16.
gold/
* mips.cc (Mips_relocate_functions::relpc16): Add unaligned check.
This commit is contained in:
committed by
Cary Coutant
parent
f5b117594f
commit
beceef5043
@@ -1,3 +1,7 @@
|
||||
2016-06-20 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
|
||||
|
||||
* mips.cc (Mips_relocate_functions::relpc16): Add unaligned check.
|
||||
|
||||
2016-06-20 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
|
||||
|
||||
* mips.cc (relocation_needs_la25_stub): Add support for relocs:
|
||||
|
||||
@@ -4690,6 +4690,9 @@ class Mips_relocate_functions : public Relocate_functions<size, big_endian>
|
||||
else
|
||||
elfcpp::Swap<32, big_endian>::writeval(wv, val);
|
||||
|
||||
if (psymval->value(object, addend) & 3)
|
||||
return This::STATUS_PCREL_UNALIGNED;
|
||||
|
||||
return check_overflow<18>(x);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user