public inbox for linux-parisc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] parisc: Enable HAVE_ARCH_PREL32_RELOCATIONS
@ 2023-09-14 16:27 Helge Deller
  2023-09-21  8:55 ` Helge Deller
  0 siblings, 1 reply; 2+ messages in thread
From: Helge Deller @ 2023-09-14 16:27 UTC (permalink / raw)
  To: linux-parisc

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>

---

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)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] parisc: Enable HAVE_ARCH_PREL32_RELOCATIONS
  2023-09-14 16:27 [PATCH] parisc: Enable HAVE_ARCH_PREL32_RELOCATIONS Helge Deller
@ 2023-09-21  8:55 ` Helge Deller
  0 siblings, 0 replies; 2+ messages in thread
From: Helge Deller @ 2023-09-21  8:55 UTC (permalink / raw)
  To: linux-parisc

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-21 18:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-14 16:27 [PATCH] parisc: Enable HAVE_ARCH_PREL32_RELOCATIONS Helge Deller
2023-09-21  8:55 ` Helge Deller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox