All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix sparc32 breakage (result of vmlinux.lds.S bug)
@ 2007-10-13  7:40 Al Viro
  0 siblings, 0 replies; only message in thread
From: Al Viro @ 2007-10-13  7:40 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: davem, sam, xemul, linux-kernel

	In commit 4665079cbb2a3e17de82f2ab2940b9f97f37d65e ([NETNS]: Move
some code into __init section when CONFIG_NET_NS=n) we got a new section -
.exit.text.refok (more of 'let's tell modpost that some bogus calls are
not bogus', a-la text.init.refok).
	Unfortunately, commit in question forgot to add it to TEXT_TEXT,
with rather amusing results.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
index 0240e05..5615440 100644
--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
@@ -153,7 +153,8 @@
 #define TEXT_TEXT							\
 		ALIGN_FUNCTION();					\
 		*(.text)						\
-		*(.text.init.refok)
+		*(.text.init.refok)					\
+		*(.exit.text.refok)
 
 /* sched.text is aling to function alignment to secure we have same
  * address even at second ld pass when generating System.map */

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-13  7:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-13  7:40 [PATCH] fix sparc32 breakage (result of vmlinux.lds.S bug) Al Viro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.