aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-10-09 05:52:29 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-10-09 05:52:29 +0000
commit598aaa7684fc8ffdbd9a22bef5e321e09ef8a54d (patch)
tree58a1487ec5e2dda9322cc736ca0f510a4d7db1e6 /binutils/dwarf.c
parent6ed3211e19f2ca09ba2c39b1a94e58612e492ffe (diff)
downloadgdb-598aaa7684fc8ffdbd9a22bef5e321e09ef8a54d.zip
gdb-598aaa7684fc8ffdbd9a22bef5e321e09ef8a54d.tar.gz
gdb-598aaa7684fc8ffdbd9a22bef5e321e09ef8a54d.tar.bz2
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.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r--binutils/dwarf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index ebe7271..60aa7d1 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -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);