Use BYTE_GET_SIGNED on r_addend.
commit5ffb6902f729b0f8ea543bcfb7d98aa1ca212365
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 9 Oct 2010 05:52:28 +0000 (9 05:52 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 9 Oct 2010 05:52:28 +0000 (9 05:52 +0000)
treeb175d808e46879732ba3b9114e183b769a516c07
parent78272f892df34f960d804ec5aafe63a042303fc7
Use BYTE_GET_SIGNED on r_addend.

2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>

* dwarf.c (byte_get_signed): Make it extern.

* dwarf.h (byte_get_signed): New.

* readelf.c (BYTE_GET_SIGNED): New.
(slurp_rela_relocs): Use BYTE_GET_SIGNED on r_addend.
(dump_relocations): Properly dump r_addend.
binutils/ChangeLog
binutils/dwarf.c
binutils/dwarf.h
binutils/readelf.c