From ed4aa043c6c2ca92f4dce4d8239b9d29e2c9d8d3 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Fri, 11 Dec 2015 18:19:52 +0000 Subject: cbfstool: add ppc64 support The constant for ppc64 is 'hotstuff'. For many reasons. Note that line 2894 of elf.h is not indented. This is because in the original the line begins with a space. Checkpatch rejects that. Checkpatch also rejects changing the space to a tab because that makes it more than 80 chars. I rejected breaking the line because it makes it even less readable. All the changes forced by checkpatch make the code less readable. Herman Hollerith would be proud. Change-Id: I21f049fe8c655a30f17dff694b8f42789ad9efb7 Signed-off-by: Ronald G. Minnich Reviewed-on: https://review.coreboot.org/12711 Reviewed-by: Timothy Pearson Tested-by: build bot (Jenkins) --- util/cbfstool/elfheaders.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util/cbfstool/elfheaders.c') diff --git a/util/cbfstool/elfheaders.c b/util/cbfstool/elfheaders.c index 5ec45afbfba6..e068d38144be 100644 --- a/util/cbfstool/elfheaders.c +++ b/util/cbfstool/elfheaders.c @@ -1073,6 +1073,9 @@ static void fixup_relocations(struct elf_writer *ew) case EM_RISCV: type = R_RISCV_32; break; + case EM_PPC64: + type = R_PPC64_ADDR32; + break; default: ERROR("Unable to handle relocations for e_machine %x\n", ew->ehdr.e_machine); -- cgit v1.2.3