Skip to content

Commit 4d10c22

Browse files
Chen Gangrustyrussell
authored andcommitted
scripts/mod/modpost.c: permit '.cranges' secton for sh64 architecture.
Need permit '.cranges' section for sh64 architecture, or modpost will report warning: LD init/built-in.o WARNING: init/built-in.o (.cranges): unexpected non-allocatable section. Did you forget to use "ax"/"aw" in a .S file? Note that for example <linux/init.h> contains section definitions for use in .S files. Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 79ac683 commit 4d10c22

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎scripts/mod/modpost.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ static const char *section_white_list[] =
821821
{
822822
".comment*",
823823
".debug*",
824+
".cranges", /* sh64 */
824825
".zdebug*", /* Compressed debug sections. */
825826
".GCC-command-line", /* mn10300 */
826827
".GCC.command.line", /* record-gcc-switches, non mn10300 */

0 commit comments

Comments
 (0)