summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorVineet Gupta <Vineet.Gupta1@synopsys.com>2013-01-21 17:18:57 +1030
committerRusty Russell <rusty@rustcorp.com.au>2013-01-21 17:19:14 +1030
commitf2e207f32422c7b9624d3393db015dfd118d9d22 (patch)
tree950b9cbf940a14e77b946f1562d395becbea54ba /scripts
parent93843b3764170819aeb07fc867a0499b33a875ca (diff)
downloadop-kernel-dev-f2e207f32422c7b9624d3393db015dfd118d9d22.zip
op-kernel-dev-f2e207f32422c7b9624d3393db015dfd118d9d22.tar.gz
modpost: Ignore ARC specific non-alloc sections
ARC relocatable object files contain one/more .gnu.linkonce.arcextmap.* sections (collated by kernel/vmlinux.lds into .arcextmap in final link). This section is used by debuggers to display the extension instructions and need-not be loaded by target (hence !SHF_ALLOC) The final kernel binary only needs .arcextmap entry in modpost's ignore list (section_white_list[]). However when building modules, modpost scans each object file individually, hence tripping on non-aggregated .gnu.linkonce.arcextmap.* entries as well. Thus need for the 2 entires ! Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'scripts')
-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 ff36c50..1c6fbb1 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -830,6 +830,8 @@ static const char *section_white_list[] =
".toc*",
".xt.prop", /* xtensa */
".xt.lit", /* xtensa */
+ ".arcextmap*", /* arc */
+ ".gnu.linkonce.arcext*", /* arc : modules */
NULL
};
OpenPOWER on IntegriCloud