Skip to content

Commit f2e207f

Browse files
Vineet Guptarustyrussell
authored andcommitted
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>
1 parent 93843b3 commit f2e207f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎scripts/mod/modpost.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,8 @@ static const char *section_white_list[] =
830830
".toc*",
831831
".xt.prop", /* xtensa */
832832
".xt.lit", /* xtensa */
833+
".arcextmap*", /* arc */
834+
".gnu.linkonce.arcext*", /* arc : modules */
833835
NULL
834836
};
835837

0 commit comments

Comments
 (0)