Marshall Dawson has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/34912 )
Change subject: rmodule: Add R_386_16 to valid reloc ......................................................................
rmodule: Add R_386_16 to valid reloc
Prepare for a relocatable module that will rely on the x86 sequenced files of prologue.inc, entry16.inc, reset.inc, entry32.inc. This generates type 20 R_386_16.
Change-Id: I56df52cb5626b99b39fa170d65920e71cafff569 Signed-off-by: Marshall Dawson marshalldawson3rd@gmail.com --- M util/cbfstool/rmodule.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/12/34912/1
diff --git a/util/cbfstool/rmodule.c b/util/cbfstool/rmodule.c index 80e8911..c79029d 100644 --- a/util/cbfstool/rmodule.c +++ b/util/cbfstool/rmodule.c @@ -31,7 +31,7 @@ type = ELF64_R_TYPE(rel->r_info);
/* Only these 2 relocations are expected to be found. */ - return (type == R_386_32 || type == R_386_PC32); + return (type == R_386_32 || type == R_386_PC32 || type == R_386_16); }
static int should_emit_386(Elf64_Rela *rel)