]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/relocs: Handle R_X86_64_REX_GOTPCRELX relocations
authorBrian Gerst <brgerst@gmail.com>
Thu, 23 Jan 2025 19:07:37 +0000 (14:07 -0500)
committerIngo Molnar <mingo@kernel.org>
Tue, 18 Feb 2025 09:15:02 +0000 (10:15 +0100)
commitcb7927fda002ca49ae62e2782c1692acc7b80c67
treea4fec875e219d021be8c6846c84cd39e7aa2112c
parentf58b63857ae38b4484185b799a2759274b930c92
x86/relocs: Handle R_X86_64_REX_GOTPCRELX relocations

Clang may produce R_X86_64_REX_GOTPCRELX relocations when redefining the
stack protector location.  Treat them as another type of PC-relative
relocation.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250123190747.745588-6-brgerst@gmail.com
arch/x86/tools/relocs.c