aboutsummaryrefslogtreecommitdiff
path: root/binutils/elfcomm.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/elfcomm.h
parent00dad9a491b3bb0069b5a1471b8f32052e071965 (diff)
downloadbinutils-16412c3bc4b00ecbf87251bfd2c92584615412bb.zip
binutils-16412c3bc4b00ecbf87251bfd2c92584615412bb.tar.gz
binutils-16412c3bc4b00ecbf87251bfd2c92584615412bb.tar.bz2
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/elfcomm.h')
-rw-r--r--binutils/elfcomm.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/binutils/elfcomm.h b/binutils/elfcomm.h
index 6ffd0c1..f9c43d1 100644
--- a/binutils/elfcomm.h
+++ b/binutils/elfcomm.h
@@ -29,13 +29,6 @@
void error (const char *, ...) ATTRIBUTE_PRINTF_1;
void warn (const char *, ...) ATTRIBUTE_PRINTF_1;
-#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
typedef unsigned HOST_WIDEST_INT elf_vma;
extern void (*byte_put) (unsigned char *, elf_vma, int);