Minor changes to permit building with older toolchains.
Make some code conditional on EM_RISCV or PR_SVE_GET_VL being defined. This was needed on RHE7, which will be around for a few more years.
We also check for another older macro not being defined in case all the macros get replaced by an enum.
The x86 failures look like https://github.com/DynamoRIO/dynamorio/issues/6417
On RHEL 7, /usr/include/elf.h does not define EM_RISCV, but now we have third_party/elfutils/libelf/elf.h that does define it. Could we use the latter header instead of the former?
On RHEL 7,
/usr/include/elf.hdoes not define EM_RISCV, but now we havethird_party/elfutils/libelf/elf.hthat does define it. Could we use the latter header instead of the former?
Submodules used to be optional but we did make elfutils required on Linux so yes that seems reasonable.
On RHEL 7,
/usr/include/elf.hdoes not define EM_RISCV, but now we havethird_party/elfutils/libelf/elf.hthat does define it. Could we use the latter header instead of the former?
@egrimley-arm do you want to try this approach if you are still planning to work on this issue