aboutsummaryrefslogtreecommitdiff
path: root/gdb/avr-tdep.c
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@gmail.com>2015-10-06 14:43:49 -0700
committerCary Coutant <ccoutant@gmail.com>2015-10-06 14:44:10 -0700
commit9eacb935acd69f6532135ec1353630db5111467c (patch)
tree5a40ad555d9ab1241c1e0c20884eda83b6f0feba /gdb/avr-tdep.c
parent8c6da3dfbc65354975680bf7d8e273dbdca5de87 (diff)
downloadgdb-9eacb935acd69f6532135ec1353630db5111467c.zip
gdb-9eacb935acd69f6532135ec1353630db5111467c.tar.gz
gdb-9eacb935acd69f6532135ec1353630db5111467c.tar.bz2
Fix bug when applying R_SPARC_GOTDATA_OP* relocations to local symbols.
When applying a GOTDATA_OP* relocation to a local symbol, the addend is being applied after getting the value of the symbol. When the relocation refers to a merge section, however, the addend must be provided when computing the symbol value, since the contents of the section may have been rearranged. gold/ PR gold/18855 * sparc.cc (Sparc_relocate_functions::gdop_hix22): Remove addend parameter. (Sparc_relocate_functions::gdop_lox10): Likewise. (Target_sparc::Relocate::relocate): Use addend when computing symbol value for R_SPARC_GOTDATA_OP*.
Diffstat (limited to 'gdb/avr-tdep.c')
0 files changed, 0 insertions, 0 deletions