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 <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/c/31469 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
3a42c88510
commit
62b4b44961
|
@ -66,7 +66,6 @@ static int should_emit_amd64(Elf64_Rela *rel)
|
||||||
|
|
||||||
/* Only emit absolute relocations */
|
/* Only emit absolute relocations */
|
||||||
return (type == R_AMD64_64 ||
|
return (type == R_AMD64_64 ||
|
||||||
type == R_AMD64_PC64 ||
|
|
||||||
type == R_AMD64_32S ||
|
type == R_AMD64_32S ||
|
||||||
type == R_AMD64_32);
|
type == R_AMD64_32);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue