Skip to content

Commit

Permalink
fix sparc32 breakage (result of vmlinux.lds.S bug)
Browse files Browse the repository at this point in the history
In commit 4665079 ("[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, the commit in question forgot to add it to TEXT_TEXT,
with rather amusing results.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 13, 2007
1 parent c5d6471 commit 23ec23c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/asm-generic/vmlinux.lds.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 23ec23c

Please sign in to comment.