[PATCH] powerpc/modules: start/end_opd are only needed for ABI v1

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE623d

2 messages, 2 authors, 2024-11-17 · open the first message on its own page

[PATCH] powerpc/modules: start/end_opd are only needed for ABI v1

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2024-08-12 06:33:16

The start_opd/end_opd members of struct mod_arch_specific are only
needed for kernels built using ELF ABI v1. Guard them with an ifdef to
save a little bit of space on ELF ABI v2 kernels.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 arch/powerpc/include/asm/module.h | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/arch/powerpc/include/asm/module.h b/arch/powerpc/include/asm/module.h
index 300c777cc307..4819b2e7a916 100644
--- a/arch/powerpc/include/asm/module.h
+++ b/arch/powerpc/include/asm/module.h
@@ -35,9 +35,11 @@ struct mod_arch_specific {
 	bool toc_fixed;			/* Have we fixed up .TOC.? */
 #endif
 
+#ifdef CONFIG_PPC64_ELF_ABI_V1
 	/* For module function descriptor dereference */
 	unsigned long start_opd;
 	unsigned long end_opd;
+#endif
 #else /* powerpc64 */
 	/* Indices of PLT sections within module. */
 	unsigned int core_plt_section;
-- 
2.45.2

Re: [PATCH] powerpc/modules: start/end_opd are only needed for ABI v1

From: Michael Ellerman <hidden>
Date: 2024-11-17 12:27:18

On Mon, 12 Aug 2024 16:33:12 +1000, Michael Ellerman wrote:
The start_opd/end_opd members of struct mod_arch_specific are only
needed for kernels built using ELF ABI v1. Guard them with an ifdef to
save a little bit of space on ELF ABI v2 kernels.
Applied to powerpc/next.

[1/1] powerpc/modules: start/end_opd are only needed for ABI v1
      https://git.kernel.org/powerpc/c/f1c774ba91054a749573781f9e8fd652b9a1f633

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help