diff options
author | Cary Coutant <ccoutant@google.com> | 2015-01-14 10:30:14 -0800 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2015-01-14 10:30:14 -0800 |
commit | 3d0064a95d413e7d19ff9c7f6db53fefe44a697b (patch) | |
tree | 8e7a3d1e9d8c6490e7976627a5ca97697c3b26ea /gold/ChangeLog | |
parent | cdf436294f7e0e3bd7668a81dfd5922fdd1aec14 (diff) | |
download | gdb-3d0064a95d413e7d19ff9c7f6db53fefe44a697b.zip gdb-3d0064a95d413e7d19ff9c7f6db53fefe44a697b.tar.gz gdb-3d0064a95d413e7d19ff9c7f6db53fefe44a697b.tar.bz2 |
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.
Diffstat (limited to 'gold/ChangeLog')
-rw-r--r-- | gold/ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 1e73aa8..9a52a3e 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,14 @@ +2015-01-14 Sasa Stankovic <Sasa.Stankovic@imgtec.com> + + * 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. + 2015-01-09 Cary Coutant <ccoutant@google.com> * layout.cc (Layout::set_segment_offsets): Don't align start of segment |