Don't include libbfd.h outside of bfd, part 3
authorAlan Modra <amodra@gmail.com>
Sat, 16 Jul 2016 03:58:30 +0000 (13:28 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 16 Jul 2016 03:58:30 +0000 (13:28 +0930)
commit16412c3bc4b00ecbf87251bfd2c92584615412bb
tree46ee50cb043301870d0f42832bab695b93973086
parent00dad9a491b3bb0069b5a1471b8f32052e071965
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.
binutils/ChangeLog
binutils/elfcomm.h
binutils/od-macho.c
binutils/sysdep.h