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 !
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -830,6 +830,8 @@ static const char *section_white_list[] = · 829 unmodified lines | |||
| 830 | ".toc*", | 830 | ".toc*", |
| 831 | ".xt.prop", /* xtensa */ | 831 | ".xt.prop", /* xtensa */ |
| 832 | ".xt.lit", /* xtensa */ | 832 | ".xt.lit", /* xtensa */ |
| 833 | ".arcextmap*", /* arc */ | ||
| 834 | ".gnu.linkonce.arcext*", /* arc : modules */ | ||
| 833 | NULL | 835 | NULL |
| 834 | }; | 836 | }; |
| 835 | 837 | ||