History

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 !

Vineet Gupta committed 13 years ago

Commit f2e207f1 parent 93843b31 file · +2 −0Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/mod/modpost.c+2−0
@@ -830,6 +830,8 @@ static const char *section_white_list[] = · 829 unmodified lines
830830 ".toc*",
831831 ".xt.prop", /* xtensa */
832832 ".xt.lit", /* xtensa */
833+ ".arcextmap*", /* arc */
834+ ".gnu.linkonce.arcext*", /* arc : modules */
833835 NULL
834836 };
835837

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t