aboutsummaryrefslogtreecommitdiff
path: root/scripts/mod
diff options
context:
space:
mode:
authorGravatar Noam Camus <noamc@ezchip.com> 2015-10-26 19:51:46 +1030
committerGravatar Rusty Russell <rusty@rustcorp.com.au> 2015-10-26 20:38:43 +1030
commitd1189c63ea5e3272dc390a83e1235f142b739eb4 (patch)
tree8a5a32277f2ff6321397788ba143cba1f86c7214 /scripts/mod
parentmodpost: Add flag -E for making section mismatches fatal (diff)
downloadlinux-d1189c63ea5e3272dc390a83e1235f142b739eb4.tar.gz
linux-d1189c63ea5e3272dc390a83e1235f142b739eb4.tar.bz2
linux-d1189c63ea5e3272dc390a83e1235f142b739eb4.zip
scripts: [modpost] add new sections to white list
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>
Diffstat (limited to 'scripts/mod')
-rw-r--r--scripts/mod/modpost.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index b2ae8afc1ab1..e080746e1a6b 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -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
};