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.
This commit is contained in:
parent
6ed3211e19
commit
598aaa7684
4 changed files with 19 additions and 7 deletions
|
@ -163,7 +163,7 @@ byte_get_big_endian (unsigned char *field, int size)
|
|||
}
|
||||
}
|
||||
|
||||
static dwarf_vma
|
||||
dwarf_vma
|
||||
byte_get_signed (unsigned char *field, int size)
|
||||
{
|
||||
dwarf_vma x = byte_get (field, size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue