From 62b4b4496190c69b3e0f8562a3c560913af119bf Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Fri, 15 Feb 2019 14:45:58 +0100 Subject: rmodule: Don't emit reloc for R_X86_64_PC64 Relocations for PC relative instructions must not emitted. As PC64 are unlikely with current code, it never was an issue. Change-Id: Ife472a287ff15b1c04a516e25ff13221441fd122 Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/31469 Reviewed-by: Aaron Durbin Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- util/cbfstool/rmodule.c | 1 - 1 file changed, 1 deletion(-) (limited to 'util/cbfstool') diff --git a/util/cbfstool/rmodule.c b/util/cbfstool/rmodule.c index f270e3ec8f..817bc604f0 100644 --- a/util/cbfstool/rmodule.c +++ b/util/cbfstool/rmodule.c @@ -66,7 +66,6 @@ static int should_emit_amd64(Elf64_Rela *rel) /* Only emit absolute relocations */ return (type == R_AMD64_64 || - type == R_AMD64_PC64 || type == R_AMD64_32S || type == R_AMD64_32); } -- cgit v1.2.3