From dcc1c86c7fc89454d86153a590230819ccbc9bfe Mon Sep 17 00:00:00 2001 From: Marcelo Povoa Date: Thu, 6 Feb 2014 15:17:33 -0800 Subject: aarch64: Add ELF support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BUG=None BRANCH=none TEST=Build coreboot Signed-off-by: Marcelo Povoa Original-Change-Id: I38684794fdf5bd95a32f157128434a13f5e2a2d5 Original-Reviewed-on: https://chromium-review.googlesource.com/185271 Original-Reviewed-by: Stefan Reinauer Original-Reviewed-by: David Hendricks Original-Tested-by: Marcelo Póvoa Original-Commit-Queue: Marcelo Póvoa (cherry picked from commit 67b74d3dc98a773c3d82b141af178b13e9bb6c06) Signed-off-by: Marc Jones Change-Id: Id82a31dc94bb181f2d24eddcbfbfb6d6cdc99643 Reviewed-on: http://review.coreboot.org/7659 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- util/cbfstool/elfheaders.c | 1 + 1 file changed, 1 insertion(+) (limited to 'util/cbfstool/elfheaders.c') diff --git a/util/cbfstool/elfheaders.c b/util/cbfstool/elfheaders.c index 634e76a136..bee44d8ca9 100644 --- a/util/cbfstool/elfheaders.c +++ b/util/cbfstool/elfheaders.c @@ -610,6 +610,7 @@ elf_headers(const struct buffer *pinput, // The tool may work in architecture-independent way. if (arch != CBFS_ARCHITECTURE_UNKNOWN && + !((ehdr->e_machine == EM_AARCH64) && (arch == CBFS_ARCHITECTURE_AARCH64)) && !((ehdr->e_machine == EM_ARM) && (arch == CBFS_ARCHITECTURE_ARM)) && !((ehdr->e_machine == EM_RISCV) && (arch == CBFS_ARCHITECTURE_RISCV)) && !((ehdr->e_machine == EM_386) && (arch == CBFS_ARCHITECTURE_X86))) { -- cgit v1.2.3