Fix a bug in resolving HI16/LO16 relocation pairs for MIPS.
authorCary Coutant <ccoutant@google.com>
Wed, 14 Jan 2015 18:30:14 +0000 (10:30 -0800)
committerCary Coutant <ccoutant@google.com>
Wed, 14 Jan 2015 18:30:14 +0000 (10:30 -0800)
commit3d0064a95d413e7d19ff9c7f6db53fefe44a697b
tree8e7a3d1e9d8c6490e7976627a5ca97697c3b26ea
parentcdf436294f7e0e3bd7668a81dfd5922fdd1aec14
Fix a bug in resolving HI16/LO16 relocation pairs for MIPS.

2015-01-14  Sasa Stankovic  <Sasa.Stankovic@imgtec.com>

gold/
* mips.cc (reloc_high): Add r_sym.
(Mips_relocate_functions::relhi16): Add r_sym parameter. Pass r_sym to
reloc_high constructor.
(Mips_relocate_functions::relgot16_local): Likewise.
(Mips_relocate_functions::rello16): Add r_sym parameter. Use r_sym and
r_type to decide whether LO16 matches HI16.
(Target_mips::Relocate::relocate): Pass r_sym to calls to relhi16,
rello16 and relgot16_local.
gold/ChangeLog
gold/mips.cc