]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/readelf.c
Use BYTE_GET_SIGNED on r_addend.
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 9 Oct 2010 05:52:29 +0000 (05:52 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 9 Oct 2010 05:52:29 +0000 (05:52 +0000)
commit598aaa7684fc8ffdbd9a22bef5e321e09ef8a54d
tree58a1487ec5e2dda9322cc736ca0f510a4d7db1e6
parent6ed3211e19f2ca09ba2c39b1a94e58612e492ffe
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