diff mbox series

parisc: Enable HAVE_ARCH_PREL32_RELOCATIONS

Message ID ZQM0i4lgvIRN/Ptd@ls3530 (mailing list archive)
State New, archived
Headers show
Series parisc: Enable HAVE_ARCH_PREL32_RELOCATIONS | expand

Commit Message

Helge Deller Sept. 14, 2023, 4:27 p.m. UTC
Enable HAVE_ARCH_PREL32_RELOCATIONS for 64-bit kernels, which
will save some bytes in the final binary.

Signed-off-by: Helge Deller <deller@gmx.de>

---

Comments

Helge Deller Sept. 21, 2023, 8:55 a.m. UTC | #1
On 9/14/23 18:27, Helge Deller wrote:
> 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.

> --- a/arch/parisc/Kconfig
> +	select HAVE_ARCH_PREL32_RELOCATIONS if 64BIT
diff mbox series

Patch

diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
index a15ab147af2e..4686f14e45ee 100644
--- a/arch/parisc/Kconfig
+++ b/arch/parisc/Kconfig
@@ -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)