summaryrefslogtreecommitdiff
path: root/util/cbfstool/elfheaders.c
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2018-11-26 15:54:21 +0100
committerPatrick Georgi <pgeorgi@google.com>2018-12-19 06:05:52 +0000
commit565bebe0b3c506b978ad5c9a66cb67ebe0ac6329 (patch)
treef149dad8f48c43e5d4c27bbd711473df46d52f3f /util/cbfstool/elfheaders.c
parentf7fdc3a5ab21333aa08d58681795ddf65df170eb (diff)
util/cbfstool: Support AMD64 rmodules
Add support for 64bit rmodule, as required for relocatable ramstage on x86_64. Change-Id: I7fbb3b4c0f76ce82c090b5f16f67a728b6bf94a5 Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/c/29874 Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/cbfstool/elfheaders.c')
-rw-r--r--util/cbfstool/elfheaders.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/cbfstool/elfheaders.c b/util/cbfstool/elfheaders.c
index 9d02c30573..8da54d09e0 100644
--- a/util/cbfstool/elfheaders.c
+++ b/util/cbfstool/elfheaders.c
@@ -1072,6 +1072,9 @@ static void fixup_relocations(struct elf_writer *ew)
case EM_386:
type = R_386_32;
break;
+ case EM_X86_64:
+ type = R_AMD64_64;
+ break;
case EM_ARM:
type = R_ARM_ABS32;
break;