hsdis requires binutils source tree for building. Most of Linux distros provide 
binutils package. (e.g. binutils-devel from Fedora, binutils-dev from Ubuntu)
It would be nice to be able to use them like zlib and lcms.

Unfortunately bfdver.h would not be provided because it is not included install 
files (`make install`) in binutils. So I changed to use `SEC_ELF_OCTETS` macro 
to detect binutils version because it was introduced at the same time as 
`bfd_octets_per_byte()`.

https://sourceware.org/git/?p=binutils-gdb.git;a=commit;f=bfd/bfd-in2.h;h=618265039f697eab9e72bb58b95fc2d32925df58

Please see [JDK-8244819](https://bugs.openjdk.java.net/browse/JDK-8244819) why 
we need version check.

-------------

Commit messages:
 - 8277089: Use system binutils to build hsdis

Changes: https://git.openjdk.java.net/jdk/pull/6378/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=6378&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8277089
  Stats: 24 lines in 3 files changed: 19 ins; 1 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/6378.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/6378/head:pull/6378

PR: https://git.openjdk.java.net/jdk/pull/6378

Reply via email to