diff options
author | Mathew McBride <matt@traverse.com.au> | 2023-02-23 16:51:36 +1100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2023-03-19 18:20:18 +0100 |
commit | c98e09f01bc6788644d22ffd02cd7aaaef63f5ea (patch) | |
tree | 284d63564a34528c28cf606b5c80b671e80fb18d /tools/cbootimage | |
parent | d033c3ba87afe99012269b39b4990abefc340c09 (diff) | |
download | upstream-c98e09f01bc6788644d22ffd02cd7aaaef63f5ea.tar.gz upstream-c98e09f01bc6788644d22ffd02cd7aaaef63f5ea.tar.bz2 upstream-c98e09f01bc6788644d22ffd02cd7aaaef63f5ea.zip |
tools: update elf.h
OpenWrt contains a 2012 copy of glibc's elf.h, which predates the
introduction of some newer architectures like Arm64 and RISC-V.
Linux 5.13 introduced the "gen-hyprel" tool into the kernel compile
(when virtualization/KVM is enabled) which requires EM_AARCH64 to be
defined.
arch/arm64/kvm/hyp/nvhe/gen-hyprel.c: In function 'init_elf':
arch/arm64/kvm/hyp/nvhe/gen-hyprel.c:289:43: error: 'EM_AARCH64'
undeclared (first use in this function); did you mean 'EM_IA_64'?
289 | assert_eq(elf16toh(elf.ehdr->e_machine), EM_AARCH64, "%u");
| ^~~~~~~~~~
Update the copy of elf.h from the latest glibc to fix this.
Compile-tested: ath79, armvirt, mpc85xx, x86
Run-tested: armvirt
Signed-off-by: Mathew McBride <matt@traverse.com.au>
Diffstat (limited to 'tools/cbootimage')
0 files changed, 0 insertions, 0 deletions