Revert "x86/module: prepare module loading for ROX allocations of text"

The module code does not create a writable copy of the executable memory
anymore so there is no need to handle it in module relocation and
alternatives patching.

This reverts commit 9bfc4824fd.

Signed-off-by: "Mike Rapoport (Microsoft)" <rppt@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250126074733.1384926-8-rppt@kernel.org
This commit is contained in:
Mike Rapoport (Microsoft) 2025-01-26 09:47:31 +02:00 • committed by Peter Zijlstra
commit 1d7e707af4
6 changed files with 117 additions and 167 deletions