From 5ffb6902f729b0f8ea543bcfb7d98aa1ca212365 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 9 Oct 2010 05:52:28 +0000 Subject: Use BYTE_GET_SIGNED on r_addend. 2010-10-08 H.J. Lu * 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/dwarf.h | 1 + 1 file changed, 1 insertion(+) (limited to 'binutils/dwarf.h') diff --git a/binutils/dwarf.h b/binutils/dwarf.h index df90ae0c33..1c47c5efa5 100644 --- a/binutils/dwarf.h +++ b/binutils/dwarf.h @@ -101,6 +101,7 @@ typedef struct debug_info; extern dwarf_vma (*byte_get) (unsigned char *, int); +extern dwarf_vma byte_get_signed (unsigned char *, int); extern dwarf_vma byte_get_little_endian (unsigned char *, int); extern dwarf_vma byte_get_big_endian (unsigned char *, int); -- cgit v1.2.1