summaryrefslogtreecommitdiff
path: root/binutils/sysdep.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-07-16 13:28:30 +0930
committerAlan Modra <amodra@gmail.com>2016-07-16 13:28:30 +0930
commit16412c3bc4b00ecbf87251bfd2c92584615412bb (patch)
tree46ee50cb043301870d0f42832bab695b93973086 /binutils/sysdep.h
parent00dad9a491b3bb0069b5a1471b8f32052e071965 (diff)
downloadbinutils-gdb-16412c3bc4b00ecbf87251bfd2c92584615412bb.tar.gz
Don't include libbfd.h outside of bfd, part 3
Fix od-macho.c to use a leb128 function from binutils/dwarf.c rather than one from bfd/libbfd.c. binutils/ * elfcomm.h (HOST_WIDEST_INT): Move to.. * sysdep.h: ..here. * od-macho.c: Don't include libbfd.h. Do include dwarf.h (dump_dyld_info_rebase): Use read_leb128 rather than read_unsigned_leb128. (dump_dyld_info_bind, dump_dyld_info_export_1): Likewise. (dump_segment_split_info): Likewise. (dump_dyld_info): Rename vars to avoid shadowing dwarf.h enums. (dump_load_command): Likewise.
Diffstat (limited to 'binutils/sysdep.h')
-rw-r--r--binutils/sysdep.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/binutils/sysdep.h b/binutils/sysdep.h
index b4d8049bb4e..f28d9dcd460 100644
--- a/binutils/sysdep.h
+++ b/binutils/sysdep.h
@@ -187,4 +187,12 @@ size_t strnlen (const char *, size_t);
# endif
#endif
+#if defined HAVE_LONG_LONG && SIZEOF_LONG_LONG > SIZEOF_LONG
+/* We can't use any bfd types here since readelf may define BFD64 and
+ objdump may not. */
+#define HOST_WIDEST_INT long long
+#else
+#define HOST_WIDEST_INT long
+#endif
+
#endif /* _BIN_SYSDEP_H */