scripts: [modpost] add new sections to white list
authorNoam Camus <noamc@ezchip.com>
Mon, 26 Oct 2015 09:21:46 +0000 (19:51 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 26 Oct 2015 10:08:43 +0000 (20:38 +1030)
In our ARC toolchain the default linker script includes special
sections used for code and data located in special fast memory.
To avoid warnings we add these sections i.e. .cmem* and .fmt_slot*
to white list.

Signed-off-by: Noam Camus <noamc@ezchip.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Quentin Casasnovas <quentin.casasnovas@oracle.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
scripts/mod/modpost.c

index b2ae8afc1ab1da843435d827880c02057f76f957..e080746e1a6b528a218b416b5344368cd6db7065 100644 (file)
@@ -834,6 +834,8 @@ static const char *const section_white_list[] =
        ".xt.lit",         /* xtensa */
        ".arcextmap*",                  /* arc */
        ".gnu.linkonce.arcext*",        /* arc : modules */
+       ".cmem*",                       /* EZchip */
+       ".fmt_slot*",                   /* EZchip */
        ".gnu.lto*",
        NULL
 };