Skip to contentSkip to conversation

parisc: Enable HAVE_ARCH_PREL32_RELOCATIONS

PATCH In review Helge Deller 1 participant 2 messages Sep 14, 2023 – Sep 21, 2023 PA-RISC architecture

lore
Share & tools
lore

Helge Deller

author maintainer
#0 lore raw

PATCH 1/1 parisc: Enable HAVE_ARCH_PREL32_RELOCATIONS

Enable HAVE_ARCH_PREL32_RELOCATIONS for 64-bit kernels, which will save some bytes in the final binary.

---

arch/parisc/Kconfig +1 -0
index a15ab147af2e..4686f14e45ee 100644
@@ -73,6 +73,7 @@ config PARISC
 	select NEED_DMA_MAP_STATE
 	select NEED_SG_DMA_LENGTH
 	select HAVE_ARCH_KGDB
+	select HAVE_ARCH_PREL32_RELOCATIONS if 64BIT
 	select HAVE_KPROBES
 	select HAVE_KRETPROBES
 	select HAVE_DYNAMIC_FTRACE if $(cc-option,-fpatchable-function-entry=1,1)
author maintainer
#1 lore raw
Quoted 2 lines · Helge Deller

Enable HAVE_ARCH_PREL32_RELOCATIONS for 64-bit kernels, which will save some bytes in the final binary.

FYI - ignore this patch.
It will not work without adding dereference_function_descriptor() calls where the addresses are resolved.

Quoted 2 lines

--- a/arch/parisc/Kconfig

arch/parisc/Kconfig +1 -0
+	select HAVE_ARCH_PREL32_RELOCATIONS if 64BIT