All of
 help / color / mirror / Atom feed
* + vmlinuxlds-add-missing-vmlinux_symbol-macros.patch added to -mm tree
@ 2017-04-03 22:57 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2017-04-03 22:57 UTC (permalink / raw)
  To: jeyu, arnd, ewk, keescook, mm-commits

The patch titled
     Subject: add missing VMLINUX_SYMBOL macros
has been added to the -mm tree.  Its filename is

This patch should soon appear at
and later at

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

From: Jessica Yu <>
Subject: add missing VMLINUX_SYMBOL macros

When __{start,end}_ro_after_init is referenced from C code, we run into the
following build errors on blackfin:

  kernel/extable.c:169: undefined reference to `__start_ro_after_init'
  kernel/extable.c:169: undefined reference to `__end_ro_after_init'

The build error is due to the fact that blackfin is one of the few arches
that prepends an underscore '_' to all symbols defined in C.  Fix this by
wrapping __{start,end}_ro_after_init in with
VMLINUX_SYMBOL(), which adds the necessary prefix for arches that have

Signed-off-by: Jessica Yu <>
Cc: Arnd Bergmann <>
Cc: Kees Cook <>
Cc: Eddie Kovsky <>
Signed-off-by: Andrew Morton <>

 include/asm-generic/ |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN include/asm-generic/ include/asm-generic/
--- a/include/asm-generic/
+++ a/include/asm-generic/
@@ -261,9 +261,9 @@
 #define RO_AFTER_INIT_DATA						\
-	__start_ro_after_init = .;					\
+	VMLINUX_SYMBOL(__start_ro_after_init) = .;			\
 	*(.data..ro_after_init)						\
-	__end_ro_after_init = .;
+	VMLINUX_SYMBOL(__end_ro_after_init) = .;

Patches currently in -mm which might be from are


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

only message in thread, other threads:[~2017-04-03 22:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-03 22:57 + vmlinuxlds-add-missing-vmlinux_symbol-macros.patch added to -mm tree akpm

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.