Skip to contentSkip to conversation

sparc-support-static_key-usage-in-non-module-__exit-sections.patch removed from -mm tree

merged [email protected] 1 participant 1 message Aug 4, 2016

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: sparc: support static_key usage in non-module __exit sections
has been removed from the -mm tree. Its filename was
sparc-support-static_key-usage-in-non-module-__exit-sections.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Jason Baron <[email protected]>
Subject: sparc: support static_key usage in non-module __exit sections

The jump table can reference text found in an __exit section. Thus, instead of discarding it at build/link time, include EXIT_TEXT as part of __init and release it at system boot time.

Without this patch the link fails with:

.exit.text' referenced in section __jump_table' of xxx.o:
defined in discarded section `.exit.text' of xxx.o

Cc "David S. Miller" <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Chris Metcalf <[email protected]>
Cc Heiko Carstens <[email protected]>
Cc Joe Perches <[email protected]>
Cc Martin Schwidefsky <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>

---

 arch/sparc/kernel/vmlinux.lds.S |    7 +++++++
 1 file changed, 7 insertions(+)
arch/sparc/kernel/vmlinux.lds.S renamed from arch/sparc/kernel/vmlinux.lds.S~sparc-support-static_key-usage-in-non-module-__exit-sections +7 -0
diff -puN arch/sparc/kernel/vmlinux.lds.S~sparc-support-static_key-usage-in-non-module-__exit-sections arch/sparc/kernel/vmlinux.lds.S
@@ -150,6 +150,13 @@ SECTIONS
 	}
 	PERCPU_SECTION(SMP_CACHE_BYTES)
 
+#ifdef CONFIG_JUMP_LABEL
+	. = ALIGN(PAGE_SIZE);
+	.exit.text : {
+		EXIT_TEXT
+	}
+#endif
+
 	. = ALIGN(PAGE_SIZE);
 	__init_end = .;
 	BSS_SECTION(0, 0, 0)

_

Patches currently in -mm which might be from [email protected] are